apport-gtk: ImportError: cannot import name '_gi' from partially initialized module 'gi'

Bug #1980561 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
High
Unassigned
apport (Ubuntu)
Fix Released
High
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 16, in <module>
    import gi
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 40, in <module>
    from . import _gi
ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py)

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.11-0ubuntu82.1, the problem page at https://errors.ubuntu.com/problem/f5c8cca5c7852cd7b758bc7cb0add4221c47ebf5 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/.

Benjamin Drung (bdrung)
description: updated
summary: - /usr/share/apport/apport-gtk:ImportError:/usr/share/apport/apport-
- gtk@16:/usr/lib/python3/dist-packages/gi/__init__.py@40
+ apport-gtk: ImportError: cannot import name '_gi' from partially
+ initialized module 'gi'
Changed in apport:
milestone: none → 2.23.0
Benjamin Drung (bdrung)
Changed in apport:
importance: Undecided → Low
status: New → Triaged
Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Benjamin Drung (bdrung) wrote :

13 occurrences in the last day making it on rank 9.

Changed in apport (Ubuntu):
importance: Low → High
Changed in apport:
importance: Low → High
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: Triaged → Fix Committed
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.23.0-0ubuntu1

---------------
apport (2.23.0-0ubuntu1) kinetic; urgency=medium

  * New upstream release:
    - apport-gtk:
      - Gracefully handle import failure of gi (LP: #1980561)
      - Catch AssertionError when importing Gdk (LP: #1980238)
    - data/apport:
      - Fix PermissionError for setuid programs inside container (LP: #1982487)
      - Fix reading from stdin inside containers (LP: #1982555)
    - apport-kde:
      - Fix inverse order of choices (LP: #1967965)
      - Import apport before usage (LP: #1980553)
      - Drop old workaround for bug in SIP destructor (LP: #1980553)
    - apport-unpack: Fix ValueError: ['separator'] has no binary content
      (LP: #1889443)
    - Fix _run_hook getting called with ui=None (LP: #1983481)
  * Refresh patches and drop backported patches
  * Fix pydocstyle and pylint complains in patches

 -- Benjamin Drung <email address hidden> Mon, 22 Aug 2022 22:31:55 +0200

Changed in apport (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.