python-xml seems to be broken with python-2.6: xpath does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Invalid
|
Unknown
|
|||
python-xml (Debian) |
Fix Released
|
Unknown
|
|||
python-xml (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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
Versions:
0.8.4-10.1ubuntu2
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/
import Context
File "/usr/lib/
import CoreFunctions
File "/usr/lib/
from xml.xpath import Util, Conversions
File "/usr/lib/
from xml.utils import boolean
ImportError: cannot import name boolean
Beware:
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:
https:/
Pardon the mess.
Changed in python-xml (Ubuntu): | |
status: | New → Confirmed |
Changed in python: | |
status: | Unknown → New |
Changed in python: | |
status: | New → Invalid |
Changed in python-xml (Ubuntu): | |
status: | New → Won't Fix |
Changed in python-xml (Debian): | |
status: | Unknown → Fix Released |
As stated in the openerp-server bug, it seems like boolean.so is missing.
But the directory lib/python2. 6/dist- packages/ oldxml/ _xmlplus/ utils lib/python2. 6/dist- packages/ _xmlplus/ utils
/usr/
on my box contains the missing boolean.so, so i created a symlink in
/usr/
and it seems to be working now.
(Note: I have no idea about python / python modules, just digging around a bit)
I've done a little research about the files which python-xml installs:
# dpkg -L python-xml | grep xmlplus python2. 5/site- packages/ _xmlplus python2. 5/site- packages/ _xmlplus/ utils python2. 5/site- packages/ _xmlplus/ utils/boolean. so python2. 6/dist- packages/ oldxml/ _xmlplus python2. 6/dist- packages/ oldxml/ _xmlplus/ utils python2. 6/dist- packages/ oldxml/ _xmlplus/ utils/boolean. so pyshared/ oldxml/ _xmlplus pyshared/ oldxml/ _xmlplus/ utils pyshared/ oldxml/ _xmlplus/ utils/_ _init__ .py pyshared/ oldxml/ _xmlplus/ utils/character s.py pyshared/ oldxml/ _xmlplus/ utils/iso8601. py pyshared/ oldxml/ _xmlplus/ utils/qp_ xml.py pyshared/ _xmlplus pyshared/ _xmlplus/ utils pyshared/ _xmlplus/ utils/_ _init__ .py pyshared/ _xmlplus/ utils/character s.py pyshared/ _xmlplus/ utils/iso8601. py pyshared/ _xmlplus/ utils/qp_ xml.py
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/share/
...
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
...
/usr/share/
...
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
It seems to me like most files are installed twice or more (old/new directory structure?) but boolean.so is about the only file installed only once, and I'm guessing in a directory which isn't used anymore ;)