PDA

View Full Version : How to install python library


Mouton
2005-03-19, 03:38
i installed pyxml on my mac (avail at http://pyxml.sf.net).
i tried copying the lib/site-packages/_xmlplus/* to the xbox in xbmc/python/lib/xml/*
but running the script crash on 'from xml import xpath'
there is a xbmc/python/lib/xml/xpath directory... but it doesn't seem to find it.
how can i install pyxml on xbmc ?

thanks.

Mouton
2005-03-19, 16:07
i also tried to install it in python/lib/site-packages/_xmlplus/* like it is on my mac; didn't work.
and i tried to use libxml2 with no luck (not sure this one has any chance to load, since it uses dll!); but the problem seems to be the same: python doesn't seem to see it in the lib dir...

kraqh3d
2005-03-19, 23:30
do you really need pyxml?

the python23.zlib in cvs has support for the standard python 2.3 xml libraries, including dom, expat, and sax.

documentation:
http://www.python.org/doc/current/lib/markup.html

Mouton
2005-03-21, 01:47
i was missing xpath in the default xml implementation of python.
i finally found that my package needed to be named _xmlplus, which is the package name which xml/.py load by default if found.
by copying the xml/* files from python23.zlib and by adding the modules i needed (xpath, utils, etc) i was able to make it work.