PyXML-0.8.3-7. $ 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
python 2.4b2 requires not-yet-released PyXML-0.8.4 :(
*** Bug 138707 has been marked as a duplicate of this bug. ***
*** Bug 138719 has been marked as a duplicate of this bug. ***
Building PyXML-0.8.4-0.cvs20041111.1. There are no Python testsuite regressions. There are two PyXML testsuite regressions (http://sourceforge.net/tracker/?func=detail&aid=1064741&group_id=6473&atid=106473), 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.
*** Bug 138985 has been marked as a duplicate of this bug. ***
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 10:32:41.1602 44713 -0800 +++ /usr/share/printconf/util/printconf_conf.py 2004-11-13 10:29:41.354044284 -0 800 @@ -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
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.
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'? Thanks.
See comment #4.
PyXML-0.8.4-1 should be in rawhide soon.
i have updated sc-printer and PyXML to the latest available release and i always have this error: rpm -q PyXML PyXML-0.8.4-1 rpm -q system-config-printer system-config-printer-0.6.123-1 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