Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 .exe file invalid ?

closed-invalid
nobody
None
5
2003-03-20
2003-03-19
Cédric Dutoit
No

I try to create a .exe on windows for my python program
but the .exe has no effect when I launch it. (No error
message)

Details :

I installed
- py2exe-0.3.3.win32-py2.2.exe
- python 2.2
- wxPython 2.4.0.6
on windows 98SE
And created a .exe with the command "python setup.py
py2exe".
I have a python_path=c:\python22 environment variable.

I create a .exe from python source file with no problem
but warnings :
-----------------------------------------------------------------------------
warning: py2exe: *****************************************
**********
warning: py2exe: * The following modules were not found:
warning: py2exe: * cmndlgsc
warning: py2exe: * utilsc
warning: py2exe: * rourl2path
warning: py2exe: * clip_dndc
warning: py2exe: * windows3c
warning: py2exe: * filesysc
warning: py2exe: * xml.dom.EMPTY_NAMESPACE
warning: py2exe: * eventsc
warning: py2exe: * windows2c
warning: py2exe: * controlsc
warning: py2exe: * ic
warning: py2exe: * misc2c
warning: py2exe: * xml.dom.HierarchyRequestErr
warning: py2exe: * windowsc
warning: py2exe: * stattoolc
warning: py2exe: * mdic
warning: py2exe: * gdic
warning: py2exe: * sizersc
warning: py2exe: * printfwc
warning: py2exe: * SOCKS
warning: py2exe: * fontsc
warning: py2exe: * imagec
warning: py2exe: * streamsc
warning: py2exe: * miscc
warning: py2exe: * controls2c
warning: py2exe: * framesc
warning: py2exe: *****************************************
**********
-----------------------------------------------------------------------------

My setup.py file is the following :
-----------------------------------------------------------------------------
# setup.py
from distutils.core import setup
import glob
import py2exe

setup(name="gimini",
scripts=["gimini.pyw"],
data_files=[ ( "img",

["img/new.bmp","img/open.bmp", "img/print.bmp",

"img/save.bmp","img/ins_node.bmp",

"img/ins_picture.bmp", "img/ins_node_multipl
e.bmp",
"img/spacehm.bmp", "img/spacehp.bmp
", "img/ins_url.bmp",
"img/child.ico", "img/child.jpg", "img/do
wn.ico",
"img/down.jpg",

(...)
)
-----------------------------------------------------------------------------

Is this a bug ? I've been using this setup.py file some
times and it always worked...

Discussion

  • Cédric Dutoit
    Cédric Dutoit
    2003-03-19

    setup file used to create the .exe

     
    Attachments
  • Thomas Heller
    Thomas Heller
    2003-03-20

    • status: open --> open-invalid
     
  • Thomas Heller
    Thomas Heller
    2003-03-20

    Logged In: YES
    user_id=11105

    You create a windows *gui* exe-file (because your script has
    the extensions .pyw), thus you cannot see any tracebacks
    when the exe runs. You should (temporarily) build the exe
    with the --console flag, then the exe will open a console
    when started and you will see the tracebacks.

    There are other possibilities to view the tracebacks (or
    other stdout/stderr output) but this is the easiest.

     
  • Thomas Heller
    Thomas Heller
    2003-03-20

    • status: open-invalid --> closed-invalid