[Bug 1255505] Re: unittest discover crashes with: module incorrectly imported from 'xxx'. Expected 'xxx. Is this module globally installed?

Martin Pitt martin.pitt at ubuntu.com
Thu Nov 28 16:17:36 UTC 2013


Looks like fallout from http://bugs.python.org/issue19352 which landed
in https://launchpad.net/ubuntu/+source/python2.7/2.7.6-2.

Simple reproducer on a current trusty desktop with python-lazr.uri
installed:

$ python -m unittest discover lazr


** Summary changed:

- Python program (autopilot) crashing with ImportError in _find_tests(): 'test_switcher' module incorrectly imported from 'xxx'. Expected 'xxx. Is this module globally installed?
+ unittest discover crashes with: module incorrectly imported from 'xxx'. Expected 'xxx. Is this module globally installed?

** Bug watch added: Python Roundup #19352
   http://bugs.python.org/issue19352

** Changed in: python2.7 (Ubuntu)
   Importance: Undecided => Critical

** Changed in: python2.7 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1255505

Title:
  unittest discover crashes with: module incorrectly imported from
  'xxx'. Expected 'xxx. Is this module globally installed?

Status in “python2.7” package in Ubuntu:
  Confirmed

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.test_panel.PanelCrossMonitorsTests.test_hovering_indicators_on_multiple_monitors

  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.04.20131125-0ubuntu1
  ProcVersionSignature: Ubuntu 3.12.0-4.10-generic 3.12.1
  Uname: Linux 3.12.0-4-generic x86_64
  ApportVersion: 2.12.7-0ubuntu1
  Architecture: amd64
  CheckboxSubmission: 1896b893828b4203b948b1eb6546be06
  CheckboxSystem: d00f84de8a555815fa1c4660280da308
  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
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/autopilot run unity.tests.test_panel.PanelCrossMonitorsTests.test_hovering_indicators_on_multiple_monitors
  PythonArgs: ['/usr/bin/autopilot', 'run', 'unity.tests.test_panel.PanelCrossMonitorsTests.test_hovering_indicators_on_multiple_monitors']
  SourcePackage: autopilot
  Title: 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?
  UpgradeStatus: Upgraded to trusty on 2013-10-23 (34 days ago)
  UserGroups: adm autopilot cdrom dip lp lpadmin motion plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1255505/+subscriptions



More information about the foundations-bugs mailing list