[GNC] Python bindings issue
Jim DeLaHunt
list+gnucash at jdlh.com
Tue Aug 13 16:03:18 EDT 2024
Hello, Zsolt:
On 2024-08-13 10:26, Gere Kiss Zsolt wrote:
> Hi all,
>
> I've been using GnuCash for several years now and I'd like to try some
> Python bindings to enter transactions programmatically.
...[details elided]...
> 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?
I too am someone who has used GnuCash from the UI from several years,
and is now starting to try using the Python bindings. I am on macOS
rather than Linux. Since I am just starting out, maybe my help is just
the blind leading the blind.
Suggestion 1: is the OS package python3-gnucash installed on your system?
Suggestion 2: what info about python3-gnucash does the apt system
display (in the same way it displayed information about the package
gnucash)?
Suggestion 3: did the package python3-gnucash install libraries for a
specific version of Python, or for all versions of Python? (In my
situation, using the MacPorts distribution on MacOS, the package gnucash
installs the Python bindings specifically for Python 3.11, not for all
versions.)
Do those answers shed any light for you?
Best regards, —Jim DeLaHunt
More information about the gnucash-user
mailing list