problem importing xml.xpath

Paul Wright -$Paul$- at verence.demon.co.uk
Wed Oct 24 14:10:10 CEST 2001


In article <j4snc9cr9b.fsf at informatik.hu-berlin.de>,
Martin von Loewis  <loewis at informatik.hu-berlin.de> wrote:
>Leonardo B Lopes <leo at iems.nwu.edu> writes:
>
>> 	I can't find a way to import the xpath library with python2.0. I can
>> see it in the right place, in the site-packages dir. I notice that there
>> is also an XML directory in the main distr. directory, so I tried moving
>> the dirs there too, but that didn't work. All I want to do is get the
>> two demos XmlTree.py/XmlEditor.py working. Does anyone have any idea
>> what is going on?
>
>Where did you get xml.xpath from? If you got it from 4Suite, it should
>be installed as site-packages/_xmlplus/xpath.

I had a problem installing 4Suite on Windows the other day. I believe
the installer should put some code (__init__.py, maybe?) in _xmlplus so
that the main XML packages can pick up the extensions (this is certainly
what happens in my Debian install of an earlier version of 4Suite), but
for some reason the installer only created the extra sub-directories off
_xmlplus for xpath and xslt, so Python was unable to import xml.xslt.

What's in your _xmlplus directory, Leonardo?

-- 
----- Paul Wright ------| "Just once, I wish we would encounter an alien menace
-paul.wright at pobox.com--| that wasn't immune to bullets" - The Brigadier,
http://pobox.com/~pw201 | "Dr. Who"



More information about the Python-list mailing list