PyGIWarning: UbuntuAppLaunch was imported without specifying a version first

Bug #1524000 reported by Carla Sella on 2015-12-08
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Undecided
Christopher Lee
Ubuntu Music App
Undecided
Unassigned
pygobject (Ubuntu)
Undecided
Unassigned

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

Related branches

description: updated
Andrew Hayzen (ahayzen) wrote :

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.

Changed in music-app:
status: New → Invalid
Changed in autopilot:
status: New → In Progress
Changed in autopilot:
assignee: nobody → Christopher Lee (veebers)
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot at revision None, scheduled for release in autopilot, milestone 1.4

Changed in autopilot:
status: In Progress → Fix Committed
Changed in autopilot:
status: Fix Committed → Fix Released
Christoph Reiter (lazka) wrote :

PyGObject warns that gi.require_version() wasn't used. That's something that needs to be fixed by the library user.

Changed in pygobject (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers