bzr: ERROR: No module named expat; use SimpleXMLTreeBuilder instead
Erik de Castro Lopo
mle+tools at mega-nerd.com
Fri Mar 23 10:58:12 UTC 2012
Martin Packman wrote:
> Make sure you have the package 'python' installed, not just
> 'python-minimal'.
I have:
$ dpkg -l | grep python2.7
ii libpython2.7 2.7.3~rc2-1 Shared Python runtime library (version 2.7)
ii python2.7 2.7.3~rc2-1 Interactive high-level object-oriented language (version 2.7)
ii python2.7-dev 2.7.3~rc2-1 Header files and a static library for Python (v2.7)
ii python2.7-examples 2.7.3~rc2-1 Examples for the Python language (v2.7)
ii python2.7-minimal 2.7.3~rc2-1 Minimal subset of the Python language (version 2.7)
> If you're still stuck after checking that, and
> repairing the install if needed, do:
>
> $ python -c "import xml.parsers.expat"
>
> If that also gives a traceback, paste it here
Ok, that begins to show something:
$ python -c "import xml.parsers.expat"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.so: undefined symbol: XML_SetHashSalt
Thats serious!
> along with your sys.path contents.
$ python -c "import sys ; print sys.path"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7',
'/usr/lib/pymodules/python2.7/HTMLgen', '/usr/lib/python2.7/dist-packages/wx-2.6-gtk2-unicode']
Nothing too strange there.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the bazaar
mailing list