[Tutor] Trouble importing Paramiko
Ufuk Eskici
ufukeskici at gmail.com
Thu Dec 27 14:48:25 CET 2012
I got this output with lots of errors:
copying build\lib\paramiko\sftp_file.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\sftp_handle.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\sftp_server.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\sftp_si.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\ssh_exception.py ->
build\bdist.win32\egg\paramiko
copying build\lib\paramiko\transport.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\util.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\win_pageant.py -> build\bdist.win32\egg\paramiko
copying build\lib\paramiko\__init__.py -> build\bdist.win32\egg\paramiko
byte-compiling build\bdist.win32\egg\paramiko\agent.py to
agent.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\auth_handler.py to
auth_handler.cp
ython-33.pyc
File "build\bdist.win32\egg\paramiko\auth_handler.py", line 311
except SSHException, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\ber.py to ber.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\buffered_pipe.py to
buffered_pipe.
cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\channel.py to
channel.cpython-33.p
yc
File "build\bdist.win32\egg\paramiko\channel.py", line 586
except PipeTimeout, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\client.py to
client.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\client.py", line 409
except SSHException, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\common.py to
common.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\compress.py to
compress.cpython-33
.pyc
byte-compiling build\bdist.win32\egg\paramiko\config.py to
config.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\dsskey.py to
dsskey.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\dsskey.py", line 188
except BERException, x:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\file.py to file.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\hostkeys.py to
hostkeys.cpython-33
.pyc
byte-compiling build\bdist.win32\egg\paramiko\kex_gex.py to
kex_gex.cpython-33.p
yc
byte-compiling build\bdist.win32\egg\paramiko\kex_group1.py to
kex_group1.cpytho
n-33.pyc
File "build\bdist.win32\egg\paramiko\kex_group1.py", line 35
P =
0xFFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBE
A63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B5
76625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE6492866
51ECE65381FFFFFFFFFFFFFFFFL
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\logging22.py to
logging22.cpython-
33.pyc
byte-compiling build\bdist.win32\egg\paramiko\message.py to
message.cpython-33.p
yc
File "build\bdist.win32\egg\paramiko\message.py", line 279
if i > 0xffffffffL:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\packet.py to
packet.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\packet.py", line 92
self.__sequence_number_out = 0L
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\pipe.py to pipe.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\pkey.py to pkey.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\pkey.py", line 306
except base64.binascii.Error, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\primes.py to
primes.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\resource.py to
resource.cpython-33
.pyc
byte-compiling build\bdist.win32\egg\paramiko\rng.py to rng.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\rng_posix.py to
rng_posix.cpython-
33.pyc
byte-compiling build\bdist.win32\egg\paramiko\rng_win32.py to
rng_win32.cpython-
33.pyc
File "build\bdist.win32\egg\paramiko\rng_win32.py", line 58
except Exception, exc:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\rsakey.py to
rsakey.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\server.py to
server.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\server.py", line 589
except Exception, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp.py to sftp.cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\sftp_attr.py to
sftp_attr.cpython-
33.pyc
File "build\bdist.win32\egg\paramiko\sftp_attr.py", line 47
FLAG_EXTENDED = 0x80000000L
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp_client.py to
sftp_client.cpyt
hon-33.pyc
File "build\bdist.win32\egg\paramiko\sftp_client.py", line 87
except EOFError, x:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp_file.py to
sftp_file.cpython-
33.pyc
File "build\bdist.win32\egg\paramiko\sftp_file.py", line 460
except Exception, x:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp_handle.py to
sftp_handle.cpyt
hon-33.pyc
File "build\bdist.win32\egg\paramiko\sftp_handle.py", line 103
except IOError, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp_server.py to
sftp_server.cpyt
hon-33.pyc
File "build\bdist.win32\egg\paramiko\sftp_server.py", line 95
except Exception, e:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\sftp_si.py to
sftp_si.cpython-33.p
yc
byte-compiling build\bdist.win32\egg\paramiko\ssh_exception.py to
ssh_exception.
cpython-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\transport.py to
transport.cpython-
33.pyc
File "build\bdist.win32\egg\paramiko\transport.py", line 353
out = '<paramiko.Transport at %s' % hex(long(id(self)) & 0xffffffffL)
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\util.py to util.cpython-33.pyc
File "build\bdist.win32\egg\paramiko\util.py", line 49
out = 0L
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\paramiko\win_pageant.py to
win_pageant.cpyt
hon-33.pyc
byte-compiling build\bdist.win32\egg\paramiko\__init__.py to
__init__.cpython-33
.pyc
creating build\bdist.win32\egg\EGG-INFO
copying paramiko.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying paramiko.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying paramiko.egg-info\dependency_links.txt ->
build\bdist.win32\egg\EGG-INFO
copying paramiko.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying paramiko.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\paramiko-1.7.4-py3.3.egg' and adding 'build\bdist.win32\egg'
to i
t
removing 'build\bdist.win32\egg' (and everything under it)
Processing paramiko-1.7.4-py3.3.egg
creating c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg
Extracting paramiko-1.7.4-py3.3.egg to c:\python33\lib\site-packages
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\auth_han
dler.py", line 311
except SSHException, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\channel.
py", line 586
except PipeTimeout, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\client.p
y", line 409
except SSHException, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\dsskey.p
y", line 188
except BERException, x:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\kex_grou
p1.py", line 35
P =
0xFFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBE
A63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B5
76625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE6492866
51ECE65381FFFFFFFFFFFFFFFFL
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\message.
py", line 279
if i > 0xffffffffL:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\packet.p
y", line 92
self.__sequence_number_out = 0L
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\pkey.py"
, line 306
except base64.binascii.Error, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\rng_win3
2.py", line 58
except Exception, exc:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\server.p
y", line 589
except Exception, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\sftp_att
r.py", line 47
FLAG_EXTENDED = 0x80000000L
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\sftp_cli
ent.py", line 87
except EOFError, x:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\sftp_fil
e.py", line 460
except Exception, x:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\sftp_han
dle.py", line 103
except IOError, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\sftp_ser
ver.py", line 95
except Exception, e:
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\transpor
t.py", line 353
out = '<paramiko.Transport at %s' % hex(long(id(self)) & 0xffffffffL)
^
SyntaxError: invalid syntax
File
"c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg\paramiko\util.py"
, line 49
out = 0L
^
SyntaxError: invalid syntax
Adding paramiko 1.7.4 to easy-install.pth file
Installed c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.egg
Processing dependencies for paramiko==1.7.4
Searching for pycrypto>=1.9
Reading http://pypi.python.org/simple/pycrypto/
Download error on http://pypi.python.org/simple/pycrypto/: timed out --
Some pac
kages may not be found!
Reading http://pypi.python.org/simple/pycrypto/
2012/12/27 Hugo Arts <hugo.yoshi at gmail.com>
> On Thu, Dec 27, 2012 at 2:16 PM, Ufuk Eskici <ufukeskici at gmail.com> wrote:
>
>> This is the output, it fails.
>>
>> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
>> on win32
>> Type "copyright", "credits" or "license()" for more information.
>> >>> import paramiko
>>
>> Traceback (most recent call last):
>> File "<pyshell#0>", line 1, in <module>
>> import paramiko
>> ImportError: No module named paramiko
>> >>>
>>
>> screenshot of search result: http://i49.tinypic.com/21kmtfp.jpg
>>
>> I inslatted accoording to this link:
>> http://vijaymurthy.blogspot.com/2011/03/installing-paramiko-for-windows.html
>>
>>
> Looking at that link, the guide doesn't actually install paramiko, it only
> builds it. try issuing this command in the same folder where you issued the
> command of step 4:
>
> python setup.py install
>
> please report results.
>
> Hugo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121227/cdb215bb/attachment-0001.html>
More information about the Tutor
mailing list