[Bug 1936488] Re: Ubiquity fails to build with GTK4

Launchpad Bug Tracker 1936488 at bugs.launchpad.net
Fri Jul 16 18:30:09 UTC 2021


This bug was fixed in the package ubiquity - 21.10.5

---------------
ubiquity (21.10.5) impish; urgency=medium

  * tests/test_gtkwidgets.py, ubiquity/frontend/gtk_ui.py:
    - use gi.require_version to ensure we import the right gtk bindings
      (lp: #1936488)

 -- Sebastien Bacher <seb128 at ubuntu.com>  Fri, 16 Jul 2021 16:03:27
+0200

** Changed in: ubiquity (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  Ubiquity fails to build with GTK4

Status in ubiquity package in Ubuntu:
  Fix Released

Bug description:
  With latest updates applied on impish Ubiquity fails to build with:

  make: Leaving directory '/home/j-lallement/shared/Ubuntu/Dev/ubiquity/src'
  /home/j-lallement/shared/Ubuntu/Dev/ubiquity/tests/test_gtkwidgets.py:9: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
    from gi.repository import Gtk, TimezoneMap
  /home/j-lallement/shared/Ubuntu/Dev/ubiquity/tests/test_usersetup.py:6: PyGIWarning: UbiquityMockResolver was imported without specifying a version first. Use gi.require_version('UbiquityMockResolver', '1.0') before import to ensure that the right version gets loaded.
    from gi.repository import UbiquityMockResolver
  Traceback (most recent call last):
    File "/home/j-lallement/shared/Ubuntu/Dev/ubiquity/./tests/run", line 121, in <module>
      suite = unittest.TestLoader().loadTestsFromNames(tests)
    File "/usr/lib/python3.9/unittest/loader.py", line 220, in loadTestsFromNames
      suites = [self.loadTestsFromName(name, module) for name in names]
    File "/usr/lib/python3.9/unittest/loader.py", line 220, in <listcomp>
      suites = [self.loadTestsFromName(name, module) for name in names]
    File "/usr/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
      module = __import__(module_name)
    File "/home/j-lallement/shared/Ubuntu/Dev/ubiquity/tests/test_usersetup.py", line 9, in <module>
      from ubiquity import gtkwidgets, plugin_manager
    File "/home/j-lallement/shared/Ubuntu/Dev/ubiquity/./ubiquity/gtkwidgets.py", line 38, in <module>
      class StylizedFrame(Gtk.Alignment):
    File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
      return getattr(self._introspection_module, name)
    File "/usr/lib/python3/dist-packages/gi/module.py", line 123, in __getattr__
      raise AttributeError("%r object has no attribute %r" % (
  AttributeError: 'gi.repository.Gtk' object has no attribute 'Alignment'


  It should be fixed by setting the version of GTK to 3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1936488/+subscriptions




More information about the foundations-bugs mailing list