Public bug reported:

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

** Affects: ubiquity (Ubuntu)
     Importance: Critical
         Status: New


** Tags: rls-ii-incoming

** Changed in: ubiquity (Ubuntu)
   Importance: Undecided => High

** Changed in: ubiquity (Ubuntu)
   Importance: High => Critical

** Tags added: rls-ii-incoming

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

Title:
  Ubiquity fails to build with GTK4

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to