#1120486 gnucash: logs a traceback for missing python3-gi, then ValueError: Namespace Gtk not available (missing gir1.2-gtk-3.0)

Package:
gnucash
Source:
gnucash
Description:
personal and small-business financial-accounting software
Submitter:
наб
Date:
2025-11-10 19:03:02 UTC
Severity:
normal
#1120486#5
Date:
2025-11-10 19:00:59 UTC
From:
To:
Dear Maintainer,

I installed gnucash in a clean sid chroot. I was then presented with
  # gnucash /tmp/pieniądze.gnucash
  Traceback (most recent call last):
    File "/usr/share/gnucash/python/init.py", line 6, in <module>
      from gi import require_version
  ModuleNotFoundError: No module named 'gi'
but gnucash seems to work normally after.

"apt install python3-gi" gives me
  Traceback (most recent call last):
    File "/usr/share/gnucash/python/init.py", line 7, in <module>
      require_version('Gtk', '3.0')
      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/gi/__init__.py", line 132, in require_version
      raise ValueError(f"Namespace {namespace} not available")
  ValueError: Namespace Gtk not available
with the same effect.

Installing gir1.2-gtk-3.0 made it go away.

What am I missing with the missing dependencies?

Best,