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

Launchpad Bug Tracker 1255505 at bugs.launchpad.net
Fri Nov 29 03:36:24 UTC 2013


This bug was fixed in the package python2.7 - 2.7.6-2ubuntu1

---------------
python2.7 (2.7.6-2ubuntu1) trusty; urgency=low

  * Add debian/patches/revert-unittest-loader-symlinks19352.diff: Revert patch
    from http://bugs.python.org/issue19352 as it completely breaks unittest
    discovery on Debian/Ubuntu. (LP: #1255505)
 -- Martin Pitt <martin.pitt at ubuntu.com>   Thu, 28 Nov 2013 17:33:17 +0100

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

-- 
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:
  Fix Released

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