On 08/08/2013 19:04, D. Xenakis wrote:
import sys
print (sys.path)
returns:
['C:\\Python33\\Lib\\idlelib',
'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg',
'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs',
'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages']
then if i type:
sys.path.append('C:\\Python33\\Lib\\site-packages\\paramiko')
and then again..
print (sys.path)
returns:
['C:\\Python33\\Lib\\idlelib',
'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg',
'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs',
'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages',
'C:\\Python33\\Lib\\site-packages\\paramiko']
then if i type:
import paramiko
i get this:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import paramiko
File "C:\Python33\lib\site-packages\paramiko\__init__.py", line 64, in
<module>
from transport import SecurityOptions, Transport
File "C:\Python33\Lib\site-packages\paramiko\transport.py", line 296
except socket.error, e:
^
SyntaxError: invalid syntax
[snip]
That syntax is supported in Python 2. In Python 3 it would be:
except socket.error as e:
I don't think that paramiko supports Python 3 (yet?).
--
http://mail.python.org/mailman/listinfo/python-list