[Bug 343242] [NEW] python-xml seems to be broken with python-2.6: xpath does not work

Launchpad Bug Tracker 343242 at bugs.launchpad.net
Sun May 10 15:18:01 BST 2009

You have been subscribed to a public bug by Matthias Klose (doko):

Binary package hint: python-xml

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu.
  Description:	Ubuntu jaunty (development branch)
  Release:	9.04
2) The version of the package you are using, via 'apt-cache policy packagename' or by checking in Synaptic.
  apt-cache showpkg python-xml
  Package: python-xml
3) What you expected to happen
  To work (with openerp)
4) What happened instead

Seems like some submodules work while others don't. Xpath seems to be broken:
$ python
Python 2.6.1+ (r261:67515, Mar  2 2009, 13:11:28) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml
>>> import xml.dom
>>> import xml.xpath
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/_xmlplus/xpath/__init__.py", line 105, in <module>
    import Context
  File "/usr/lib/python2.6/dist-packages/_xmlplus/xpath/Context.py", line 15, in <module>
    import CoreFunctions
  File "/usr/lib/python2.6/dist-packages/_xmlplus/xpath/CoreFunctions.py", line 20, in <module>
    from xml.xpath import Util, Conversions
  File "/usr/lib/python2.6/dist-packages/_xmlplus/xpath/Conversions.py", line 22, in <module>
    from xml.utils import boolean
ImportError: cannot import name boolean

I have *no* clue about python (was trying to install openerp, which sadly still seems to need python-xml).

I initially opened a bug for openerp, since it was uninstallable at the time:

Pardon the mess.

** Affects: python
     Importance: Unknown
         Status: New

** Affects: python-xml (Ubuntu)
     Importance: Undecided
         Status: Confirmed

python-xml seems to be broken with python-2.6: xpath does not work
You received this bug notification because you are a member of Ubuntu Package Archive Administrators, which is a direct subscriber.

More information about the ubuntu-archive mailing list