[GNC] Python bindings issue

Nate Bargmann n0nb at n0nb.us
Tue Aug 13 20:10:58 EDT 2024


* On 2024 13 Aug 12:29 -0500, Gere Kiss Zsolt wrote:
> Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gnucash
> * 11:41:04 ERROR <GLib> g_variant_unref: assertion 'value != NULL' failed
> 
> Can somebody give me a clue about what I can do about it?

Perhaps your only recourse are the Ubuntu support forums, but 22.04 is
an LTS release and should have almost three more years of support so
filing a bug report may be useful.

OTOH, purging (not just removing) the python3-gnucash package may
resolve the issue.  This package is a "recommends" dependency so it is
not strictly necessary.  Unfortunately, if your apt is configured to
install recommended packages automatically, then apt will want to remove
the main gnucash package as well.

I'd never tried it before, but on my Debian 12 system there are no
errors:

Python 3.11.2 (main, May  2 2024, 11:59:08) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnucash
>>> dir()
['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'gnucash']

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20240813/89e0abb4/attachment.sig>


More information about the gnucash-user mailing list