stuck with Pexpect script need help!!

Darshak Bavishi bavishi.darshak at gmail.com
Sat Dec 11 01:02:01 EST 2010


Hi Experts,
got ready made code for ssh to unix using python

host machine is windows now when i run this its gives following error :
*
Traceback (most recent call last):
File "C:\Python26\pexpect-2.1\pexpect-2.1\pxssh.py", line 1, in <module>
from pexpect import *
File "C:\Python26\pexpect-2.1\pexpect-2.1\pexpect.py", line 83, in <module>
Pexpect is intended for UNIX-like operating systems.""")
ImportError: No module named resource
A critical module was not found. Probably this operating system does not
support it.
Pexpect is intended for UNIX-like operating systems.
>>> ================================ RESTART
================================
>>>

Traceback (most recent call last):
File "C:\Python26\ssh_session.py", line 7, in <module>
from pexpect import *
ImportError: No module named pexpect
>>> *



Can we use pexpect from windows host machine ?!


-- 
BR
Darshak Bavishi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101211/a0bf99ce/attachment.html>


More information about the Python-list mailing list