Differences between revisions 1 and 2
Revision 1 as of 2004-07-17 19:57:54
Size: 1125
Editor: lsanca2-ar37-4-46-200-183
Comment:
Revision 2 as of 2004-07-17 19:59:37
Size: 1257
Editor: lsanca2-ar37-4-46-200-183
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
I'm having some trouble using py2exe (0.5.0) with wxPython (2.4.2.4). Without py2exe
 my program runs fine, and it compiles fine, but when I run the compiled executa
ble it crashes with:
I'm having some trouble using Python (2.3.4) with py2exe (0.5.0) and wxPython (2.4.2.4). Without py2exe
 my program runs fine, and it compiles fine, but when I run the compiled executable it crashes with:
Line 22: Line 21:
 wxPython program I try. I've heard of people successfully py2exe'ing wxPython p
rograms before so I wonder if doing something wrong. This is my setup.py:
 wxPython program I try. I've heard of people successfully py2exe'ing wxPython programs before so I wonder if doing something wrong. This is my setup.py:
Line 33: Line 31:
I'm at wits end here... anyone have any ideas whats wrong? ''-jc'' Anyone have any ideas whats wrong? options={"py2exe": {"includes": "wxPython.wx}} and options={"py2exe": {"package": "wx"}} and windows=["wxfoo.py"] return the same results.
 ''-jc''

I'm having some trouble using Python (2.3.4) with py2exe (0.5.0) and wxPython (2.4.2.4). Without py2exe

  • my program runs fine, and it compiles fine, but when I run the compiled executable it crashes with:

Traceback (most recent call last):
File "wxfoo.py", line 10, in ?
from wxPython.wx import *
File "wxPython\wx.pyc", line 4, in ?
File "wxPython\misc.pyc", line 15, in ?
File "wxPython\wx.pyc", line 6, in ?
File "wxPython\misc2.pyc", line 4, in ?
File "wxPython\windows.pyc", line 15, in ?
File "wxPython\wx.pyc", line 10, in ?
File "wxPython\gdi.pyc", line 15, in ?
File "wxPython\wx.pyc", line 12, in ?
File "wxPython\fonts.pyc", line 120, in ?
NameError: name 'wxObjectPtr' is not defined

All wxfoo.py contains is "from wxPython.wx import *" and this happens with every

  • wxPython program I try. I've heard of people successfully py2exe'ing wxPython programs before so I wonder if doing something wrong. This is my setup.py:

   1 from distutils.core import setup
   2 import py2exe
   3 
   4 setup(console=["wxfoo.py"])

Anyone have any ideas whats wrong? options={"py2exe": {"includes": "wxPython.wx}} and options={"py2exe": {"package": "wx"}} and windows=["wxfoo.py"] return the same results.

  • -jc

Py2exeAndwxPython (last edited 2008-07-08 11:27:44 by localhost)