Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > error using process module Process class

Reply
Thread Tools

error using process module Process class

 
 
Earl Eiland
Guest
Posts: n/a
 
      05-10-2005
When executing the following code snippet

import process
....
....
for x in Files:
Command_String = 'C:\Program Files\WinRK\WinRK.exe -create ' +
os.path.join(InputDirectory, os.path.splitext(x)[0]) + ' -set
compression_method ppmz -setg include_paths none -add ' +
os.path.join(InputDirectory, x) + ' -apply -quit'
PROC = process.Process(Command_String)
PROC.wait()

from the command line

C:\Documents and Settings\eeiland\Desktop>Thesis_Programs\Compresso r2.py
Test_Da
ta\sliceX12 Test_Output\Test

generates the following error:

Traceback (most recent call last):
File "C:\Documents and
Settings\eeiland\Desktop\Thesis_Programs\Compresso r2.py
", line 61, in ?
PROC = process.Process(Command_String)
File "C:\Python24\Lib\site-packages\process.py", line 839, in __init__
self._startOnWindows()
File "C:\Python24\Lib\site-packages\process.py", line 913, in
_startOnWindows
cmd = _whichFirstArg(cmd, self._env)
File "C:\Python24\Lib\site-packages\process.py", line 303, in
_whichFirstArg
import which
ImportError: No module named which


 
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
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Class A contains class B, class B points to class A Joseph Turian C++ 5 12-30-2005 03:24 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM
Class B using Class C, and Class A using both B and C jd C++ 3 11-27-2004 12:13 AM



Advertisments