|
||||||
| Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi guys,
I got a whole bunch of Python codes which makes use of a module called Pexpect, in which a function called spawn is used. The codes were run in Unix platform originally and it runs beautifully. Right now, I have to move the codes to Windows platform to run. However, I found that the Pexpect module can only be used in Unix platform. I want to ask: Is there any version of Pexpect that can be run in Windows platform? Or is there an alternative module that is similar to Pexpect? Thanks for your help. Ryan |
| Sponsored Links |
|
|
|
|||
|
In the pexpect.py script, it tries to import a module called resource, which doesn't exist in the Python environment at all. And when try to run the script, it pops up "ImportError: no module named resource".
I have google-searched the resource module and found that it is actually a module contained in the Unix environment. Also, in the Pexpect Soundforge.net, it also specifies that Pexpect can only be run in Unix platform at the moment. |
|
|||||
|
I don't think there's other libraries like Pexpect for Python - but I could be wrong.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. I'm always up for a chat, so feel free to contact me... |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows XP Tricks & Tips!!!!..new ones. | pranky | Tutorials | 9 | 08-23-2008 03:22 PM |
| How to add Gadgets in Windows XP | Onur | Computer Software/OS | 1 | 08-22-2007 04:26 PM |
| Switching Between Windows Forms | karateboy02 | Managed C++ | 3 | 08-03-2007 07:49 PM |
| Visual Studio 2005 and Windows Vista | Jordan | General Programming | 3 | 01-22-2007 03:21 PM |
| Cross platform development for Windows and Mac OS X | Jordan | General Programming | 0 | 11-26-2006 12:57 AM |
| Xav | ........ | 1097.16 |
| MeTh0Dz|Reb0rn | ........ | 986.37 |
| morefood2001 | ........ | 850.04 |
| John | ........ | 841.93 |
| WingedPanther | ........ | 684.54 |
| marwex89 | ........ | 638.26 |
| Brandon W | ........ | 493.36 |
| chili5 | ........ | 292.12 |
| Steve.L | ........ | 188.37 |
| orjan | ........ | 187.41 |
Goal: 100,000 Posts
Complete: 79%