charm promulgate fails with lazr.restfulclient (0.13.4)

Bug #1491971 reported by Kevin W Monroe on 2015-09-03
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juju Charm Tools
Won't Fix
Undecided
Unassigned
lazr.restfulclient
Undecided
Unassigned

Bug Description

I ran into the following on a Vivid vagrant image:

$ juju charm promulgate -s trusty -v
INFO:Running charm proof ...
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/charmtools/proof.py", line 23, in <module>
    from charms import Charm
  File "/usr/lib/python2.7/dist-packages/charmtools/charms.py", line 12, in <module>
    from launchpadlib.launchpad import Launchpad
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 33, in <module>
    from lazr.restfulclient.resource import (
ImportError: No module named restfulclient.resource

Relevant packages:
ii charm-tools 1.6.1-0ubuntu2~ubuntu15 all Tools for maintaining Juju charms
ii python-lazr.restfulclient 0.13.4-4 all client for lazr.restful-based web services

To work around this, I downgraded lazr.restfulclient as follows:

$ sudo pip install --upgrade lazr.restfulclient==0.13.1

After this, I was able to successfully run charm promulgate.

Marco Ceppi (marcoceppi) wrote :

This is bubbling up from charm-tools calling

launchpadlib.launchpad import Launchpad

Which seems to indicate an issue with the Launchpad library/lazr.restfulclient

Changed in charm-tools:
status: New → Won't Fix
Changed in lazr.restfulclient:
status: New → Confirmed
Kevin W Monroe (kwmonroe) wrote :

I found that a rogue pip installed lazr.authentication was causing my problem:

http://paste.ubuntu.com/12266202/

With that installed, "from launchpadlib.launchpad import Launchpad" fails. With it uninstalled, the import succeeds. I'm ok with closing this bug as it's my own fault for mixing pip + apt for python mods, unless someone wants to sort this out any farther.

Kevin W Monroe (kwmonroe) wrote :

I've also got an strace of the failed charm promulgate.. i'll leave it here for posterity:

http://paste.ubuntu.com/12265950/

William Grant (wgrant) on 2015-09-10
Changed in lazr.restfulclient:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers