Re: [Tutor] Trouble importing Paramiko

2013-01-04 Thread Ufuk Eskici
Hi Walter,

Adding Python location to sytem path works. :-)

Thanks a lot!
Ufuk


2013/1/4 Walter Prins 

> Hi Ufuk,
>
> On 4 January 2013 13:03, Ufuk Eskici  wrote:
>
>> Hello Hugo,
>>
>> I removed all related softwares from my PC and tried to re-install
>> everyting.
>>
>> At the last step, this command fails (instructions:
>> http://vijaymurthy.blogspot.com/2011/03/installing-paramiko-for-windows.html
>> )
>>
>> 
>> C:\paramiko-1.7.4>python setup.py build --compiler=mingw32 bdist_wininst
>> 'python' is not recognized as an internal or external command,
>> operable program or batch file.
>>
>>
> Erm, this is actually telling you the problem directly: The system cannot
> find the "python" command.   To explain: the Windows command interpreter
> has a list of directories (folders) that it searches for matching programs
> when you enter a command at the commant prompt.  When it cannot find any
> program matching the name entered as a command, it duly displays the above
> message.
>
> Here's some background/references for this so you can improve your
> understanding of what's going on (as a programmer you really need to
> understand this stuff):
>
> http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them
> http://www.voidspace.org.uk/python/articles/command_line.shtml
>
> So, the implication of you receiving this message is that your Python
> interpreter location is not on this system path list.  To add it, click
> "Start", then right click "Computer", then "Properties", then click
> "Advanced system settings" on the left, click the "Environment variables"
> button at the bottom of the dialog, then look for the variable named "Path"
> under the section "System variables", click on it to select it then click
> the "Edit" button, then add ";C:\Python27\" to the existing path list
> (without the quotes and making sure to include the separator semicolon).
> Click "OK" and exit all the dialogs.  Then re-open a command prompt, and at
> the prompt type "python" with no arguments and press enter.  This should
> now open up the Python interpreter which if successful will prove that the
> PATH change was done succesfully.
>
> Aside, if you install Python using ActiveState's distribution, this step
> is done automatically for you.  In case you're interested, you can get
> ActiveState's Python distribution here:
> http://www.activestate.com/activepython/downloads
> Note that although they request you to register, it is not obligatory.
>
> HTH,
>
> Walter
>
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-04 Thread Walter Prins
Hi Ufuk,

On 4 January 2013 13:03, Ufuk Eskici  wrote:

> Hello Hugo,
>
> I removed all related softwares from my PC and tried to re-install
> everyting.
>
> At the last step, this command fails (instructions:
> http://vijaymurthy.blogspot.com/2011/03/installing-paramiko-for-windows.html
> )
>
> 
> C:\paramiko-1.7.4>python setup.py build --compiler=mingw32 bdist_wininst
> 'python' is not recognized as an internal or external command,
> operable program or batch file.
>
>
Erm, this is actually telling you the problem directly: The system cannot
find the "python" command.   To explain: the Windows command interpreter
has a list of directories (folders) that it searches for matching programs
when you enter a command at the commant prompt.  When it cannot find any
program matching the name entered as a command, it duly displays the above
message.

Here's some background/references for this so you can improve your
understanding of what's going on (as a programmer you really need to
understand this stuff):
http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them
http://www.voidspace.org.uk/python/articles/command_line.shtml

So, the implication of you receiving this message is that your Python
interpreter location is not on this system path list.  To add it, click
"Start", then right click "Computer", then "Properties", then click
"Advanced system settings" on the left, click the "Environment variables"
button at the bottom of the dialog, then look for the variable named "Path"
under the section "System variables", click on it to select it then click
the "Edit" button, then add ";C:\Python27\" to the existing path list
(without the quotes and making sure to include the separator semicolon).
Click "OK" and exit all the dialogs.  Then re-open a command prompt, and at
the prompt type "python" with no arguments and press enter.  This should
now open up the Python interpreter which if successful will prove that the
PATH change was done succesfully.

Aside, if you install Python using ActiveState's distribution, this step is
done automatically for you.  In case you're interested, you can get
ActiveState's Python distribution here:
http://www.activestate.com/activepython/downloads
Note that although they request you to register, it is not obligatory.

HTH,

Walter
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-04 Thread Ufuk Eskici
Hello Hugo,

I removed all related softwares from my PC and tried to re-install
everyting.

At the last step, this command fails (instructions:
http://vijaymurthy.blogspot.com/2011/03/installing-paramiko-for-windows.html
)


