rendered paste bodylaga@prometheus:~/dev/mythtv/21-fixes-public/mythplugins/mythvideo/mythvideo/scripts$ python test.py
['/home/laga/dev/mythtv/21-fixes-public/mythplugins/mythvideo/mythvideo/scripts', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/oldxml']
Traceback (most recent call last):
File "test.py", line 12, in <module>
from xml.dom.ext.reader import HtmlLib
ImportError: No module named ext.reader
laga@prometheus:~/dev/mythtv/21-fixes-public/mythplugins/mythvideo/mythvideo/scripts$ cat test.py
import sys
appendpath=False
# This is done for Ubuntu, they are removing PyXML.
try:
from xml.dom.ext.reader import HtmlLib
except:
appendpath=True
if appendpath:
sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])
print sys.path
from xml.dom.ext.reader import HtmlLib