[Tutor] Replacing keyboard input to EXE file

Alan Gauld alan.gauld at btinternet.com
Fri Jun 12 10:34:26 CEST 2009


"eShopping" <etrade.griffiths at dsl.pipex.com> wrote

>>Or use the Python wrapper around expect - pyexpect???
>>
>>Alan G
>
> Installed pexpect and rewrote the code to look like this:
>
> Now I get these errors:
>
> Traceback (most recent call last):
>   File "C:\Projects\Active\Alun\US_DOE_EOR\test_poly.py", line 1, 
> in -toplevel-
>     import pexpect
>   File "C:\Python24\Lib\site-packages\pexpect.py", line 82, in -toplevel-
>     raise ImportError (str(e) + """
> 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.
>
> Hm .....does this mean we are snookered on Win XP?

Yes, Kent posted a mail that I assumed had gone to the list but apparently
not. pexpect only works on *nix. A shame and very odd since expect works
on Windows... You might find it works under cygwin if you have that 
installed.

Sorry for the red herring,

Alan G. 




More information about the Tutor mailing list