Hi,
Just wondering if anyone else ran into this. It seems that the Python shipped with Houdini on Win32 has some problems redirecting I/O using stdout and stderr when calling subprocess.Popen - or I'm just doing something that I shouldn't be. When I run something like:
import subprocess
subprocess.Popen(, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
I get something like this:
Traceback (most recent call last):
File “<console>”, line 1, in <module>
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.745\python\lib\python2.5\subprocess.py”, line 586, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.745\python\lib\python2.5\subprocess.py”, line 681, in _get_handles
p2cread = self._make_inheritable(p2cread)
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.745\python\lib\python2.5\subprocess.py”, line 722, in _make_inheritable
DUPLICATE_SAME_ACCESS)
WindowsError: The handle is invalid
After some googling - I found some information that has lead me to believe that there was some problems with Python's Win32 subprocess.Popen in earlier builds of Python 2.5.
Has anyone ran into a similar problem? Or if I'm doing something that I shouldn't be - any suggestions on the right way would be much appreciated!
Thanks.