Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173815 - net-print/hplip-1.7.3 fails to start if python was built with +ucs2
Summary: net-print/hplip-1.7.3 fails to start if python was built with +ucs2
Status: RESOLVED DUPLICATE of bug 144774
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-08 23:09 UTC by Renato Alves
Modified: 2007-04-09 08:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Alves 2007-04-08 23:09:23 UTC
In the init.d scripts:

Traceback (most recent call last):
  File "/usr/share/hplip/hpssd.py", line 66, in ?
    from base import utils, device
  File "/usr/share/hplip/base/utils.py", line 30, in ?
    import xml.parsers.expat as expat
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
    from pyexpat import *
ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode

and the same with hp-setup:

Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 35, in ?
    from base import device, utils, msg, service
  File "/usr/share/hplip/base/device.py", line 37, in ?
    import utils, status, pml, service
  File "/usr/share/hplip/base/utils.py", line 30, in ?
    import xml.parsers.expat as expat
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
    from pyexpat import *
ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode

Removing and rebuilding python with -ucs2 solves the problem.

Reproducible: Always

Steps to Reproduce:
1. Build python with +ucs2
2. Restart /etc/init.d/hplip
3. hpiod succeeds but hpssd fails with above error.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-09 08:14:33 UTC
re-emerge dev-python/pyxml


*** This bug has been marked as a duplicate of bug 144774 ***