[GNC] Python bindings issue

Gere Kiss Zsolt zsolt.gkiss at gmail.com
Wed Aug 14 13:32:44 EDT 2024


Thanks, Nate. I don't want to purge the `python3-gnucash` package for fear
that it will remove my GnuCash settings.

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']


This is important, as it indicates that the bindings work with Python
3.11.2 (I have 3.10). This solved my issue. I'll follow up with another
email explaining that.

Cheers,
    Zsolt


On Wed, 14 Aug 2024 at 02:12, Nate Bargmann <n0nb at n0nb.us> wrote:

> * 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
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
Üdvözlettel,

   Zsolt

---------------------------------------------------------------------------------------------------
„We have two lives, and the second begins when we realize we only have one.”
-- Confucius


More information about the gnucash-user mailing list