From: Kevin A. <al...@se...> - 2004-05-13 20:38:51
|
I think this particular issue was fixed with release 0.7.3.1 which was=20= upgraded for py2exe 0.5 and removed support for older versions of=20 PyCrust which led to the warning messages. However, you'll probably=20 want to figure out your other problem with pythonw.exe first as well as=20= upgrading to 0.7.3.1 before trying to diagnose the problem further. ka On May 13, 2004, at 12:11 PM, Tim Black wrote: > Greetings, all. I have chosen to use wxPython/PythonCardPrototype to=20= > develop front end apps to drive a set of tools I have developed in=20 > Python. I am having trouble running executable versions of my=20 > PythonCard apps created with py2exe. The console .exe=92s that I have=20= > created with py2exe seem to run ok, but I have yet to create a windows=20= > version that will run. =A0I have thus returned to square one to try = and=20 > get a handle on what is going wrong. > > =A0 > > The short story: py2exe creates minimal.exe but states: "The following=20= > modules appear to be missing ['wxPython.lib.PyCrust.introspect']"=20 > minimal.exe will execute but does not appear to properly run the=20 > PythonCard app, I.e. it does nothing. Also, when I run minimal.exe=20 > from the command line, no errors are output to the console. > > =A0 > > The long story: > > =A0 > > 1.=A0=A0=A0=A0=A0 I am using Windows XP, Python version 2.3.3, = wxPython version=20 > 2.4.2.4, PythonCardPrototype version 0.7.2, and py2exe version 0.5.0. > > 2.=A0=A0=A0=A0=A0 I am using the minimalStandalone sample, which runs=20= > successfully with python.exe or pythonw.exe. > > 3.=A0=A0=A0=A0=A0 I am trying to compile the minimalStandalone sample, = using the=20 > following setup file setup.py (located in the same dir as my source=20 > files minimal.py and minimal.rsrc.py): > > =A0 > > from distutils.core import setup > > import py2exe > > =A0 > > setup(name=3D"minimal", > > =A0=A0=A0=A0=A0 windows=3D["minimal.py"], > > =A0=A0=A0=A0=A0 data_files=3D[ (".", ["minimal.rsrc.py"]) ]) > > =A0 > > 4.=A0=A0=A0=A0=A0 I run py2exe from command line: > > =A0 > > python setup.py py2exe --excludes=3DImage > > =A0 > > =A0=A0=A0=A0 and get the following output: > > =A0=A0=A0=A0 > > 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=20 > C:\Python23\lib\site-packages\wxPython\py\frame.py to=20 > wxPython\py\frame.pyc > > skipping byte-compilation of c:\Python23\lib\code.py to code.pyc > > skipping byte-compilation of=20 > 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=20 > C:\Python23\lib\site-packages\wx\py\__init__.py to wx\py\__init__.pyc > > =A0 > > . > > .=A0=A0 [many more =93skipping byte-compilation of=94 lines=85] > > . > > =A0 > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wx\py\introspect.py to=20 > wx\py\introspect.pyc > > skipping byte-compilation of c:\Python23\lib\linecache.py to=20 > linecache.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\frames.py to=20 > wxPython\frames.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\wxPython\__init__.py to=20 > wxPython\__init__.pyc > > skipping byte-compilation of=20 > C:\Python23\lib\site-packages\PythonCardPrototype\pom.py to=20 > PythonCardPrototype\pom.pyc > > *** copy extensions *** > > *** copy dlls *** > > *** copy data files *** > > copying C:\Python23\lib\site-packages\py2exe\run_w.exe ->=20 > C:\Python23\StandAloneTest_Windows\dist\minimal.exe > > The following modules appear to be missing > > ['wxPython.lib.PyCrust.introspect'] > > =A0 > > 5.=A0=A0=A0=A0=A0 As you can see, py2exe creates minimal.exe but = states: "The=20 > following modules appear to be missing=20 > ['wxPython.lib.PyCrust.introspect']" > > 6.=A0=A0=A0=A0=A0 minimal.exe runs but does not appear to execute the = app. When=20 > I run minimal.exe from the command line, no errors are output to the=20= > console. > > =A0 > > Does anyone know what might be going wrong? > > =A0 > > Thanks, > > Tim Black > > =A0 |