Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 525
Loner Avatar asked Dec 03 '22 11:12

Loner


1 Answers

By chance have you called your file paramiko.py ?

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

like image 174
mechanical_meat Avatar answered Dec 24 '22 07:12

mechanical_meat