[Pythonmac-SIG] py2applet question
Bob Ippolito
bob at redivi.com
Tue Dec 28 22:32:22 CET 2004
On Dec 28, 2004, at 4:14 PM, Kevin Walzer wrote:
> Kevin-Walzers-Computer:~/Desktop/eric-3.5.1/eric kevin$ py2applet
> eric3.py
> from: can't read /var/mail/py2app.scripts.script_py2applet
> /usr/local/bin/py2applet: line 3: syntax error: unexpected end of file
Sounds like the hash-bang is missing from /usr/local/bin/py2applet.
I'm not sure why that is, I haven't been able to reproduce with svn
trunk.
> ~ from UI.SingleApplication import SingleApplicationClient
>
> ~ File "UI/SingleApplication.pyc", line 17, in ?
>
> ~ File "Preferences/__init__.pyc", line 1270, in ?
>
> ~ File "Preferences/Shortcuts.pyc", line 17, in ?
>
> ImportError: No module named XML.XMLUtilities
This is because whatever you're wrapping is making some crazy
non-import-bytecode based import of some XML package. You can not use
the GUI py2applet with such an application, and you should probably
create a setup.py. The command-line py2applet might be able to package
such an application like this:
% py2applet eric3.py --includes='XML.*'
It really depends on what the XML is and how it's structured.
> I'm using the newest version of py2app (.1.6) that has the support for
> PyQt built-in. I'm just putting the name of the main script in the
> setup.py file, and not adding anyting else. Is there something special
> I
> need to do with the XML module in terms of referencing it in the
> setup.py script? I've actually run into this problem (w/XML modules)
> with other apps I've tried to build with py2app, so I'm not sure what
> to do.
Where the heck does this XML module come from anyway? It's not in the
standard library or anything else I've ever used.
-bob
More information about the Pythonmac-SIG
mailing list