laga@prometheus:~/dev/mythtv/21-fixes-public/mythplugins/mythvideo/mythvideo/scripts$ python test.py
Traceback (most recent call last):
File "test.py", line 11, 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])
from xml.dom.ext.reader import HtmlLib