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 2 2240
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
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*@doxdesk.com http://www.doxdesk.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |