[Bug 2072634] Re: TypeError exception when importing Unity

Sebastien Bacher 2072634 at bugs.launchpad.net
Wed Nov 27 14:57:28 UTC 2024


Checking some of the errors.ubuntu.com entry those reports almost all
have

InterpreterPath  /usr/bin/python3.10 
Python3Details /usr/local/bin/python3.7, Python 3.7.6, unpackaged 

So it seems those systems have a broken python installation (they also
seem to be mostly in chinese locale and reported in a specific period in
Septembre so maybe a broken local deployment somewhere?)


Those systems are broken and I don't think the fix is going to help much, it will workaround the unity import erroring out but it's likely that the next module loaded will hit the same error due to the python3.7 interpreter being using where 22.04 is on 3.10 and modules are built for that version

Let me know if you disagree, but I think it's just a wontfix for update-
manager, the admins/users need to fix their system

** Changed in: update-manager (Ubuntu Jammy)
       Status: New => Won't Fix

** Changed in: update-manager (Ubuntu Noble)
       Status: New => Won't Fix

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

Title:
  TypeError exception when importing Unity

Status in update-manager package in Ubuntu:
  Fix Released
Status in update-manager source package in Jammy:
  Won't Fix
Status in update-manager source package in Noble:
  Won't Fix

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:22.04.20, the problem page at https://errors.ubuntu.com/problem/af02cc88fe2c9ba4f19be66fd01813a196dfcfb5 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

  Traceback (most recent call last):
    File "/usr/bin/update-manager", line 40, in <module>
      from UpdateManager.UpdateManager import UpdateManager
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 52, in <module>
      from .UnitySupport import UnitySupport
    File "/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py", line 32, in <module>
      from gi.repository import Dbusmenu, Unity
    File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 672, in _load_unlocked
    File "<frozen importlib._bootstrap>", line 632, in _load_backward_compatible
    File "/usr/lib/python3/dist-packages/gi/importer.py", line 149, in load_module
      importlib.import_module('gi.repository.' + dep.split("-")[0])
    File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 672, in _load_unlocked
    File "<frozen importlib._bootstrap>", line 632, in _load_backward_compatible
    File "/usr/lib/python3/dist-packages/gi/importer.py", line 150, in load_module
      dynamic_module = load_overrides(introspection_module)
    File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 118, in load_overrides
      override_mod = importlib.import_module(override_package_name)
    File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "/usr/lib/python3/dist-packages/gi/overrides/Dee.py", line 53, in <module>
      class Model(Dee.Model):
    File "/usr/lib/python3/dist-packages/gi/module.py", line 207, in __getattr__
      wrapper = metaclass(name, bases, dict_)
    File "/usr/lib/python3/dist-packages/gi/types.py", line 247, in __init__
      register_interface_info(cls.__info__.get_g_type())
  TypeError: must be an interface

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2072634/+subscriptions




More information about the foundations-bugs mailing list