Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52187 > unrolled thread
| Started by | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| First post | 2013-08-08 04:01 -0700 |
| Last post | 2013-08-08 12:25 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.python
paramiko installation problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 04:01 -0700
Re: paramiko installation problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 11:04 -0700
Re: paramiko installation problem MRAB <python@mrabarnett.plus.com> - 2013-08-08 19:25 +0100
Re: paramiko installation problem "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 12:25 -0700
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-08-08 04:01 -0700 |
| Subject | paramiko installation problem |
| Message-ID | <4554cd28-e0a8-407d-93ca-06cc267fb938@googlegroups.com> |
Im having problems using paramiko after installation on my Win7 64bit system.
I can see both paramiko and pycrypto being "there" installed via pip list:
I have tried so many different ways but in the end im always getting the same error when trying to import paramiko:
(i can import Crypto with no problems)
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import paramiko
File "C:\Python33\lib\site-packages\paramiko\__init__.py", line 64, in <module>
from transport import SecurityOptions, Transport
ImportError: No module named 'transport'
Please can you help?
thx
[toc] | [next] | [standalone]
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-08-08 11:04 -0700 |
| Message-ID | <c1e7b123-356b-4d5f-8675-ee9c9c305bc3@googlegroups.com> |
| In reply to | #52187 |
>>> 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
----------------------------------------------
when i close and reopen IDLE, then 'C:\\Python33\\Lib\\site-packages\\paramiko' is getting deleted.
If my problem from the first post above has to do something with the path, then what exactly should i do?
I would also like to ask here something extra.. :)
in system enviroment variables my path contains the following things:
C:\Python33\Lib\site-packages\PyQt5;C:\Python33\Scripts\;C:\Python33\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Python33\Lib\site-packages\paramiko;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\NEST;C:\Program Files (x86)\Windows Live\Shared
so what exactly is the difference between this path and the above.?
A huge THANKS for the one who will find the courage to answer to this newbie !
[toc] | [prev] | [next] | [standalone]
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2013-08-08 19:25 +0100 |
| Message-ID | <mailman.365.1375986350.1251.python-list@python.org> |
| In reply to | #52216 |
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?).
[toc] | [prev] | [next] | [standalone]
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
|---|---|
| Date | 2013-08-08 12:25 -0700 |
| Message-ID | <e39f0474-3783-4f8b-b8ab-9fddec58b020@googlegroups.com> |
| In reply to | #52217 |
Wow thats bad news. Any workaround? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . Any thoughts?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web