← Back to team overview

desktop-packages team mailing list archive

[Bug 1524000] Re: PyGIWarning: UbuntuAppLaunch was imported without specifying a version first

 

** Branch linked: lp:~canonical-platform-
qa/autopilot/fix_vuild_for_x_incl_datetime

** Also affects: autopilot
   Importance: Undecided
       Status: New

** Changed in: autopilot
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/1524000

Title:
  PyGIWarning: UbuntuAppLaunch was imported without specifying a version
  first

Status in Autopilot:
  In Progress
Status in Ubuntu Music App:
  Invalid
Status in pygobject package in Ubuntu:
  New

Bug description:
  When launching Autopilot tests for Music App you get an error indicating that UbuntuAppLaunch was imported without specifying a version first.
  This is the error:

  autopilot run music_app
  /usr/lib/python2.7/dist-packages/autopilot/application/_launcher.py:23: PyGIWarning: UbuntuAppLaunch was imported without specifying a version first. Use gi.require_version('UbuntuAppLaunch', '2') before import to ensure that the right version gets loaded.
    from gi.repository import GLib, UbuntuAppLaunch
  Loading tests from: /home/victor/Development/music-app/tests/autopilot

  Failed to import test module: music_app.tests.test_music
  Traceback (most recent call last):
    File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
      module = self._get_module_from_name(name)
    File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
      __import__(name)
    File "/home/victor/Development/music-app/tests/autopilot/music_app/__init__.py", line 9, in <module>
      from ubuntuuitoolkit import (
  ImportError: No module named ubuntuuitoolkit

  Tests running...
  ======================================================================
  ERROR: unittest.loader.ModuleImportFailure.music_app.tests.test_music
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  ImportError: Failed to import test module: music_app.tests.test_music
  Traceback (most recent call last):
    File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
      module = self._get_module_from_name(name)
    File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
      __import__(name)
    File "/home/victor/Development/music-app/tests/autopilot/music_app/__init__.py", line 9, in <module>
      from ubuntuuitoolkit import (
  ImportError: No module named ubuntuuitoolkit

To manage notifications about this bug go to:
https://bugs.launchpad.net/autopilot/+bug/1524000/+subscriptions