[GNC] Python bindings issue

2024-08-16 Thread Gere Kiss Zsolt
Hi Nate, I reported a bug to Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnucash/+bug/2077184 -- Best regards, Zsolt --- „We have two lives, and the second begins when we realize we only hav

Re: [GNC] Python bindings issue

2024-08-15 Thread Nate Bargmann
* On 2024 15 Aug 03:21 -0500, Gere Kiss Zsolt wrote: > Hi Jim, > > > > The obvious next question: when you installed the `python3-gnucash` > > package on your system, where exactly did it install its .py files? > > On /usr/lib/python3/dist-packages: > > /usr/lib/python3/dist-packages/gnucash >

[GNC] Python bindings issue

2024-08-15 Thread Gere Kiss Zsolt
Hi Jim, > The obvious next question: when you installed the `python3-gnucash` > package on your system, where exactly did it install its .py files? On /usr/lib/python3/dist-packages: /usr/lib/python3/dist-packages/gnucash /usr/lib/python3/dist-packages/gnucash/__init__.py /usr/lib/python3/dist-

Re: [GNC] Python bindings issue

2024-08-14 Thread Jim DeLaHunt
On 2024-08-14 10:56, Gere Kiss Zsolt wrote: Hi Jim, Did you succeed to import the Python bindings with `import gnucash`? On Wed, 14 Aug 2024 at 02:16, Jim DeLaHunt wrote: That has succeeded sometimes, and failed sometimes, but presently it succeeds. Could this happen because the book was

Re: [GNC] Python bindings issue

2024-08-14 Thread Gere Kiss Zsolt
Hi Jim, Did you succeed to import the Python bindings with `import gnucash`? > That has succeeded sometimes, and failed sometimes, but presently it > succeeds. Could this happen because the book was sometimes locked ? (just a question) Thanks for the code bits. You helped me in the way that it

Re: [GNC] Python bindings issue

2024-08-14 Thread Gere Kiss Zsolt
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() > ['__anno

Re: [GNC] Python bindings issue

2024-08-13 Thread Jim DeLaHunt
On 2024-08-13 15:14, Gere Kiss Zsolt wrote: Hi Jim, and thanks for the response. > 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. Did you succeed to import the Python bindings with  `

Re: [GNC] Python bindings issue

2024-08-13 Thread Nate Bargmann
* 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 g_variant_unref: assertion 'value != NULL' failed > > Can some

Re: [GNC] Python bindings issue

2024-08-13 Thread Gere Kiss Zsolt
Hi Jim, and thanks for the response. > 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. Did you succeed to import the Python bindings with `import gnucash`? > Suggestion 1: is the OS pa

Re: [GNC] Python bindings issue

2024-08-13 Thread Jim DeLaHunt
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

[GNC] Python bindings issue

2024-08-13 Thread Gere Kiss Zsolt
Hi all, I've been using GnuCash for several years now and I'd like to try some Python bindings to enter transactions programmatically. I've browsed all the documentation I've seen on the topic. Unfortunately all my attempts fail with an ERROR g_variant_unref: assertion 'value != NULL' failed whe