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 at 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 at 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 at 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 at 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 at iafrica.com> wrote: [snip]> Now when I try to run yum update, I get the following: > [root at 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 at 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 at 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 at 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 > installedWhen you do a query, just use the basename: rpm -q python-celementtree
On Mon, Apr 05, 2010 at 09:53:29PM +0200, Chris Geldenhuis wrote:> [root at 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 installedJust do rpm -qa 'python-celementtree*'> [root at tusker ~]# rpm -e ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpmWrong 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 -- rgds Stephen