autopilot.platform can supercede python library platform module in module search path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Critical
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Raring |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
We're seeing these failures in the daily-release testing when running python-
Traceback (most recent call last):
File "/usr/bin/
from platform import node
ImportError: cannot import name node
I instrumented /usr/bin/autopilot and when this happens, sys.path is:
sys.path: ['/usr/bin', '/usr/lib/
And an import of platform gives:
dir platform: ['_PlatformDete
This is because '/usr/lib/
[Reproduce]
Run python-
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Martin Mrazik (community): Approve
-
Diff: 42 lines (+5/-8)2 files modifiedautopilot/tests/functional/test_autopilot_functional.py (+0/-4)
bin/autopilot (+5/-4)
description: | updated |
Changed in autopilot: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 1.3.1 |
Changed in autopilot: | |
status: | Triaged → In Progress |
assignee: | nobody → Thomi Richards (thomir) |
Changed in autopilot: | |
status: | Fix Committed → Fix Released |
Fix committed into lp:autopilot at revision None, scheduled for release in autopilot, milestone 1.3.1