C:\paramiko-1.7.4>python setup.py build --compiler=mingw32 bdist_wininst
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\paramiko-1.7.4>


What is wrong?


2013/1/2 Hugo Arts 

> On Wed, Jan 2, 2013 at 10:48 AM, Ufuk Eskici  wrote:
>
>> Hello Steven,
>>
>> I've written this before:
>>
>> "My Python version is 2.7.3 and it is installed in "C:\Python27 (on the
>> web, it says Paramiko-1.7.4 is supported with Python 2.7)"
>>
>> so I'm using the correct Python verion (2.7.3). But I dont know why I'm
>> getting errors during Paramiko installation as I mentioned before.
>>
>>
> That is very interesting, because when you tried my earlier suggestion to
> use "python setup.py install" the error messages you gave us came very
> clearly from python 3.3, not python 2.7.3. Look more closely at some of
> those error messages:
>
> > File "c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.
> egg\paramiko\transport.py", line 353
> >out = ' >
>  ^
> > SyntaxError: invalid syntax
>
> C:\python33 is definitely not C:\python27. That looks to me like you have
> two versions of python installed on your machine, both python 3.3 and
> python 2.7. I an only make an educated guess at this, but probably when you
> invoke python on your command line, it's actually python 3.3 that is
> started. You can verify this by simply starting a command line, going to
> your C:\ directory, typing in python, and looking at the version number
> that comes up. If it is indeed true you have two versions of python
> installed, try the installation step again, but now make absolutely sure
> you use the correct version of python to run the setup script, like this:
>
> C:\python27\python.exe setup.py install
>
> That will use python 2.7 to run the installation script, and *that* in
> turn will make sure paramiko is actually installed for the correct python
> version.
>
> HTH,
> Hugo
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Hugo Arts
On Wed, Jan 2, 2013 at 10:48 AM, Ufuk Eskici  wrote:

> Hello Steven,
>
> I've written this before:
>
> "My Python version is 2.7.3 and it is installed in "C:\Python27 (on the
> web, it says Paramiko-1.7.4 is supported with Python 2.7)"
>
> so I'm using the correct Python verion (2.7.3). But I dont know why I'm
> getting errors during Paramiko installation as I mentioned before.
>
>
That is very interesting, because when you tried my earlier suggestion to
use "python setup.py install" the error messages you gave us came very
clearly from python 3.3, not python 2.7.3. Look more closely at some of
those error messages:

> File "c:\python33\lib\site-packages\paramiko-1.7.4-py3.3.
egg\paramiko\transport.py", line 353
>out = '
   ^
> SyntaxError: invalid syntax

C:\python33 is definitely not C:\python27. That looks to me like you have
two versions of python installed on your machine, both python 3.3 and
python 2.7. I an only make an educated guess at this, but probably when you
invoke python on your command line, it's actually python 3.3 that is
started. You can verify this by simply starting a command line, going to
your C:\ directory, typing in python, and looking at the version number
that comes up. If it is indeed true you have two versions of python
installed, try the installation step again, but now make absolutely sure
you use the correct version of python to run the setup script, like this:

C:\python27\python.exe setup.py install

That will use python 2.7 to run the installation script, and *that* in turn
will make sure paramiko is actually installed for the correct python
version.

HTH,
Hugo
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Steven D'Aprano

On 02/01/13 20:48, Ufuk Eskici wrote:

Hello Steven,

I've written this before:

"My Python version is 2.7.3 and it is installed in "C:\Python27 (on the
web, it says Paramiko-1.7.4 is supported with Python 2.7)"



How do you know it is installed in C:\Python27?

What is the output of


dir C:\Python27\paramiko*


from the Windows command.com or cmd.exe (?) shell?




so I'm using the correct Python verion (2.7.3). But I dont know why I'm
getting errors during Paramiko installation as I mentioned before.



If you got errors during installation, then Paramiko is NOT installed, or
at best it is installed in a broken state and cannot be used. You must
SUCCESSFULLY install Paramiko with no errors, or at least no important
errors.

If Paramiko was installed successfully, then "import paramiko" would work.
Since it doesn't work, you have to go back and look at the installation.



--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Ufuk Eskici
Hello Steven,

I've written this before:

"My Python version is 2.7.3 and it is installed in "C:\Python27 (on the
web, it says Paramiko-1.7.4 is supported with Python 2.7)"

so I'm using the correct Python verion (2.7.3). But I dont know why I'm
getting errors during Paramiko installation as I mentioned before.


