I am trying to use pxssh
module to make SSH connection to the client - however I am getting:
ImportError: No module named pxssh
I found this file in Python installation so I would guess that's correct:
/usr/lib/python2.7/site-packages/pexpect/pxssh.py
I am of course running my app with Python 2.7 and I've even tried to import pexpect
, but that didn't help.
Well, try from pexpect import pxssh
.
update:
The solution only works for Linux as pxssh
is not supported on Windows
If the problem is not resolved by the earlier suggestion:
from pexpect import pxssh
The pexpect library might be outdated, so run:
sudo pip install pexpect --upgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With