Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > process.py problems

Reply
Thread Tools

process.py problems

 
 
Justin Johnson
Guest
Posts: n/a
 
      07-08-2003
Hello,

I was wondering if anyone has seen this behavior before for the
process.py
module available at http://starship.python.net/crew/tmick/. I've been
using it quite well on windows 2000 servers, but when I try to use it on
a window nt 4.0 box I get the results posted below. I have both
process.py and which.py installed.

Any help you can provide is greatly appreciated.

>>> import process
>>> p = process.ProcessOpen("dir")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "process.py", line 1108, in __init__
self._startOnWindows()
File "process.py", line 1279, in _startOnWindows
cmd = _fixupCommand(cmd, self._env)
File "process.py", line 506, in _fixupCommand
cmd = _whichFirstArg(cmd, env)
File "process.py", line 315, in _whichFirstArg
candidates = list(which.which(first))
File "which.py", line 251, in which
raise WhichError("Could not find '%s' on the path." % command)
which.WhichError: Could not find 'dir' on the path.
>>> p = process.ProcessOpen("dir.exe")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "process.py", line 1108, in __init__
self._startOnWindows()
File "process.py", line 1279, in _startOnWindows
cmd = _fixupCommand(cmd, self._env)
File "process.py", line 506, in _fixupCommand
cmd = _whichFirstArg(cmd, env)
File "process.py", line 315, in _whichFirstArg
candidates = list(which.which(first))
File "which.py", line 251, in which
raise WhichError("Could not find '%s' on the path." % command)
which.WhichError: Could not find 'dir.exe' on the path.
>>> p = process.ProcessOpen("cmd")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "process.py", line 1108, in __init__
self._startOnWindows()
File "process.py", line 1295, in _startOnWindows
raise ProcessError(msg=ex.args[2], errno=ex.args[0])
process.ProcessError: The system cannot find the file specified.
>>>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the web, charset problems and symbols problems Sak Na rede Ruby 0 01-30-2009 05:05 AM
Problems, problems for newbie Shelly ASP .Net 1 09-03-2007 02:10 AM
Problems compiling simple C++ code (also problems with std::string) Susan Baker C++ 2 06-26-2005 01:43 AM
Re: sound problems and modem problems Harold Potter Computer Support 5 12-04-2003 04:12 PM



Advertisments