[Pythonmac-SIG] py2app with wxpython

Christopher Barker Chris.Barker at noaa.gov
Thu Feb 17 18:12:36 CET 2011


On 2/17/11 2:05 AM, Gerhard Schmidt wrote:
> Hi,
>
> i try to generate an app from a wxPython project.
>
> Generation the App runs without an error. But when i try to start the
> App it terminates.

versions of python (and which binary install), py2app, wxPython, OS-X ?

> The logs show that import wx doesn't work.

can you build a really, really simple wx app? (see enclosed)

> What am i missing.

I'm not sure, but you do have something extra:

                          CFBundleIdentifier         = 
"com.acf.vereinsverwaltung",
                          )
           ,'packages':      'wx'

you don't need to specify the wx package -- if there is an "import wx" 
in your code, py2app will find it.


           ,'site_packages': True

And I don't remember what this does -- try taking it out and see what 
you get.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basicwx.py
Type: application/x-python
Size: 185 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110217/d6536ba3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: application/x-python
Size: 309 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110217/d6536ba3/attachment-0001.bin>


More information about the Pythonmac-SIG mailing list