From: Tim B. <tb...@bi...> - 2004-05-13 19:06:46
|
Greetings, all. I have chosen to use wxPython/PythonCardPrototype to develop front end apps to drive a set of tools I have developed in Python. I am having trouble running executable versions of my PythonCard apps created with py2exe. The console .exe's that I have created with py2exe seem to run ok, but I have yet to create a windows version that will run. I have thus returned to square one to try and get a handle on what is going wrong. The short story: py2exe creates minimal.exe but states: "The following modules appear to be missing ['wxPython.lib.PyCrust.introspect']" minimal.exe will execute but does not appear to properly run the PythonCard app, I.e. it does nothing. Also, when I run minimal.exe from the command line, no errors are output to the console. The long story: 1. I am using Windows XP, Python version 2.3.3, wxPython version 2.4.2.4, PythonCardPrototype version 0.7.2, and py2exe version 0.5.0. 2. I am using the minimalStandalone sample, which runs successfully with python.exe or pythonw.exe. 3. I am trying to compile the minimalStandalone sample, using the following setup file setup.py (located in the same dir as my source files minimal.py and minimal.rsrc.py): from distutils.core import setup import py2exe setup(name="minimal", windows=["minimal.py"], data_files=[ (".", ["minimal.rsrc.py"]) ]) 4. I run py2exe from command line: python setup.py py2exe --excludes=Image and get the following output: running py2exe *** searching for required modules *** *** parsing results *** creating python loader for extension 'wxPython.wxc' creating python loader for extension 'datetime' creating python loader for extension 'wxPython.helpc' creating python loader for extension '_sre' creating python loader for extension '_socket' creating python loader for extension 'wxPython.stc_c' creating python loader for extension 'pyexpat' creating python loader for extension '_ssl' *** finding dlls needed *** *** create binaries *** *** byte compile python files *** skipping byte-compilation of C:\Python23\lib\site-packages\wxPython\py\frame.py to wxPython\py\frame.pyc skipping byte-compilation of c:\Python23\lib\code.py to code.pyc skipping byte-compilation of C:\Python23\lib\site-packages\wxPython\fonts.py to wxPython\fonts.pyc skipping byte-compilation of c:\Python23\lib\random.py to random.pyc skipping byte-compilation of C:\Python23\lib\site-packages\wx\py\__init__.py to wx\py\__init__.pyc . . [many more "skipping byte-compilation of" lines...] . skipping byte-compilation of C:\Python23\lib\site-packages\wx\py\introspect.py to wx\py\introspect.pyc skipping byte-compilation of c:\Python23\lib\linecache.py to linecache.pyc skipping byte-compilation of C:\Python23\lib\site-packages\wxPython\frames.py to wxPython\frames.pyc skipping byte-compilation of C:\Python23\lib\site-packages\wxPython\__init__.py to wxPython\__init__.pyc skipping byte-compilation of C:\Python23\lib\site-packages\PythonCardPrototype\pom.py to PythonCardPrototype\pom.pyc *** copy extensions *** *** copy dlls *** *** copy data files *** copying C:\Python23\lib\site-packages\py2exe\run_w.exe -> C:\Python23\StandAloneTest_Windows\dist\minimal.exe The following modules appear to be missing ['wxPython.lib.PyCrust.introspect'] 5. As you can see, py2exe creates minimal.exe but states: "The following modules appear to be missing ['wxPython.lib.PyCrust.introspect']" 6. minimal.exe runs but does not appear to execute the app. When I run minimal.exe from the command line, no errors are output to the console. Does anyone know what might be going wrong? Thanks, Tim Black |