[Pythonmac-SIG] Py2app & wxPython problem...

Schollnick, Benjamin Benjamin.Schollnick at XEROX.COM
Fri Aug 12 15:47:39 CEST 2005


	I spoke too soon..

	Setting Site-packages works on the development machine, but does
not seem to be helping on the non-development systems...

	Python 2.3.5 (Stock Tiger)
	Py2App v0.2-py2.3
	wxPython 2.6 (unicode, 2.6.10)

	I have attempted to include wx, wxPython and PythonCard as
packages, and I believe it moves the crash further down the chain.

	The issue appears that wxPython is not finding the _core
module... (ie. the wxPython package is not receiving all the
dependencies that it requires..)

	The development system is running Tiger (10.4), and I'm testing
on a 10.3.9 system...

	Any suggestions?

	When this was being built on 10.39, it had worked fine on the
test system...  But I would prefer to not to regress to 10.3.9 on the
development system.

		- Benjamin

See the Console for a detailed traceback.
Traceback (most recent call last):
__.py", line 61, in ?
__.py", line 58, in _run
    execfile(path, globals(), globals())
gui.py", line 81, in ?
    from    PythonCard             import model
site-packages/PythonCard/model.py", line 24, in ?
/site-packages/wxPython/__init__.py", line 10, in ?
    import _wx
/site-packages/wxPython/_wx.py", line 3, in ?
    from _core import *
/site-packages/wxPython/_core.py", line 22, in ?
    wxNOT_FOUND = wx._core.NOT_FOUND
AttributeError: 'module' object has no attribute 'NOT_FOUND'
2005-08-12 09:32:11.930 audit_gui[1506] audit_gui Error
2005-08-12 09:32:11.931 audit_gui[1506] An unexpected error has occurred
during execution of the main script

AttributeError: 'module' object has no attribute 'NOT_FOUND'

from distutils.core import setup
import py2app

includes = ["encodings",
             "encodings.utf_8", "encodings.ascii", "wx", "wxPython",

packages = ["wx", "wxPython", "PythonCard"]

py2app_options = { 'argv_emulation':True,
                    'site_packages': True,
                    'includes' : includes,
                    'packages' : packages

data_files = [  ("", ["AUDIT.INI",
setup ( app=['audit_gui.py'],
        options={"py2app": dict(py2app_options)},
        data_files= data_files )

More information about the Pythonmac-SIG mailing list