error using process module Process class

Discussion in 'Python' started by Earl Eiland, May 10, 2005.

  1. Earl Eiland

    Earl Eiland Guest

    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\Compressor2.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\Compressor2.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
     
    Earl Eiland, May 10, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,800
    Thomas Weidenfeller
    Oct 12, 2005
  2. jd
    Replies:
    3
    Views:
    358
  3. Maric Michaud
    Replies:
    0
    Views:
    7,196
    Maric Michaud
    Jun 24, 2006
  4. Uncutstone Wu
    Replies:
    9
    Views:
    168
    uncutstone
    Sep 24, 2006
  5. Iñaki Baz Castillo
    Replies:
    3
    Views:
    154
    Iñaki Baz Castillo
    May 2, 2008
Loading...

Share This Page