Kodi Community Forum
How to install python library - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: How to install python library (/showthread.php?tid=10781)



- Mouton - 2005-03-19

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

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!Wink; but the problem seems to be the same: python doesn't seem to see it in the lib dir...


- kraqh3d - 2005-03-19

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

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.