"Bad file descriptor" after py2exe or Installer

Thomas Heller theller at python.net
Fri Dec 12 08:41:10 EST 2003


Luc Saffre <luc.saffre at gmx.net> writes:

> On 11/12/2003 23:11, Thomas Heller wrote:
>  > It seems I cannot reproduce this with py2exe 0.5.
>  > Can you?
>
> Yes: I use py2exe 0.5.0a5.
>
> Here is in more detailed, how I reproduce the problem:
>
> I used the following installers:
>    Python-2.3.3c1.exe
>    PIL-1.1.4.win32-py2.3.exe
>    py2exe-0.5.0a5.win32-py2.3.exe
> I installed these three to a clean installation (except for my windows
> registry where I don't know how to verify cleaness)
>
> I place the test.py as described into a separate directory, together
> with a file setup.py:
>
>    from distutils.core import setup
>    import py2exe
>    setup( console=["test.py"] )
>
> and then I type "setup py2exe" at the command line.
> Here is the output of that command:

[...]
> *** copy extensions ***
> copying C:\PYTHON23\DLLs\_sre.pyd ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\PYTHON23\lib\site-packages\PIL\_imaging.pyd ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\PYTHON23\DLLs\_tkinter.pyd ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\PYTHON23\lib\site-packages\PIL\_imagingtk.pyd ->
> T:\data\luc\release\lino\tests\py2exe\dist
> *** copy dlls ***

I guess the problem is here:

> copying u:\CYGWIN\BIN\cygwin1.dll ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying u:\CYGWIN\BIN\tk84.dll -> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\WINNT\System32\python23.dll ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\PYTHON23\DLLs\tcl84.dll ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying u:\CYGWIN\BIN\tcl84.dll ->
> T:\data\luc\release\lino\tests\py2exe\dist
> copying C:\PYTHON23\lib\site-packages\py2exe\run.exe ->
> T:\data\luc\release\lino\tests\py2exe\dist\test.exe
> copying C:\PYTHON23\lib\site-packages\py2exe\run_w.exe ->
> T:\data\luc\release\lino\tests\py2exe\dist\tkhello.exe

py2exe seems to pick up cygwin binaries.  The reason could be that
either you have cygwin extensions somewhere in your pythonpath, or parts
of the PATH env variable points into the cygwin directories, or
something like that.  You should look at the output above carefully, and
make sure that it is what one would expect.

HTH,

Thomas




More information about the Python-list mailing list