lazr.restful needs to be imported on staging/production
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Software Center Agent |
Fix Released
|
Low
|
Unassigned |
Bug Description
For some reason specific to our staging/production environments, you need to import lazr.restful as a first step in any script for it to work. Otherwise it fails with a traceback very similar to this:
{{{
sca@dysprosium:
Traceback (most recent call last):
File "migrate-
from softwarecentera
File "/usr/lib/
from .webservice import (
File "/usr/lib/
from softwarecentera
File "/usr/lib/
from softwarecentera
File "/usr/lib/
from launchpadlib.
File "/usr/lib/
from lazr.uri import URI
ImportError: No module named uri
}}}
That is, it fails to find lazr.uri. Funnily, importing lazr.restful at the top of the script you're attempting to run fixes this issue.
Changed in software-center-agent: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in software-center-agent: | |
status: | Triaged → Fix Released |
This may go away with the precise upgrade. This will need reviewing again then.