[Pythonmac-SIG] py2app newbie problems
Bob Ippolito
bob at redivi.com
Mon Jun 27 07:09:54 CEST 2005
On Jun 27, 2005, at 12:36 AM, Arthur Debert wrote:
> Sorry if this is too basic, but I'm having real trouble getting
> py2app working.
> I have an application writen in python 2.4 that uses wxPython(2.6)
> and 4Suite.
>
> Two questions:
> a) i can't make much sense about this on the documentation. From what
> I understood, all I have to do is point the setup.py script to the
> 'main' script of my application, and the module graph should find and
> package all the needed frameworks (such as wxPython and 4Suite). Is
> this right? If not, where should I specify that I am using these
> frameworks?
>
> b) when tryiing to build setup.py I get the following error:
> "
> TypeError: compile() expected string without null bytes
>
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>> site-packages/py2app/modulegraph/modulegraph.py(376)load_module()
>>
> -> co = compile (fp.read().replace("\r\n", "\n")+'\n',pathname,
> 'exec')
> "
>
> ouch! what does that mean?
It means what it says, one of your Python scripts has null bytes in
it. That shouldn't happen. I've never seen it happen with wx, so
it's either your code or 4suite. I'll have the next version of
py2app do something nicer when that happens. No idea when I'll have
time to do that, though.
-bob
More information about the Pythonmac-SIG
mailing list