Why does 'rhn_check' fail with the error "ImportError: No module named cElementTree" in Red Hat Enterprise Linux?
Issue
- Running 'rhn_check' fails with the following error:
# rhn_check
Traceback (most recent call last):
File "/usr/sbin/rhn_check", line 21, in ?
from up2date_client import up2dateErrors
File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 14, in ?
from yum.Errors import RepoError, YumBaseError
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 50, in ?
import comps
File "/usr/lib/python2.4/site-packages/yum/comps.py", line 22, in ?
import cElementTree
ImportError: No module named cElementTree
Environment
- Red Hat Enterprise Linux 5.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
