yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #54867
[Bug 1603533] Re: Can't build correctly using brpm on cent7
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1603533
Title:
Can't build correctly using brpm on cent7
Status in cloud-init:
Fix Released
Bug description:
Getting the following after building on cent7 and installing,
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse
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-2.7.5-34.el7.x86_64 already installed and latest version
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).
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1603533/+subscriptions
References