import can't find xml.sax.saxlib from PyXML
Walter Dörwald
walter at livinglogic.de
Thu Nov 25 10:07:06 EST 2004
Stefan Behnel wrote:
> Hi!
>
> I'm using PyXML 0.8.3 on a number of machines. When I now run
>
> import xml.sax.saxlib
>
> python touches both the python/xml/sax and python/site-packages/_xmlplus
> modules but not _xmlplus/sax (I see that from strace), and then only
> searches for saxlib in python/xml/sax, i.e. in stdlib. I therefore get
> an ImportError though saxlib exists in _xmlplus/sax.
>
> I know that it worked before, but I can't tell what changed on the
> systems during new installations of new python versions. I tried it with
> 2.3 (which worked before but somewhat surprisingly doesn't work any
> more) and 2.4 (where I never managed to make this work).
>
> Does anyone have a hint what I could try?
xml/__init__.py from python 2.4 contains:
_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
so currently Python 2.4 will always fall back to the
builtin xml module.
A quick fix would be to change this back to:
_MINIMUM_XMLPLUS_VERSION = (0, 8, 3)
(Or hope that a PyXML 0.8.4 will be released before
Python 2.4 final)
Bye,
Walter Dörwald
More information about the Python-list
mailing list