unittest discover crashes with: module incorrectly imported from 'xxx'. Expected 'xxx. Is this module globally installed?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Invalid
|
Unknown
|
|||
python2.7 (Ubuntu) |
Fix Released
|
Critical
|
Martin Pitt |
Bug Description
I got the similar error on touch device as well today morning before I reflashed it.
sudo apt-get install unity-autopilot
autopilot run unity.tests.
On touch I used:
[unknown what I had done before on the device]
adb shell
apt-get install unity8-autopilot
exit
phablet-test-run -n unity8
There the error message was the same except for module+directories referring to unity8.
I've verified that at least Python 2.7 2.7.5-8ubuntu4 works as intended, and 2.7.6-2 is broken.
ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: python-autopilot 1.4+14.
ProcVersionSign
Uname: Linux 3.12.0-4-generic x86_64
ApportVersion: 2.12.7-0ubuntu1
Architecture: amd64
CheckboxSubmission: 1896b893828b420
CheckboxSystem: d00f84de8a55581
CurrentDesktop: Unity
Date: Wed Nov 27 13:44:38 2013
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/autopilot
InstallationDate: Installed on 2012-03-16 (620 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120316)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/autopilot run unity.tests.
PythonArgs: ['/usr/
SourcePackage: autopilot
Title: autopilot crashed with ImportError in _find_tests(): 'test_switcher' module incorrectly imported from '/usr/lib/
UpgradeStatus: Upgraded to trusty on 2013-10-23 (34 days ago)
UserGroups: adm autopilot cdrom dip lp lpadmin motion plugdev sambashare sudo
Related branches
tags: | removed: need-duplicate-check |
Changed in autopilot (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
no longer affects: | autopilot (Ubuntu) |
summary: |
- autopilot crashed with ImportError in _find_tests(): 'test_switcher' - module incorrectly imported from '/usr/lib/python2.7/dist- - packages/unity/tests'. Expected '/usr/lib/python2.7/dist- - packages/unity/tests'. Is this module globally installed? + Python programs crasheing with ImportError in _find_tests(): + 'test_switcher' module incorrectly imported from 'xxx'. Expected 'xxx. + Is this module globally installed? |
description: | updated |
summary: |
- Python programs crasheing with ImportError in _find_tests(): + Python program (autopilot) crashing with ImportError in _find_tests(): 'test_switcher' module incorrectly imported from 'xxx'. Expected 'xxx. Is this module globally installed? |
Changed in python: | |
status: | Unknown → New |
Changed in python: | |
status: | New → Invalid |
Confirming that same problem with 2.7.6-1ubuntu1 and 2.7.6-1, but fixed if I downgrade to 2.7.5-8ubuntu4.