When using Ensemble, add-apt-repository no longer functions properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ensemble (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
python2.7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
software-properties (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
One of the changes made between Jul 22-25 caused add-apt-repository to quit working when being called from within an ensemble formula:
+ apt-add-repository ppa:cloudfoundr
2011-07-25 22:55:32,383: hook.output@ERROR: Fatal Python error: Py_Initialize: Unable to get the locale encoding
File "/usr/lib/
raise CodecRegistryEr
2011-07-25 22:55:32,384: hook.output@ERROR: SyntaxError: invalid syntax
Ensemble does not set many env vars, so this may be the culprit.
When running this from within an Ensemble script on an Oneiric install, the error above is yielded, and while the file in sources.list.d is written, it uses sid for the distro rather than oneiric.
If manually logging in and subsequently running the command, everything works as it should, which leads me to believe it is an env var issue.
Changed in ensemble (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in software-properties (Ubuntu): | |
status: | Fix Released → New |
Changed in ensemble (Ubuntu): | |
status: | Fix Released → New |
Changed in python2.7 (Ubuntu): | |
status: | Fix Released → New |
Changed in python2.7 (Ubuntu): | |
status: | New → Confirmed |
Changed in software-properties (Ubuntu): | |
status: | New → Confirmed |
Changed in python2.7 (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in software-properties (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in ensemble (Ubuntu): | |
status: | Confirmed → Fix Released |
Some additional logs. Importing the runpy module from hooks also seems to be broken, as well.?field. comment= Some additional logs. Importing the runpy module from hooks also seems to be broken, as well.