[Pythonmac-SIG] bundlebuilder --standalone not working

Bob Swerdlow rswerdlow at transpose.com
Wed Sep 3 14:36:15 EDT 2003


I added --package=encodings and application seems to be working well now.

That warning about XML seems inappropriate:
    DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
We ARE using xml.sax and I don't see why xmllib is getting called at all -
could this be coming from some other package rather than our code?  Can I
safely ignore these warnings?

The bundle is now 8MB, which is pretty large for downloading.  Is there any
way to reduce the size?

Thanks,
Bob


----- Original Message ----- 
From: "Just van Rossum" <just at letterror.com>
To: "Bob Swerdlow" <rswerdlow at transpose.com>
Cc: <pythonmac-sig at python.org>; "Gary Robinson" <grobinson at transpose.com>
Sent: Wednesday, September 03, 2003 12:24 PM
Subject: Re: [Pythonmac-SIG] bundlebuilder --standalone not working


> Bob Swerdlow wrote:
>
> > Unfortunately, building with --standalone does not seem to include the
> right
> > xml code.
> >
> > If I build with "python buildapp.py build" my application works as I
> expect
> > it to, but it is not stand-alone.
> >
> > If I build with "python buildapp.py --standalone build", I get
> >     ImportError: No module named sax
> > on
> >     form xml.sax import saxutils
> >
> > If I build with "python buildapp.py --standalone --package=_xmlplus",
> I get:
> >     ./build/Goombah.app/Contents/Resources/Modules.zip/xmllib.py:10:
> > DeprecationWarning:
> >     The xmllib module is obsolete.  Use xml.sax instead.
> > and
> >     LookupError: unknown encoding: string-escape
> > in pickle.py (the stack trace is attached below).
> >
> > My guess is that _xmlplus is not the package that I need.  Is there
> > some other package that is needed to include the sax module?
>
> If you need PyXML, you need _xmlplus. If that doesn't work, try my other
> suggestion: remove the original xml package, and rename _xmlplus to xml.
>
> The string-escape issue: that will probably be solved by adding
> --package=encodings to the command line, or include a dummy "import
> encodings.string_escape" somewhere in your code, so that modulefinder
> picks it up.
>
> Just
>
>





More information about the Pythonmac-SIG mailing list