Problem running an executable from GUI2Exe

Hello,

This is probably not the most appropriate list to report this problem to, but that's a start.

I created an executable using GUI2Exe 0.5, on Windows (Attached is the setup file).
On my machine, the executable runs fine, but when moving it to another machine, I'm getting this error:

Traceback (most recent call last):
  File "welldrainage.2010.py", line 2325, in OnDrainButton
  File "welldrainage.2010.py", line 2340, in computeAll
  File "welldrainage.2010.py", line 2626, in beforeCompDefine
  File "subprocess.pyo", line 614, in __init__
  File "subprocess.pyo", line 722, in _get_handles
  File "subprocess.pyo", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid Traceback (most recent call last):
  File "welldrainage.2010.py", line 2325, in OnDrainButton
  File "welldrainage.2010.py", line 2340, in computeAll
  File "welldrainage.2010.py", line 2626, in beforeCompDefine
  File "subprocess.pyo", line 614, in __init__
  File "subprocess.pyo", line 722, in _get_handles
  File "subprocess.pyo", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid

Before getting into more investigations, machine differences, etc. may be someone has an idea of what's going wrong ? Or at least give me an idea of where I should start to fix the problem ?

Thanks

Raphael

setup.py (3.43 KB)

Hi,

Hello,

This is probably not the most appropriate list to report this problem to,
but that's a start.

I created an executable using GUI2Exe 0.5, on Windows (Attached is the setup
file).
On my machine, the executable runs fine, but when moving it to another
machine, I'm getting this error:

Traceback (most recent call last):
File "welldrainage.2010.py", line 2325, in OnDrainButton

               ^^^^^^^^^^^^^^^^^^^^^

It looks like we might be working in the same area (reservoir/well
simulations) :smiley:

File "welldrainage.2010.py", line 2340, in computeAll
File "welldrainage.2010.py", line 2626, in beforeCompDefine
File "subprocess.pyo", line 614, in __init__
File "subprocess.pyo", line 722, in _get_handles
File "subprocess.pyo", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid Traceback (most recent call
last):
File "welldrainage.2010.py", line 2325, in OnDrainButton
File "welldrainage.2010.py", line 2340, in computeAll
File "welldrainage.2010.py", line 2626, in beforeCompDefine
File "subprocess.pyo", line 614, in __init__
File "subprocess.pyo", line 722, in _get_handles
File "subprocess.pyo", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid

Before getting into more investigations, machine differences, etc. may be
someone has an idea of what's going wrong ? Or at least give me an idea of
where I should start to fix the problem ?

By googling around, it seems like it is a bug in the subprocess module:

So, as it seems to me, there is nothing GUI2Exe (or the bare py2exe)
can do to solve this issue. You might try to investigate more in the
py2exe mailing list.

···

On 19 February 2010 20:17, Raphael Mayoraz wrote:
--
Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/