On 5/19/2009 9:05 PM, Filip Defoort wrote:
>>> Hm. Maybe it's SOAPpy that is not correctly importing things ?
>> It's got a simple "import xml.sax" at the top of Parser.py. I can't see
>> how this can be wrong.
>>
>> What OS are you running on?
> 
> I bundled it on OpenSUSE 10.2; but the customer that's reporting the
> issue is using CentOS 5.3 (I'm in the process of downloading a clean
> CentOS 5.3 so can't try it on that OS myself yet; however they sent me
> a screenshot of the exact output so I'm quite sure the problem is
> there).

If you manage to reproduce the problem and can give me SSH access to 
that virtual machine, it'd be great.

>> Open the generated executable with ArchiveViewer.py, open the
>> outPYZ1.pyz file and look at the list: does it contain all the xml.sax
>> drivers?
> 
> This is the contents of outPYZ1.pyz; the only surprising thing I can
> see in there is that it has
> 
> '_xmlplus.sax.drivers': (True, 126839L, 189),
>  '_xmlplus.sax.drivers2': (True, 284523L, 190),
> 
> but not the contents of the drivers/drivers2 packages; however is does
> have that for xml.sax.drivers.

Do you maybe have your custom import hook that brings in _xmlplus?

You shouldn't never name "_xmlplus". The package is always called "xml", 
and the _xmlplus *directory* gets brought in through a hack with __path__.


>  'xml.sax.drivers': (True, 665053L, 186),
>  'xml.sax.drivers.drv_htmllib': (False, 1044934L, 902),
>  'xml.sax.drivers.drv_pyexpat': (False, 221211L, 3060),
>  'xml.sax.drivers.drv_sgmllib': (False, 343847L, 833),
>  'xml.sax.drivers.drv_sgmlop': (False, 1267818L, 1661),
>  'xml.sax.drivers.drv_xmldc': (False, 631822L, 2223),
>  'xml.sax.drivers.drv_xmllib': (False, 1236803L, 1771),
>  'xml.sax.drivers.drv_xmlproc': (False, 520750L, 2398),
>  'xml.sax.drivers.drv_xmlproc_val': (False, 701657L, 1253),
>  'xml.sax.drivers.drv_xmltoolkit': (False, 123362L, 1640),
>  'xml.sax.drivers.pylibs': (False, 599559L, 1917),
>  'xml.sax.drivers2': (True, 1242887L, 187),
>  'xml.sax.drivers2.drv_pyexpat': (False, 714406L, 308),
>  'xml.sax.drivers2.drv_xmlproc': (False, 1039998L, 4936),

This is correct. I'm really surprised it doesn't work on the target 
machine then, as xml.sax.saxexts just does a regular "__import__".
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to