[Pythonmac-SIG] bundlebuilder --standalone not working
Bob Swerdlow
rswerdlow at transpose.com
Tue Sep 2 15:57:42 EDT 2003
Just -
Thanks for your help. The "--package=_xmlplus" seems to have improved
things. I still get lots of warnings, but the application is running (I'm
getting run-time errors, but I don't think they are related to this.)
Here are the warnings - do you see anything I should be concerned about?:
% python buildapp.py --standalone --package=_xmlplus build
Finding module dependencies
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Car
bon/Controls.py:11: FutureWarning: hex/oct constants > sys.maxint will
return positive values in Python 2.4 and up
kDataBrowserClientPropertyFlagsMask = 0xFF000000
Building 'build/Goombah.app'
Copying files
Adding Python modules
Warning: couldn't find the following submodules:
(Note that these could be false alarms -- it's not always
possible to distinguish between "from package import submodule"
and "from package import name")
? AppKit.NSAlertAlternateReturn
? AppKit.NSAlertDefaultReturn
? AppKit.NSApp
? AppKit.NSApplicationMain
? AppKit.NSBeginAlertSheet
? AppKit.NSBeginInformationalAlertSheet
? AppKit.NSCancelButton
? AppKit.NSGetInformationalAlertPanel
? AppKit.NSOKButton
? AppKit.NSReleaseAlertPanel
? AppKit.NSRunAlertPanel
? AppKit.NSRunCriticalAlertPanel
? AppKit.NSRunInformationalAlertPanel
? AppKit.NSWorkspace
? Foundation.NSAppleScript
? Foundation.NSData
? Foundation.NSDictionary
? Foundation.NSInvocation
? Foundation.NSLog
? Foundation.NSMutableDictionary
? Foundation.NSObject
? Foundation.NSTimer
? Foundation.NSURL
? Foundation.NSUserDefaults
? objc.selector
? objc.set_class_extender
? objc.set_signature_for_selector
Warning: couldn't find the following modules:
? DateTime
? Ft.Lib
? Ft.Lib.DumpBgTuple
? Ft.__init__
? OverrideFrom23._Res
? SOCKS
? XMLClient
? XMLFactory
? XMLinter
? XPathParserc
? _xmlrpclib
? com.indelv.dom
? com.indelv.dom.util
? com.sun.xml.tree
? ext.IsDOMString
? ext.SplitQName
? fr.loria.xml
? java.io
? java.lang
? java.net
? javax.xml.parsers
? msvcrt
? org.apache.xerces.dom
? org.apache.xerces.parsers
? org.brownell.xml
? org.brownell.xml.dom
? org.openxml.dom
? org.openxml.parser
? org.w3c.dom
? org.xml.sax
? org.xml.sax.helpers
? os.path
? readline
? rourl2path
? saxlib
? sgmlop
? xml.FtCore
? xml.dom.Attr
? xml.dom.BAD_BOUNDARYPOINTS_ERR
? xml.dom.BadBoundaryPointsErr
? xml.dom.DOMImplementation
? xml.dom.Document
? xml.dom.DocumentType
? xml.dom.Element
? xml.dom.Entity
? xml.dom.INVALID_NODE_TYPE_ERR
? xml.dom.InvalidNodeTypeErr
? xml.dom.NodeIterator
? xml.dom.Text
? xml.dom.UNSPECIFIED_EVENT_TYPE_ERR
? xml.dom.UnspecifiedEventTypeErr
? xml.dom.XML_PARSE_ERR
? xml.dom.ext
? xml.dom.ext.Visitor
? xml.dom.ext.reader
? xml.dom.ext.reader.HtmlLib
? xml.dom.html
? xml.dom.html.HTMLCollection
? xml.dom.html.HTMLElement
? xml.dom.implementation
? xml.ns
? xml.parsers.pyexpat
? xml.parsers.sgmllib
? xml.parsers.sgmlop
? xml.parsers.xmlproc
? xml.parsers.xmlproc.dtdparser
? xml.parsers.xmlproc.xmlapp
? xml.sax.drivers
? xml.sax.drivers.drv_xmlproc
? xml.sax.sax2exts
? xml.sax.saxexts
? xml.sax.saxlib
? xml.unicode.iso8859
? xml.utils
? xml.utils.characters
? xml.xpath
? xml.xpath.ParsedAbbreviatedAbsoluteLocationPath
? xml.xpath.ParsedAbbreviatedRelativeLocationPath
? xml.xpath.ParsedAbsoluteLocationPath
? xml.xpath.ParsedAxisSpecifier
? xml.xpath.ParsedPredicateList
? xml.xpath.ParsedRelativeLocationPath
? xml.xpath.ParsedStep
? xml.xslt
? xml.xslt.ParsedPattern
? xml_dc
----- 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: Tuesday, September 02, 2003 2:06 PM
Subject: Re: [Pythonmac-SIG] bundlebuilder --standalone not working
> Bob Swerdlow wrote:
>
> > However, when I run python buildapp.py --standalone build it
> > generates a bunch of warnings (I've appended them below) and when I
> > run the application, I get this error: from xml.sax import saxutils
> > ImportError: No module named sax
>
> This is most likely caused by PyXML's _xmlplus hack. Try to add
> --package=_xmlplus. If that doesn't work, you could tweak your install
> by removing the original xml package, and rename _xmlplus to xml.
>
> > When I look in the application package, the Frameworks directory
> > includes the Python.framework/Versions/2.3 directory, but it does NOT
> > have the lib subdirectory.
>
> Correct, only the bare necessities. Everything needed from the library
> is in Contents/Resources/Modules.zip and
> Contents/Resources/ExtensionModules/
>
> > I tried copying in that directory
> > manually, but the application still could not find it - presumably
> > because there is some kind of path that needs to be set for it.
>
> Contents/Resources/ is on sys.path, so if needed you can copy stuff
> there. But I'd rather find a way to let bundlebuilder do what you need.
>
> > So, how do I get --standalone to find the rest of these modules and
> > build a complete application?
>
> Let me know if the "--package=_xmlplus" thing worked.
>
> Just
>
>
More information about the Pythonmac-SIG
mailing list