Fehler beim import ssh nach kompilieren unter Windows
Verfasst: Freitag 7. September 2012, 07:56
Hallo!
Nachdem ich für pyCrypto, VisualStudio Express 2008 installiert und vorbereitetet hatte (siehe http://www.dbaportal.eu/?q=node/222) ging die Installation mit pip install ssh ohne Probleme.
Das testen von import Crypto funktionierte problemlos. Doch beim import ssh kommt ein Fehler der für mich unlogisch ist.
>>> import ssh
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Programme\Python32\lib\site-packages\ssh\__init__.py", line 62, in <module>
from transport import SecurityOptions, Transport
ImportError: No module named transport
Führe ich python.exe im Verzeichnis aus in dem sich die transport.py befindet (D:\Programme\Python32\lib\site-packages\ssh\), dann bekomme ich folgende Fehlermeldung:
>>> import ssh
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Programme\Python32\lib\site-packages\ssh\__init__.py", line 62, in <module>
from transport import SecurityOptions, Transport
File "transport.py", line 293
except socket.error, e:
^
SyntaxError: invalid syntax
Soll es hier Probleme mit dem Pfad und dann auch noch mit der Python 3.2 Version geben. Ich finde dazu einfach nichts mit Google. Deswegen auch mein Hilferuf.
OS: Windows 7
Python Version: ActivePython 3.2.2.3
pyCrypto: 2.6
ssh: 1.7.14 (http://pypi.python.org/pypi/ssh/1.7.14)
Gruß
manticore
Nachdem ich für pyCrypto, VisualStudio Express 2008 installiert und vorbereitetet hatte (siehe http://www.dbaportal.eu/?q=node/222) ging die Installation mit pip install ssh ohne Probleme.
Das testen von import Crypto funktionierte problemlos. Doch beim import ssh kommt ein Fehler der für mich unlogisch ist.
>>> import ssh
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Programme\Python32\lib\site-packages\ssh\__init__.py", line 62, in <module>
from transport import SecurityOptions, Transport
ImportError: No module named transport
Führe ich python.exe im Verzeichnis aus in dem sich die transport.py befindet (D:\Programme\Python32\lib\site-packages\ssh\), dann bekomme ich folgende Fehlermeldung:
>>> import ssh
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Programme\Python32\lib\site-packages\ssh\__init__.py", line 62, in <module>
from transport import SecurityOptions, Transport
File "transport.py", line 293
except socket.error, e:
^
SyntaxError: invalid syntax
Soll es hier Probleme mit dem Pfad und dann auch noch mit der Python 3.2 Version geben. Ich finde dazu einfach nichts mit Google. Deswegen auch mein Hilferuf.
OS: Windows 7
Python Version: ActivePython 3.2.2.3
pyCrypto: 2.6
ssh: 1.7.14 (http://pypi.python.org/pypi/ssh/1.7.14)
Gruß
manticore