Can't build correctly using brpm on cent7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Joshua Harlow |
Bug Description
Getting the following after building on cent7 and installing,
Traceback (most recent call last):
File "/usr/bin/
from pkg_resources import load_entry_point
File "/usr/lib/
working_
File "/usr/lib/
needed = self.resolve(
File "/usr/lib/
raise DistributionNot
pkg_resources.
It appears that even though it gets added as a dep that cent7 doesn't register it correctly,
$ sudo yum install python-argparse
Loaded plugins: changelog, fastestmirror, rhnplugin, versionlock
This system is receiving updates from RHN Classic or Red Hat Satellite.
...
Package python-
Nothing to do
But then when ran cloud-init has a dep on a thing that does not actually exist.
So on 2.7 we don't need to do this in the first place (the explicit dep for argparse is only for 2.6) so we can just do this smarter (and avoid this mess in the first place).
Related branches
- Scott Moser: Approve
-
Diff: 13 lines (+3/-0)1 file modifiedpackages/brpm (+3/-0)
Changed in cloud-init: | |
assignee: | nobody → Joshua Harlow (harlowja) |
Changed in cloud-init: | |
milestone: | none → 0.7.7 |
Changed in cloud-init: | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
That fixes the package deps, but runtime still complains?
bash-4.2# yum install -v python-argparse csc.warwick. ac.uk csc.warwick. ac.uk csc.warwick. ac.uk 2.7.5-48. el7.x86_ 64 already installed and latest version
Loading "fastestmirror" plugin
Config time: 0.006
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
Loading mirror speeds from cached hostfile
* base: anorien.
* epel: epel.mirror.far.fi
* extras: anorien.
* updates: anorien.
pkgsack time: 12.062
Checking for virtual provide or file-provide for python-argparse
Obs Init time: 0.150
Package python-
Nothing to do
bash-4.2# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
bash-4.2# rpm -qa | grep cloud-init 0.7.9+114. g2796dab- 1.el7.centos. noarch
cloud-init-
bash-4.2# cloud-init --help cloud-init" , line 5, in <module> python2. 7/site- packages/ pkg_resources. py", line 3007, in <module> set.require( __requires_ _) python2. 7/site- packages/ pkg_resources. py", line 728, in require parse_requireme nts(requirement s)) python2. 7/site- packages/ pkg_resources. py", line 626, in resolve Found(req) DistributionNot Found: argparse
Traceback (most recent call last):
File "/usr/bin/
from pkg_resources import load_entry_point
File "/usr/lib/
working_
File "/usr/lib/
needed = self.resolve(
File "/usr/lib/
raise DistributionNot
pkg_resources.