Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Python

Vote on your favorite hash algorithm here!

Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-2007, 11:53 PM
ryanszeto ryanszeto is offline
Newbie
 
Join Date: Jul 2007
Posts: 9
Credits: 0
Rep Power: 0
ryanszeto is on a distinguished road
Default Use Pexpect module in windows platform

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-15-2007, 11:57 PM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,578
Last Blog:
CherryPy(thon)
Credits: 55
Rep Power: 28
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

Pexpect is platform-independent, so there should be no problems in running it under Windows. If there is, though, can you specify it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-16-2007, 12:03 AM
ryanszeto ryanszeto is offline
Newbie
 
Join Date: Jul 2007
Posts: 9
Credits: 0
Rep Power: 0
ryanszeto is on a distinguished road
Default Re: Use Pexpect module in windows platform

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-16-2007, 07:05 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,578
Last Blog:
CherryPy(thon)
Credits: 55
Rep Power: 28
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

I don't think there's other libraries like Pexpect for Python - but I could be wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -5. The time now is 07:03 PM.

Contest Stats

Xav ........ 1455.48
MeTh0Dz|Reb0rn ........ 1089.45
WingedPanther ........ 977.76
marwex89 ........ 962.9
morefood2001 ........ 911.18
John ........ 910.37
Brandon W ........ 822.79
chili5 ........ 312.39
Steve.L ........ 276.28
dcs ........ 253.49

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 84%

Ads