SSH using PEXPECT
Almar Klein
almar.klein at gmail.com
Thu Sep 18 06:12:05 EDT 2008
Hi,
Wanting to use pexpect on windows too, I ran into wexpect.
http://sage.math.washington.edu/home/goreckc/sage/wexpect/
I haven't given it a try yet. Does anyone have experience with that?
Almar
2008/9/13 nntpman68 <news1234 at free.fr>
> Hi,
>
> yellowblueyellow at gmail.com wrote:
>
>> On Sep 10, 7:01 pm, Sean DiZazzo <half.ital... at gmail.com> wrote:
>>
>
> I am using windows and for reason it wont let me use pexpect even tho
>> I have CYGWIN installed
>>
>>
>> I get the following error
>>
>> Traceback (most recent call last):
>> File "new.py", line 1, in <module>
>> import ssh_session
>> File "C:\Python25\lib\ssh_session.py", line 7, in <module>
>> from pexpect import *
>> File "C:\Python25\lib\site-packages\pexpect.py", line 85, in
>> <module>
>> support it. Pexpect is intended for UNIX-like operating
>> systems.""")
>> ImportError: No module named resource
>>
>>
> You might have cygwin installed,
> but the error mesage sems to indicatem that you don't use cygwin's pythonm
> but the normal windows python,
>
> You see, that it complains about pexpcet in
> C:\Python25\lib\site-packages\pexpect.py
>
>
>
> just open a cygwin window:
>
> then cd to the directory containign your script and type
> python new.py.
>
> you should have at least another error message
>
>
> bye
>
>
> N
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080918/89f5b3f7/attachment-0001.html>
More information about the Python-list
mailing list