By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

stuck with Pexpect script need help!!

P: 10
got ready made code for ssh to unix using python

host machine is windows now when i run this its gives following error :
Expand|Select|Wrap|Line Numbers
  1. Traceback (most recent call last):
  2.   File "C:\Python26\pexpect-2.1\pexpect-2.1\pxssh.py", line 1, in <module>
  3.     from pexpect import *
  4.   File "C:\Python26\pexpect-2.1\pexpect-2.1\pexpect.py", line 83, in <module>
  5.     Pexpect is intended for UNIX-like operating systems.""")
  6. ImportError: No module named resource
  7. A critical module was not found. Probably this operating system does not support it.
  8. Pexpect is intended for UNIX-like operating systems.
  9. >>> ================================ RESTART ================================
  10. >>> 
  11.  
  12. Traceback (most recent call last):
  13.   File "C:\Python26\ssh_session.py", line 7, in <module>
  14.     from pexpect import *
  15. ImportError: No module named pexpect
  16. >>> 


Can we use pexpect from windows host machine ?!
Dec 11 '10 #1
Share this Question
Share on Google+
1 Reply


P: 10
came to know that pexpect supports only unix based machine
Dec 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.