Public bug reported: All attempts to import the `gnucash` Python package fail with the error:
ERROR <GLib> g_variant_unref: assertion 'value != NULL' failed System Details: - Ubuntu Version: 22.04.4 LTS - Architecture: amd64 - Python Version: 3.10.12 Buggy Package Version: python3-gnucash: Installed: 1:4.8-1build2 Candidate: 1:4.8-1build2 Source Package: gnucash Version: 1:4.8-1build2 Steps to Reproduce: 1. Install `gnucash` and `python3-gnucash`. 2. Execute the following command: python3 -c "import gnucash" ``` Observed Behavior: The command produces: 18:18:27 ERROR <GLib> g_variant_unref: assertion 'value != NULL' failed Expected Behavior: The command should return with error code 0, indicating a successful import. Additional Information: This error does not appear in newer OS/package versions. It has been reported to work with Python 3.11.2 on Debian 12 and works perfectly on Ubuntu 24.04 (Python 3.12, GnuCash 5.5), which I have confirmed personally. Sadly not on Ubuntu 22.04. Workarounds Tried: - Reinstalling python3-gnucash - did not help. - Using a virtual environment - neither. - Testing with other OS and Python versions (3.11 and 3.12), where the issue did not appear. I suspect this may be related to packaging issues specific to python3-gnucash on Ubuntu 22.04. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: python3-gnucash 1:4.8-1build2 ProcVersionSignature: Ubuntu 5.19.0-42.43~22.04.1-generic 5.19.17 Uname: Linux 5.19.0-42-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.5 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Fri Aug 16 18:12:50 2024 InstallationDate: Installed on 2021-05-25 (1178 days ago) InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1) SourcePackage: gnucash UpgradeStatus: Upgraded to jammy on 2023-03-21 (513 days ago) ** Affects: gnucash (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy wayland-session -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2077184 Title: GnuCash Python bindings fail to load To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/2077184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs