views:

40

answers:

1
+2  Q: 

python paramiko

Have installed Paramiko for Python and PyCrypto for Windows 7 machine.

import paramiko    
ssh = paramiko.SSHClient()

Tried the above commands but I keep getting this error msg:

AttributeError: 'module' object has no attribute 'SSHClient'

but this error message goes away if I key in the above commands one line at a time.

Any help?

+5  A: 

By chance have you called your file paramiko.py ?

You'll need to name it something else to avoid getting that error.

Adam Bernier
That was the problem. Thanks !
Loner
cheers mate; welcome to SO
Adam Bernier