Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Hans on October 18, 2012, 07:21:30 PM

Title: No module named cElementTree
Post by: Hans on October 18, 2012, 07:21:30 PM
After a 'yum update' on SME 8.x I experienced the following problem:


[root@gold ~]# 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, Jun 18 2012, 08:55:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq


And here is a solution:


wget http://mirrors.usc.edu/pub/linux/distributions/centos/5.8/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh --oldpackage python-elementtree-1.2.6-5.x86_64.rpm
Title: Re: No module named cElementTree
Post by: Hans on October 18, 2012, 07:29:53 PM
I have activated the DAG repository, which installs the python-elementtree.x86_64 0:1.2.6-7.el4.rf, this seesm to create the problem.
Title: Re: No module named cElementTree
Post by: CharlieBrady on October 18, 2012, 11:03:09 PM
You should disable the DAG repository, which is apparently incompatible with SMEserver/CentOS.