The cups printer configuration tool fails to import libxml2mod.

Asked by Scrawny

Running the application from the system menu fails to launch the printer application. Running from the command line gives the following:
root@u-tiny-one:/usr/lib/pymodules/python2.6# /usr/bin/system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 108, in <module>
    from GroupsPane import *
  File "/usr/share/system-config-printer/GroupsPane.py", line 21, in <module>
    from GroupsPaneModel import *
  File "/usr/share/system-config-printer/GroupsPaneModel.py", line 19, in <module>
    import libxml2
  File "/usr/lib/pymodules/python2.6/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: /usr/lib/pymodules/python2.6/libxml2mod.so: symbol xmlFirstElementChild, version LIBXML2_2.7.3 not defined in file libxml2.so.2 with link time reference

Please help!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libxml2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

Looks like a bug or an installation problem in/with Python. Can you try something?
Go to the Terminal, run "python" and inside python run "import libxml2mod"!
Tell us what happened and add some information about your system, especially your Ubuntu version and your architecture.

Revision history for this message
Scrawny (scrawnyguns) said :
#2

Sorry... I am running Ubuntu 9.10 Netbook Remix on an Acer Aspire One ZG5 (Atom 1.6, 1.5GB RAM, 8GB SSD).

The output from that command was as follows:
>>> import libxml2mod
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/pymodules/python2.6/libxml2mod.so: symbol xmlFirstElementChild, version LIBXML2_2.7.3 not defined in file libxml2.so.2 with link time reference

Revision history for this message
Thomas Krüger (thkrueger) said :
#3

There is something wrong with either python-libxml2 or libxml2. You should try reinstall them via synaptics.
If that does not help. File a bug report for libxml2.

Revision history for this message
LeeHach (lee-hachadoorian) said :
#4

Having same problem, and reinstalling libxml2 and python-libxml2 did not help. Weirdly, the versions of system-config-printer, python 2.6, and libxml2 were exactly the same as on another computer where the printer applet was working fine.

Google on error message turned up a thread about Evolution (!) not starting: http://ubuntuforums.org/showthread.php?t=1307864. Turns out it was due to Postgres 8.4 installed via non-repository packages. I was able to fix the problem by upgrading from Postgres 8.4.1.2 to 8.4.7.1. Don't know if the OP is running Postgres 8.4, but based on this experience it seems the bug is not in system-config-printer, python, or libxml2.

Can you help with this problem?

Provide an answer of your own, or ask Scrawny for more information if necessary.

To post a message you must log in.