Ubuntu removing XML from Python?

(2 comments)

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.

Currently unrated

Comments

Sam Morris 10 years, 10 months ago

"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.

Link | Reply

Kartik Mistry 10 years, 10 months ago

Please read:
http://ftbfs.wordpress.com/2008/04/25/pyslide-story/

Link | Reply

New Comment

required

required (not published)

optional

Recent Posts

Archive

2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005

Categories

Authors

Feeds

RSS / Atom