Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 138493 - s-c-printer doesn't work
s-c-printer doesn't work
Product: Fedora
Classification: Fedora
Component: PyXML (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
: 138707 138719 138985 (view as bug list)
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2004-11-09 11:30 EST by Bill Nottingham
Modified: 2014-03-16 22:50 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-30 17:54:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2004-11-09 11:30:58 EST

$ system-config-printer
Traceback (most recent call last):
  File "/usr/sbin/system-config-printer", line 9, in ?
    import queueTree
  File "/usr/share/printconf/util/queueTree.py", line 57, in ?
    import printconf_conf
  File "/usr/share/printconf/util/printconf_conf.py", line 83, in ?
    from xml.utils import qp_xml
ImportError: No module named utils
Comment 1 Miloslav Trmač 2004-11-09 18:48:30 EST
python 2.4b2 requires not-yet-released PyXML-0.8.4 :(
Comment 2 Bill Nottingham 2004-11-10 16:29:50 EST
*** Bug 138707 has been marked as a duplicate of this bug. ***
Comment 3 Bill Nottingham 2004-11-10 16:30:53 EST
*** Bug 138719 has been marked as a duplicate of this bug. ***
Comment 4 Miloslav Trmač 2004-11-11 16:25:07 EST
Building PyXML-0.8.4-0.cvs20041111.1.
There are no Python testsuite regressions.
There are two PyXML testsuite regressions
but having a mostly-working PyXML is still better than no PyXML at all.

I'll keep the bug open as a reminder to update to a released version
of 0.8.4 as soon as it is available.
Comment 5 Tim Waugh 2004-11-12 07:12:46 EST
*** Bug 138985 has been marked as a duplicate of this bug. ***
Comment 6 Mickey Stein 2004-11-13 13:46:13 EST
I can see that there's a number of problems with python 2.4 just by
keeping rawhide up to date, but hacked a few of the problems anyway.

I'm fairly sure this is obvious to all here, but I'm new to these
things and thought I saw the problem and put this patch together. For
all I know, it may cause holes in the ozone layer and should be
discarded immediately:

--- /usr/share/printconf/util/printconf_conf.py.sav     2004-11-13
44713 -0800
+++ /usr/share/printconf/util/printconf_conf.py 2004-11-13
10:29:41.354044284 -0
@@ -80,7 +80,8 @@
 import signal

 # Used for parsing foomatic and printer test files
-from xml.utils import qp_xml
+#from xml.utils import qp_xml
+from _xmlplus.utils import qp_xml

 # Debugging Functions

Comment 7 Tim Waugh 2004-11-14 05:11:21 EST
That patch may obscure the symptom, but the real problem was that:

  python -c "from xml.utils import qp_xml"

failed, and this was due to PyXML being an older release than required
by the new Python.  Please try the current PyXML package instead of
using the above patch.
Comment 8 Mickey Stein 2004-11-14 07:36:13 EST
It was only a temporary workaround. The version of PyXML is the latest
from the rawhide tree (PyXML-0.8.3-7). Which package are you referring
to as the 'current PyXML'? 

Comment 9 Miloslav Trmač 2004-11-14 07:41:50 EST
See comment #4.
Comment 10 Miloslav Trmač 2004-11-30 17:54:04 EST
PyXML-0.8.4-1 should be in rawhide soon.
Comment 11 Nicolas Scheibling 2005-02-22 11:32:59 EST
i have updated sc-printer and PyXML to the latest available release
and i always have this error: 

rpm -q PyXML
rpm -q system-config-printer

Traceback (most recent call last):
  File "/usr/sbin/system-config-printer", line 9, in ?
    import queueTree
  File "/usr/share/printconf/util/queueTree.py", line 70, in ?
    import gnome.ui
ImportError: No module named gnome.ui

Note You need to log in before you can comment on or make changes to this bug.