On Tue, May 19, 2009 at 11:06 AM, Giovanni Bajo <[email protected]> wrote: > > On 5/19/2009 7:51 PM, [email protected] wrote: >> Hi, >> >> I'm trying to use PyInstaller on a python script that uses SOAPpy and >> I seem to be running into some roadblocks with the sax drivers (SOAPpy >> is using PyXML under the covers). The compiled application runs fine >> on my local machine, but not when I move it to a clean machine (that >> doesn't have SOAPpy and the likes installed in its python >> distribution). >> >> The relevant part of the traceback is: >> File ".../SOAPpy.Client", line 454, in __call__ >> File ".../SOAPpy.Client", line 476, in __r_call__ >> File ".../SOAPpy.Client", line 380, in __call__ >> File ".../SOAPpy.Parser", line 1006, in parseSOAPRPC >> File ".../SOAPpy.Parser", line 972, in parseSOAP >> File ".../xml.sax.sax2exts", line 37, in make_parser >> File ".../xml.sax.saxexts", line 77, in make_parser >> SAXReaderNotAvailable: No parsers found. >> >> I tried adding a hook-SOAPpy.py to the hooks directory with hidden >> imports _xmlplus.sax.drivers2, _xmplus.sax.drivers, xml.sax.drivers, >> xml.sax.drivers2 but that doesn't seem to help the situation. > > You can have a look at what hook-xml.sax.saxexts.py does. It's not > sufficient to name the "drivers" package: you need to explicitly list > all the submodules because they're not imported in the __init__ code of > that package.
Ha. I can try copying that whole thing into the hook-SOAPpy; I'll give that a try... > > If this doesn't help, I need some help to reproduce your environment. I > can't seem to find a SOAPpy download with an embedded pyxml > distribution. Any hint on how to setup an environment like yours? This web page should get you going; essentially you need PyXML, fpconst and then SOAPpy; then add import SOAPpy to a python script. I can get you a sample script to call a web service if you'd like (but don't have a public web service somewhere so I'm not sure how useful that'll be): http://www.diveintopython.org/soap_web_services/install.html Thanks! - Filip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
