From http://159.18.52.69/raw/983493
Error:
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
Fix/workaround:
+ sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])
from xml.dom.ext.reader import HtmlLib
I had an old Python script doing some XML work and after upgrade to Ubuntu 8.04 I started getting the above error message and had to use the above fix because the Ubuntu packages of python-xml moved the xml.dom.ext.* to /usr/lib/python2.5/site-packages/oldxml for some reason. Have not looked at the latest Debian packages. Does anyone know why such back-compatibility breaking change was introduced? All I find on Google are the people getting bitten by this bug and no reasoning or even discussion behind the change.
Share on Twitter Share on Facebook
Comments
Sam Morris 10 years, 9 months ago
"Since some time a subset of python-xml is included in the
Link | Replystandard python library, while the python-xml package did not see
any updates for years. It is time to drop it from the distribution."
Yes, this is annoying. I had to replace Serpentine's dependency on python-xml with one on the 4suite stuff which is much slower. Result is that serpentine takes a lot longer to load now.
Kartik Mistry 10 years, 9 months ago
Please read:
Link | Replyhttp://ftbfs.wordpress.com/2008/04/25/pyslide-story/
New Comment