← Back to team overview

desktop-packages team mailing list archive

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

 

Thank you for taking the time to report this bug and helping to make
Ubuntu better.

This is an issue that is related to python gi on Xenial (16.04),
therefore I am adding pygobject to this bug and as it affects all the
core apps which use this kind of import I'm marking this as invalid for
music specifically.

** Also affects: pygobject (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: music-app
       Status: New => Invalid

-- 
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 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/music-app/+bug/1524000/+subscriptions