utilities/ec2 broken because of missing packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Gavin Panella |
Bug Description
Running utilities/ec2 results in:
Traceback (most recent call last):
File "utilities/ec2", line 16, in <module>
from devscripts.
File "lib/devscripts
from devscripts.ec2test import builtins
File "lib/devscripts
from devscripts.autoland import LaunchpadBranch
File "lib/devscripts
from lazr.uri import URI
ImportError: No module named lazr.uri
In fact, devscripts.autoland relies on launchpadlib and lazr.uri.
Ordinarily this would not be a problem because the buildout managed
python (bin/py) could be used, which sorts out these deps. However
utilities/ec2 must use the system python (i.e. >= python2.5) because
boto is not compatible with python2.4 (someone correct me if that's
wrong).
A couple of options are apparent:
1. Conditional imports in autoland.py.
Make sure the "land" command is still shown in the help message
for utilities/ec2, with a message saying that it won't work until
launchpadlib and lazr.uri have been installed.
Problem here is that, according to maxb, installing lazr.uri will
cause launchpad dev to break.
2. Create an environment (by hand, or virtualenv, or buildout,
etc...) containing all the deps for devscripts, and always run
from there.
Related branches
- Jonathan Lange (community): Approve
-
Diff: 31 lines1 file modifiedlib/devscripts/ec2test/builtins.py (+13/-1)
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
Fixed in devel r9647 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ devel/revision/ 9647>