2013/1/2 Steven D'Aprano 

> On 02/01/13 20:22, Ufuk Eskici wrote:
>
>> any help is appreciated, thanks...
>>
>
>
> Have you successfully installed it yet? Last time you tried to install,
> you tried to install the Python 2 version of Paramiko with Python 3,
> and got many SyntaxErrors.
>
> Until you actually install Paramiko using Python 2, there is no point
> trying to import it.
>
>
>
> --
> Steven
> __**_
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Steven D'Aprano

On 02/01/13 20:22, Ufuk Eskici wrote:

any help is appreciated, thanks...



Have you successfully installed it yet? Last time you tried to install,
you tried to install the Python 2 version of Paramiko with Python 3,
and got many SyntaxErrors.

Until you actually install Paramiko using Python 2, there is no point
trying to import it.


--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Ufuk Eskici
any help is appreciated, thanks...


2012/12/28 Ufuk Eskici 

> Hello,
> My Python version is 2.7.3 and it is installed in "C:\Python27 (on the
> web, it says Paramiko-1.7.4 is supported with Python 2.7)
> @Dave: Previous output was from IDLE which should be same with CLI.
>
> I'm getting this output now from Windows Command Line:
>
> 
> C:\Python27>python ufo.py
> Traceback (most recent call last):
>   File "ufo.py", line 1, in 
> import paramiko
> ImportError: No module named paramiko
>
> C:\Python27>
> 
>
> This is the output after addning .sys path:
> 
> C:\Python27>python ufo.py
> import path is  ['C:\\Python27', 'C:\\Windows\\system32\\python27.zip',
> 'C:\\Pyt
> hon27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win',
> 'C:\\Python27\
> \lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']
> Traceback (most recent call last):
>   File "ufo.py", line 4, in 
> import paramiko
> ImportError: No module named paramiko
> 
>
>
> 2012/12/27 Francois Dion 
>
>> On Thu, Dec 27, 2012 at 8:48 AM, Ufuk Eskici 
>> wrote:
>> > I got this output with lots of errors:
>> >   File "build\bdist.win32\egg\paramiko\auth_handler.py", line 311
>> > except SSHException, e:
>> >^
>> > SyntaxError: invalid syntax
>>
>> Use Python 2.x, Python 3 is in the works, kindoff:
>>
>> https://github.com/paramiko/paramiko/issues/16
>> https://github.com/paramiko/paramiko/issues/123
>>
>> François
>>
>> --
>> www.pyptug.org  -  raspberry-python.blogspot.com
>>
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-28 Thread Ufuk Eskici
Hello,
My Python version is 2.7.3 and it is installed in "C:\Python27 (on the web,
it says Paramiko-1.7.4 is supported with Python 2.7)
@Dave: Previous output was from IDLE which should be same with CLI.

I'm getting this output now from Windows Command Line:


C:\Python27>python ufo.py
Traceback (most recent call last):
  File "ufo.py", line 1, in 
import paramiko
ImportError: No module named paramiko

C:\Python27>


This is the output after addning .sys path:

C:\Python27>python ufo.py
import path is  ['C:\\Python27', 'C:\\Windows\\system32\\python27.zip',
'C:\\Pyt
hon27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win',
'C:\\Python27\
\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']
Traceback (most recent call last):
  File "ufo.py", line 4, in 
import paramiko
ImportError: No module named paramiko



2012/12/27 Francois Dion 

> On Thu, Dec 27, 2012 at 8:48 AM, Ufuk Eskici  wrote:
> > I got this output with lots of errors:
> >   File "build\bdist.win32\egg\paramiko\auth_handler.py", line 311
> > except SSHException, e:
> >^
> > SyntaxError: invalid syntax
>
> Use Python 2.x, Python 3 is in the works, kindoff:
>
> https://github.com/paramiko/paramiko/issues/16
> https://github.com/paramiko/paramiko/issues/123
>
> François
>
> --
> www.pyptug.org  -  raspberry-python.blogspot.com
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Francois Dion
On Thu, Dec 27, 2012 at 8:48 AM, Ufuk Eskici  wrote:
> I got this output with lots of errors:
>   File "build\bdist.win32\egg\paramiko\auth_handler.py", line 311
> except SSHException, e:
>^
> SyntaxError: invalid syntax

Use Python 2.x, Python 3 is in the works, kindoff:

https://github.com/paramiko/paramiko/issues/16
https://github.com/paramiko/paramiko/issues/123

François

--
www.pyptug.org  -  raspberry-python.blogspot.com
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Dave Angel
On 12/27/2012 06:44 AM, Ufuk Eskici wrote:

First comment:  please don't top-post.  You've done it many times now,
and it's not how this forum works.  Put your comments after the parts
you're quoting.

(My email is mostly busted;  I've been trying to send this for hours)

First question:  what version of Python ?  And do you know where it's
installed?  Since you're on Windows, I won't bother to tell you to use
the which command.

Your latest post seems to imply you're using a 2.x version of paramiko,
and trying to install it on Python 3.3

> My code is:
>
> import paramiko
> ssh = paramiko.SSHClient()
> ssh.connect('710.10.10.10', username='ufuk', password='ufuk')
>
> and saved this file as "ufo.py" on the desktop.
>
> I'm still getting error:
>
  RESTART
> 

What's this?  Are you working in some environment other than the command
line?  If you are, then you should make sure it all works on the command
line before trying to separately debug why the IDE (or whatever) is
messing you up.

> Traceback (most recent call last):
>   File "C:\Users\eufuesk\Desktop\ufo.py", line 1, in 
> import paramiko
> ImportError: No module named paramiko
>



Now we're getting somewhere.  Now the questions are where did paramiko
get installed to, and where is python looking for it.

For the former, hopefully you remember what it said when it installed,
or you can search the drive for paramiko.*
 dir /s  \paramiko.*


For the latter, you can add the following line to ufo.py, just before
the import line:

import sys
print "import path is ", sys.path





-- 

DaveA

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Ufuk Eskici
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 =
0xC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBE
A63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B5
76625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE6492866
51ECE65381L



  ^
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 > 0xL:
 ^
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 = 0x8000L
  ^
SyntaxError: invalid syntax

byte-compiling build\bdist.win32\egg\paramiko\sftp_client.py to
sftp_client.cpyt
hon-33.pyc
  File "bui

Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Hugo Arts
On Thu, Dec 27, 2012 at 2:16 PM, Ufuk Eskici  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 "", line 1, in 
> 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
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Ufuk Eskici
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 "", line 1, in 
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



2012/12/27 Steven D'Aprano 

> On 27/12/12 23:33, Ufuk Eskici wrote:
>
>> 2012/12/27 Steven D'Aprano
>>
>>  On 27/12/12 22:44, Ufuk Eskici wrote:
>>>
>>>   Traceback (most recent call last):
>>>
 File "C:\Users\eufuesk\Desktop\ufo.py", line 1, in

   import paramiko
 ImportError: No module named paramiko

>>>
>>> Have you installed paramiko? It is not a standard Python module,
>>> you have to install it first.
>>>
>>
>>
>> Yes, I've installed it. how can I check it?
>>
>
> You can check it by trying to import it. Since that has failed, there
> is a problem with the installation.
>
> How did you install it?
>
> What happens if you run the Windows "Find File" command and search
> for paramiko? What does it find?
>
>
>
>
> --
> Steven
> __**_
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Steven D'Aprano

On 27/12/12 23:33, Ufuk Eskici wrote:

2012/12/27 Steven D'Aprano


On 27/12/12 22:44, Ufuk Eskici wrote:

  Traceback (most recent call last):

File "C:\Users\eufuesk\Desktop\ufo.**py", line 1, in
  import paramiko
ImportError: No module named paramiko


Have you installed paramiko? It is not a standard Python module,
you have to install it first.



Yes, I've installed it. how can I check it?


You can check it by trying to import it. Since that has failed, there
is a problem with the installation.

How did you install it?

What happens if you run the Windows "Find File" command and search
for paramiko? What does it find?



--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Ufuk Eskici
Yes, I've installed it. how can I check it?


2012/12/27 Steven D'Aprano 

> On 27/12/12 22:44, Ufuk Eskici wrote:
>
>  Traceback (most recent call last):
>>File "C:\Users\eufuesk\Desktop\ufo.**py", line 1, in
>>  import paramiko
>> ImportError: No module named paramiko
>>
>
>
> Have you installed paramiko? It is not a standard Python module,
> you have to install it first.
>
>
> --
> Steven
> __**_
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Steven D'Aprano

On 27/12/12 22:44, Ufuk Eskici wrote:


Traceback (most recent call last):
   File "C:\Users\eufuesk\Desktop\ufo.py", line 1, in
 import paramiko
ImportError: No module named paramiko



Have you installed paramiko? It is not a standard Python module,
you have to install it first.


--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor