yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #67038
[Bug 1713760] [NEW] CentOS7: Can't build rpms without python-oauthlib
Public bug reported:
python-oathlib is not a strict dependency of the cloud-init package, but
url_helper imports it without handling ImportErrors. This causes breaks
on CentOS 7 when trying to build an RPM in an environment which doesn't
have oauthlib.
make rpm
python3 ./packages/brpm --distro=redhat
Traceback (most recent call last):
File "./packages/brpm", line 27, in <module>
from cloudinit import templater
File "/root/cloud-init/cloudinit/templater.py", line 31, in <module>
from cloudinit import util
File "/root/cloud-init/cloudinit/util.py", line 48, in <module>
from cloudinit import url_helper
File "/root/cloud-init/cloudinit/url_helper.py", line 20, in <module>
import oauthlib.oauth1 as oauth1
ImportError: No module named 'oauthlib'
make: *** [rpm] Error 1
** Affects: cloud-init
Importance: Undecided
Assignee: Chad Smith (chad.smith)
Status: Fix Committed
** Changed in: cloud-init
Assignee: (unassigned) => Chad Smith (chad.smith)
** Changed in: cloud-init
Status: New => In Progress
** Merge proposal linked:
https://code.launchpad.net/~larsks/cloud-init/+git/cloud-init/+merge/329620
--
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/1713760
Title:
CentOS7: Can't build rpms without python-oauthlib
Status in cloud-init:
Fix Committed
Bug description:
python-oathlib is not a strict dependency of the cloud-init package,
but url_helper imports it without handling ImportErrors. This causes
breaks on CentOS 7 when trying to build an RPM in an environment which
doesn't have oauthlib.
make rpm
python3 ./packages/brpm --distro=redhat
Traceback (most recent call last):
File "./packages/brpm", line 27, in <module>
from cloudinit import templater
File "/root/cloud-init/cloudinit/templater.py", line 31, in <module>
from cloudinit import util
File "/root/cloud-init/cloudinit/util.py", line 48, in <module>
from cloudinit import url_helper
File "/root/cloud-init/cloudinit/url_helper.py", line 20, in <module>
import oauthlib.oauth1 as oauth1
ImportError: No module named 'oauthlib'
make: *** [rpm] Error 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1713760/+subscriptions
Follow ups