[Pythonmac-SIG] py2app with wxpython
Gerhard Schmidt
estartu at augusta.de
Mon Feb 28 10:47:00 CET 2011
Am 17.02.11 18:12, schrieb Christopher Barker:
> 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)
calling python basicwx.py from terminal works after setting
VERSIONER_PYTHON_PREFER_32_BIT=yes
maybe thats the problem. Is there a way to force py2app to chose the 32
bit version or to set the env accordlingly
buiold the app works, starting doesn't.
console logs the following
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
Traceback (most recent call last):
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
File
"/Users/Estartu/Desktop/test/dist/basicwx.app/Contents/Resources/__boot__.py",
line 103, in <module>
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
_argv_emulation()
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
File
"/Users/Estartu/Desktop/test/dist/basicwx.app/Contents/Resources/__boot__.py",
line 101, in _argv_emulation
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
_get_argvemulator().mainloop()
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
File
"/Users/Estartu/Desktop/test/dist/basicwx.app/Contents/Resources/__boot__.py",
line 40, in mainloop
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
stoptime = Evt.TickCount() + timeout
28.02.11 10:41:27 [0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]
AttributeError: 'module' object has no attribute 'TickCount'
28.02.11 10:41:28 basicwx[2946] basicwx Error
28.02.11 10:41:28 basicwx[2946] basicwx Error
28.02.11 10:41:35 com.apple.launchd.peruser.502[693]
([0x0-0xe70e7].org.pythonmac.unspecified.basicwx[2946]) Exited with exit
code: 255
28.02.11 10:41:59 com.apple.launchd.peruser.502[693]
([0x0-0xe80e8].org.python.buildapplet[2953]) Exited: Killed
Regards
Estartu
--
----------------------------------------------------------------------------
Gerhard Schmidt | Nick : estartu IRC : Estartu |
Fischbachweg 3 | | PGP Public Key
86856 Hiltenfingen | Privat: estartu at augusta.de | auf Anfrage/
Tel: 08232 77 36 4 | Dienst: schmidt at ze.tu-muenchen.de | on request
Fax: 08232 77 36 3 | |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 368 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110228/599ead63/attachment.pgp>
More information about the Pythonmac-SIG
mailing list