Red Hat Bugzilla – Bug 1474564
Failed to start virt-who service in RHEL6
Last modified: 2017-08-15 14:27:18 EDT
Description of problem:
Failed to start virt-who service in RHEL6 arch.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In RHEL6 arch, install virt-who-0.20.2-1.el6sat.noarch package
2. Start virt-who service
# service virt-who start
10:44:48 Starting virt-who: [FAILED]
10:44:48 Traceback (most recent call last):
10:44:48 File "/usr/bin/virt-who", line 9, in <module>
10:44:48 load_entry_point('virt-who==0.20.2', 'console_scripts', 'virt-who')()
10:44:48 File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
10:44:48 return get_distribution(dist).load_entry_point(group, name)
10:44:48 File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
10:44:48 return ep.load()
10:44:48 File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
10:44:48 entry = __import__(self.module_name, globals(),globals(), ['__name__'])
10:44:48 File "/usr/lib/python2.6/site-packages/virtwho/__main__.py", line 6, in <module>
10:44:48 import virtwho.main
10:44:48 File "/usr/lib/python2.6/site-packages/virtwho/main.py", line 38, in <module>
10:44:48 from virtwho.parser import parse_options, OptionError
10:44:48 File "/usr/lib/python2.6/site-packages/virtwho/parser.py", line 25, in <module>
10:44:48 from argparse import ArgumentParser, Action
10:44:48 ImportError: No module named argparse
Failed to start virt-who service as "ImportError: No module named argparse"
Virt-who can start normally
virt-who-0.20.2-1.el7sat.noarch can install and run normally in RHEL7 arch
What version of RHEL 6 was this tested on and which RHEL 6 repositories were enabled?
Evgeni added a fix for this in the PR added as an external tracker.
This issue is caused by missing python-argparse package, can install it by manual, but it's more better if virt-who spec file can add "Requires" for this package.
I used released RHEL6 to do the test. Thanks.