Re: [GNC] Python Error

2021-07-19 Thread Robin Chattopadhyay
I did not try removing the previous versions, the only one on this VM is 4.4. I removed both 4.4 and 4.6 then rebuilt 4.6 and that didn't change anything BUT I did figure out based on your suggestion that the engine was looking at the libraries at /usr/lib/python3/dist-packages/. Once I updated th

Re: [GNC] Python Error

2021-07-19 Thread Derek Atkins
HI, Did you remove any older versions of GnuCash? It is possible that the engine is finding *older* libraries causing the wrong code to be loaded. -derek On Mon, July 19, 2021 8:42 am, Robin Chattopadhyay wrote: > I should have mentioned that. > > I built from source with "cmake -DCMAKE_INSTALL

Re: [GNC] Python Error

2021-07-19 Thread Robin Chattopadhyay
I should have mentioned that. I built from source with "cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_AQBANKING=OFF -DWITH_PYTHON=ON" On Sun, Jul 18, 2021 at 6:05 PM David Cousens wrote: > Robin > > Did you build GnuCash from source or use the flatpack? If the former did > you > include the

Re: [GNC] Python Error

2021-07-18 Thread David Cousens
Robin Did you build GnuCash from source or use the flatpack? If the former did you include the switch "-DWITH_PYTHON=ON" in the cmake command when building? David Cousens On Sun, 2021-07-18 at 17:29 -0500, Robin Chattopadhyay wrote: > Ubuntu 20.04 LTS > Gnucash 4.6 > > After upgrading to 4.6 m

[GNC] Python Error

2021-07-18 Thread Robin Chattopadhyay
Ubuntu 20.04 LTS Gnucash 4.6 After upgrading to 4.6 my Python script broke and I'm not sure what to do to fix it. It's failing at "import gnucash" with: Traceback (most recent call last): File "/home/robin/.local/lib/python3.8/site-packages/gnucash/gnucash_core_c.py", line 14, in swig_import_h