hp: check: No module named xml.parsers.expat

Asked by WR Franklin

Neither hp-check nor any hp-* programs work, and I can't print to my HP printer at all

# uname -a
Linux sampson.ecse.rpi.edu 2.6.25.11-0.1-default #1 SMP 2008-07-13 20:48:28 +0200 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/SuSE-release
openSUSE 11.0 (X86-64)
VERSION = 11.0

# rpm -qa|grep -i hpl
hplip-hpijs-packman-2.8.7-0.pm.1
hplip-packman-2.8.7-0.pm.1
3.30s real 3.02s user 0.11s system 95% 0,0 socket 0 mem rpm -qa
3.30s real 0.00s user 0.01s system 0% 0,0 socket 0 mem grep -i hpl
(1050)# rpm -qa|grep -i py sampson:/tmp, 5:18PM
python-orbit-2.14.3-93.1
python-qt4-4.4.2-6.1
python-kde3-3.16.0-124.1
python-qt-3.17.4-49.1
python-gnome-extras-2.19.1-92.1
evolution-python-0.0.4-65.1
python-urlgrabber-3.1.0-145.1
python-imaging-1.1.6-165.1
python-gtksourceview-2.2.0-15.1
python-tk-2.5.2-26.2
python-ldap-2.3.4-16.1
rpm-python-4.4.2-247.1
python-gpgme-0.1-44.1
python-cairo-1.4.12-19.1
wxPython2.8-gtk2-unicode-2.8.7.1-13.1
python-gtkglext-1.1.0-61.1
python-32bit-2.5.2-26.2
python-gstreamer010-0.10.10-0.pm.1
python-numeric-24.2-162.1
python-gdata-1.1.0-0.pm.2
python-utmp-0.7-2.guru.suse102
python-gtk-2.12.1-18.1
python-crypto-2.0.1-164.1
gimp-plugins-python-2.4.6-1.5
python-2.5.2-26.2
python-libgmail-0.1.8-1.4
python-sip-4.7.6-5.1
python-gobject2-2.14.1-15.1
libxml2-python-2.6.32-14.1
python-xml-2.5.2-26.2
pybliographer-1.2.11-30.1
python-wxGTK-2.8.8.1-0.pm.1
dbus-1-python-0.82.4-49.1
python-bibtex-1.2.4-85.1
OpenOffice_org-pyuno-2.4.0.14-1.1
wxPython-common-gtk2-unicode-2.8.7.1-13.1
gnome-python-desktop-2.22.0-29.1
python-notify-0.1.1-1.6
python-curses-2.5.2-26.2
python-fuse-0.2-1.guru.suse102
python-opengl-2.0.1.09-224.1
pyxml-0.8.4-164.1
python-lxml-2.0.4-14.1
python-gnome-2.22.0-21.1
vobcopy-1.1.1-0.pm.1
python-devel-2.5.2-26.2

# hp-check
Traceback (most recent call last):
  File "/usr/bin/hp-check", line 36, in <module>
    from base import utils, tui, models
  File "/usr/share/hplip/base/utils.py", line 42, in <module>
    import xml.parsers.expat as expat
ImportError: No module named xml.parsers.expat

BTW, I tried the non-packman packages first; no difference.

Help? How do I use this printer? Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

We think the error:
  import xml.parsers.expat as expat
ImportError: No module named xml.parsers.expat

Is caused by a bad or corrupted install of Python. You could try re-installing python to see if this is resolved..

All the best,

Aaron

Revision history for this message
Johannes Meixner (jsmeix) said :
#2

Can you help with this problem?

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

To post a message you must log in.