Hi,
I am trying to bring one of my CentOS 5 VMs up to date.
I have run:
yum clean all
yum update yum
yum clean all
yum update python* rpm*
yum clean all
without any problems or error messages.
Now when I try to run yum update, I get the following: [root@tusker ~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
No module named cElementTree
Please install a package which provides this module, or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
I then downloaded the python-clementtree package from dags site and tried to install it and get:
[root@tusker ~]# rpm -i ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm warning: ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 error: Failed dependencies: python-elementtree conflicts with python-celementtree-1.0.5-1.2.el5.rf.x86_64
yet when I query the package I get:
[root@tusker ~]# rpm -q python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm package python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm is not installed
and when I try to remove it I get:
[root@tusker ~]# rpm -e ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm error: package ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm is not installed
I have tried rebuilding the rpm database with no result.
Any suggestions?
TIA
ChrisG
On Mon, Apr 5, 2010 at 3:53 PM, Chris Geldenhuis chris.gelden@iafrica.com wrote: [snip]
Now when I try to run yum update, I get the following: [root@tusker ~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
No module named cElementTree
Please install a package which provides this module, or verify that the module is installed correctly.
That module is from CentOS python-elementree. Try validating that package:
rpm -qV python-elementtree
Note that this is different from python-celementtree from rpmforge...
[snip]
I then downloaded the python-clementtree package from dags site and tried to install it and get:
[root@tusker ~]# rpm -i ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm warning: ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 error: Failed dependencies: python-elementtree conflicts with python-celementtree-1.0.5-1.2.el5.rf.x86_64
That's a separate package and *should* not conflict..
yet when I query the package I get:
[root@tusker ~]# rpm -q python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm package python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm is not installed
and when I try to remove it I get:
[root@tusker ~]# rpm -e ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm error: package ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm is not installed
When you do a query, just use the basename:
rpm -q python-celementtree
Kwan Lowe wrote:
That module is from CentOS python-elementree. Try validating that package:
rpm -qV python-elementtree
Note that this is different from python-celementtree from rpmforge...
[snip]
When you do a query, just use the basename:
rpm -q python-celementtree _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Kwan and Stephen,
Thanks for your replies.
When I do: [root@tusker ~]# rpm -qV python-elementtree [root@tusker ~]#
I get no output as you can see. When I do:
[root@tusker ~]# rpm -q python-elementtree python-elementtree-1.2.6-7.el4.rf [root@tusker ~]#
I get the package name listed: When I then do: [root@tusker ~]# rpm -q --info python-elementtree Name : python-elementtree Relocations: (not relocatable) Version : 1.2.6 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 7.el4.rf Build Date: Sun 13 Aug 2006 06:38:39 PM SAST Install Date: Mon 05 Apr 2010 06:46:15 PM SAST Build Host: lisse.leuven.wieers.com Group : Development/Libraries Source RPM: python-elementtree-1.2.6-7.el4.rf.src.rpm Size : 471008 License: PSF Signature : DSA/SHA1, Sun 13 Aug 2006 09:39:29 PM SAST, Key ID a20e52146b8d79e6 Packager : Dag Wieers dag@wieers.com URL : http://effbot.org/zone/element-index.htm Summary : Fast XML parser and writer Description : The Element type is a simple but flexible container object, designed to store hierarchical data structures, such as simplified XML infosets, in memory. The element type can be described as a cross between a Python list and a Python dictionary.
This package also includes the C implementation, cElementTree-1.0.5-20051216. [root@tusker ~]#
Which appears to tell me that this is an old version possibly installed from an incorrect repositry (Dags) and not the standard CenTOS repositries.
My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation.
ChrisG
On Mon, Apr 05, 2010 at 11:01:19PM +0200, Chris Geldenhuis wrote:
My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation.
Remove it (with "rpm -e" - use "--nodeps" if you have to!) and then download manually and "rpm -i" the correct version from a CentOS mirror repository.
Stephen Harris wrote:
On Mon, Apr 05, 2010 at 11:01:19PM +0200, Chris Geldenhuis wrote:
My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation.
Remove it (with "rpm -e" - use "--nodeps" if you have to!) and then download manually and "rpm -i" the correct version from a CentOS mirror repository.
Hi Stephen,
Thanks I'll try that tomorrow evening after work - I have to go now.
ChrisG
Chris Geldenhuis wrote:
Stephen Harris wrote:
On Mon, Apr 05, 2010 at 11:01:19PM +0200, Chris Geldenhuis wrote:
My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation.
Remove it (with "rpm -e" - use "--nodeps" if you have to!) and then download manually and "rpm -i" the correct version from a CentOS mirror repository.
Hi Stephen,
Thanks I'll try that tomorrow evening after work - I have to go now.
ChrisG _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Stepen and Kwan,
That appears to have worked - at least yum is now running to update the remainder of the systems.
Thanks again for your help.
ChrisG
On Mon, Apr 5, 2010 at 5:01 PM, Chris Geldenhuis chris.gelden@iafrica.com wrote:
Hi Kwan and Stephen,
Thanks for your replies.
When I do: [root@tusker ~]# rpm -qV python-elementtree [root@tusker ~]#
OK, this shows that the package is fine.. No output is good in this case..
I get no output as you can see. When I do:
[root@tusker ~]# rpm -q python-elementtree python-elementtree-1.2.6-7.el4.rf [root@tusker ~]#
I get the package name listed: When I then do: [root@tusker ~]# rpm -q --info python-elementtree Name : python-elementtree Relocations: (not relocatable) Version : 1.2.6 Vendor: Dag Apt
[snip]
Which appears to tell me that this is an old version possibly installed from an incorrect repositry (Dags) and not the standard CenTOS repositries.
My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation.
Yes, I would concur with that analysis :D.
And also concur with S Harris' method of resolving... Use rpm directly, not yum, to install the correct python-elementtree package.
On Mon, Apr 05, 2010 at 09:53:29PM +0200, Chris Geldenhuis wrote:
[root@tusker ~]# rpm -q python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm package python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm is not installed
Just do rpm -qa 'python-celementtree*'
[root@tusker ~]# rpm -e ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm
Wrong syntax for 'rpm -e'. You don't specify the rpm file, you specify the package. If you don't _need_ celementtree (or can live without it temporarily) rpm -e python-celementtree