On 27/12/12 09:36, Ufuk Eskici wrote:
I've installed Paramiko on my PC with Python 2.7.My code is: import paramiko import os ssh = paramiko.SSHClient() ssh.connect('10.10.10.10', username='ufuk', password='ufuk') Traceback (most recent call last): File "C:/Users/eufuesk/Desktop/paramiko.py", line 1, in <module> import paramiko File "C:/Users/eufuesk/Desktop\paramiko.py", line 4, in <module> ssh = paramiko.SSHClient() AttributeError: 'module' object has no attribute 'SSHClient' >>>
Did paramiko install properly? Can you access anything in the module? What happens if you do >>> import paramiko >>> dir(paramiko) or >>> help(paramiko) If those didn't work it suggests the install didn't work properly. If they do work then I don't know what's wrong. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
