Re: [GNC] Problem getting child accounts with Python

2024-10-03 Thread Ross Reedstrom
I tried your example code, and I'm sorry to say "it works for me". Took a bit to extract it from the email (NBSP is not my friend) but here's what I see when running it locally: $ python3 m.py Root Expenses I'm assuming you get an error of some sort? If I import the create_accounts() method into

Re: [GNC] Problem getting child accounts with Python

2024-09-28 Thread Geoff
Hi Eberhard I can't help you with this problem, but for a different approach, this project manipulates GnuCash via its database instead of using the API: https://github.com/sdementen/piecash Regards Geoff = On 29/09/2024 6:42 am, Eberhard Beilharz wrote: Hi, I'm trying to create a Pyt

[GNC] Problem getting child accounts with Python

2024-09-28 Thread Eberhard Beilharz
Hi, I'm trying to create a Python script with the GnuCash API. I started with the `simple_test.py` sample and extended that a bit (see below). However, I ran into a problem: after re-opening the session and getting the root account, it doesn't show any child accounts. I tried different ways,