473,938 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python 2.4.1 install broke RedHat 9 printconf-backend

Hi,

I'm trying to learn Python and wanted to play with Tkinter. I couldn't
get it to work so I figured it would help if I installed the newest
verison of Python. I downloaded the source, compiled it and installed
it. No problem. The next time I booted my machine I the following
errors when it tried to start CUPS:

Traceback (most recent call last):
File "/usr/sbin/printconf-backend", line 6, in ?
import backend
File "/usr/share/printconf/util/backend.py", line 37, in ?
import cups_import
File "/usr/share/printconf/util/cups_import.py" , line 7, in ?
from printconf_conf import *
File "/usr/share/printconf/util/printconf_conf. py", line 83, in ?
from xml.utils import qp_xml
ImportError: No module named utils

It seems that the xml package have been changed. My problem is that I
don't know enough Python to fix it properly. The old verison of Python
was 2.2.2 and the
version I just installed is 2.4.1. This is on a Dell Inspiron 8500
running Red Hat 9.

Anyone have any ideas? Thanks in advance.
Brian

Jul 18 '05 #1
2 2267
BrianS wrote:
Hi,

I'm trying to learn Python and wanted to play with Tkinter. I
couldn't get it to work so I figured it would help if I installed the
newest verison of Python. I downloaded the source, compiled it and
installed it. No problem. The next time I booted my machine I the
following errors when it tried to start CUPS:

Traceback (most recent call last):
File "/usr/sbin/printconf-backend", line 6, in ?
import backend
File "/usr/share/printconf/util/backend.py", line 37, in ?
import cups_import
File "/usr/share/printconf/util/cups_import.py" , line 7, in ?
from printconf_conf import *
File "/usr/share/printconf/util/printconf_conf. py", line 83, in ?
from xml.utils import qp_xml
ImportError: No module named utils

It seems that the xml package have been changed. My problem is that I
don't know enough Python to fix it properly. The old verison of
Python was 2.2.2 and the
version I just installed is 2.4.1. This is on a Dell Inspiron 8500
running Red Hat 9.

Anyone have any ideas? Thanks in advance.
Change the /usr/bin/python link from python2.4 to whatever version of python
exe it used to point to, probably python2.2 in your case. The Python2.4
install does not overwrite any of your python2.2 files, it just changes the
python link.
Brian

Jul 18 '05 #2
BrianS wrote:
File "/usr/share/printconf/util/printconf_conf. py", line 83, in ?
from xml.utils import qp_xml
ImportError: No module named utils It seems that the xml package have been changed.


Not exactly. xml.utils is part of the XML processing package PyXML -
you don't get it in the cut-down XML stuff available in the standard
library.

You could try downloading and installing from http://pyxml.sf.net/.
Though I can't guarantee there won't be other problems as RedHat can be
very annoying like this. You might have to keep Python 2.2 around in
addition to 2.4 for RH's benefit; in any case trying to remove 2.2 will
probably lead you into an RPM dependency nightmare.

--
Andrew Clover
mailto:an*@doxd esk.com
http://www.doxdesk.com/

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3865
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or less - during my own installation of Python 2.3 on Fedora Core 1 Linux for a friend of mine). Anyway, HTH, L.
5
1702
by: Romans Krjukovs | last post by:
Hi ! Our company is going to start use Python widely. To make this reality we have to include Python in our strategy plans for at least 3 nearest years. This would be a green light to our developers to start new projects on Python. At the presentation of Python and its usage posiibilities in our home environment to the members of the project managers board,
1
1610
by: Vbfoo Bar | last post by:
Hello, To implement a Zope intranet on a linux RedHat ES 3, I had to install a Python 2.3.4 that I have compiled myself. I would like to compare the respective performance of this python interpreter and that of the Python provided by RedHat (just a little bench program would be sufficient) as I suspect the binary Python 2.3.4 (or just the Zope?) I have produced is very inefficient (very very slow!).
31
4838
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is great for pattern matching, text processing, and automated testing. Our company is really fixated on risk managnemt and the only way I can do enough testing without working overtime (which some people have ended up doing) is by automating my...
2
4262
by: penglish1 | last post by:
This question applies specifically to RHEL 3.0 (actually Whitebox), but also generally to Redhat and probably pretty much every distribution that uses python for distribution-related tasks (configuration managers, rpm package management, yum, etc). So I want to upgrade to python 2.4 on Whitebox 3.0. Ideally I would like python to live in /usr/bin and replace the python 2.2 that ships with RHEL entirely. This gets pretty infeasable when...
3
1858
by: gmax2006 | last post by:
Hi, My RedHat Linux installation already has Python 2.3 on it. What is the easiest way to upgrade it to 2.4? I use ActiveState python in Windows. Is it the best distribution for Linux as well? Thank you, Max
2
1493
by: Fabian Braennstroem | last post by:
Hi, I just tried to install python 2.5 from source on my ScienticLinux (Redhat Clone) machine. It seems to work without any problem, at least I am able to run some of my old scripts. I installed it with './configure --prefix=/opt/python make make altinstall', but now for a 'vtk' installation which needs the python libraries I am not able to find a file like 'libpython2.5.so.*', which I think should be produced (at least at my office's...
8
3299
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to my pc. But, it is not getting installed and is failing by throwing the below errors. Should i need to configure / install any specific files for resolving this issue ?
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11516
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11284
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10653
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9854
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4444
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.