Comment 3 for bug 337759

Revision history for this message
Z (zwahri) wrote :

I've tried looking around in the python code and found python-xml is broken:
Openerp tries to initialize xml.dom and xml.xpath.
Since both initializations are done in the same try ... catch block, only one error message is given, but xml.dom loads fine while xml.xpath dies.

This may be reproduced manually:
$ 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

So I'm guessing even though python-xml got upgraded/rebuilt for python-2.6 it's not working correctly.

Too bad openerp seems to really need xpath from python-xml...