subprocess "handle is invalid" error
Daniel Serodio
nabble.dserodio at neverbox.com
Thu Jan 10 13:24:59 EST 2008
Thomas Heller-2 wrote:
>
> Grant Edwards schrieb:
>
> [snip]
>
>>
>> Traceback (most recent call last):
>> File "surfedit.py", line 28, in ?
>> File "Gnuplot\_Gnuplot.pyc", line 178, in __init__
>> File "Gnuplot\gp_win32.pyc", line 117, in __init__
>> File "subprocess.pyc", line 533, in __init__
>> File "subprocess.pyc", line 607, in _get_handles
>> File "subprocess.pyc", line 634, in _make_inheritable
>> WindowsError: [Errno 6] The handle is invalid
>>
>> How does one troubleshoot errors that happen three layers deep
>> in the subprocess module?
>>
>
> I think this is a subprocess bug. It is often attributed to py2exe
> because
> usually developers do never run the script in pythonW.exe instead of
> python.exe,
> and later build a *windows* program with py2exe (the *windows* program has
> no
> console, and that triggers the bug).
>
> [snip]
>
> I thought that this bug was fixed in Python2.5.1 (the release candidate),
> but it seems it wasn't. The bug is at
> http://sourceforge.net/tracker/index.php?func=detail&aid=1124861&group_id=5470&atid=105470
>
> If all this is correct, I hope that someone adds a section to the py2exe
> wiki;
> and reopens the above bug report.
>
> Thomas
>
I've been bitten by this same bug in 2.5.1, and the bug you linked to (which
is now @ http://bugs.python.org/issue1124861) is still marked as fixed.
I've tried to reopen it but it seems only the reporter (or some "admin"
user) is able to do it.
--
View this message in context: http://www.nabble.com/subprocess-%22handle-is-invalid%22-error-tp10060967p14740517.html
Sent from the Python - python-list mailing list archive at Nabble.com.
More information about the Python-list
mailing list