Ubuntu removing XML from Python?
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.
Popularity: 29% [?]
Blog














Sam Morris wrote:
“Since some time a subset of python-xml is included in the
standard 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.
Posted on 06-May-08 at 10:04 pm | Permalink
Kartik Mistry wrote:
Please read:
http://ftbfs.wordpress.com/2008/04/25/pyslide-story/
Posted on 07-May-08 at 8:11 am | Permalink