CentOS7: Can't build rpms without python-oauthlib

Bug #1713760 reported by Chad Smith on 2017-08-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chad Smith

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

Related branches

Chad Smith (chad.smith) on 2017-08-29
Changed in cloud-init:
assignee: nobody → Chad Smith (chad.smith)
status: New → In Progress
Chad Smith (chad.smith) on 2017-08-29
Changed in cloud-init:
status: In Progress → Fix Committed
Scott Moser (smoser) on 2017-09-22
Changed in cloud-init:
status: Fix Committed → Fix Released

This bug is believed to be fixed in cloud-init 17.1.

If you believe otherwise, please give a justification and move the bug state to New.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers