Red Hat Bugzilla – Bug 221116
rpmlint.0.78 requires python>=2.4
Last modified: 2007-11-30 17:11:52 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install rpmlint=0.78 on a system with python 2.3
2. Run it
Traceback (most recent call last):
File "/usr/share/rpmlint/rpmlint.py", line 270, in ?
File "/usr/share/rpmlint/rpmlint.py", line 52, in main
File "/usr/share/rpmlint/rpmlint.py", line 38, in loadCheck
imp.load_module(name, f, pathname, description)
File "/usr/share/rpmlint/MenuXDGCheck.py", line 13, in ?
ImportError: No module named subprocess
I would expect rpmlint-0.78*.noarch.rpm to refuse to be installed on systems
which do not have python-2.4. For now rpm -q --requires rpmlint|grep python gives:
python >= 2.0
Seen on centos 4.4 (which uses python-2.3.4)
The intention is to keep rpmlint working on reasonably recent versions of
Python, such as that of CentOS 4. Fixed upstream, will be in the next release:
Thanks, seems to work OK.
Thanks for verifying the fix, but I'll reopen this until a fixed version is
shipped in Fedora - it may help others wrestling with the same issue.
Done in upcoming 0.79-1.