Hi, I presume you are building from git. What commit are you building from ? There was an issue with detecting uninstalled builds that got fix right after the 3.10 release. So you'd need a very recent checkout to have this fix. This bug may be causing the symptoms you experience.
Regards, Geert Op dinsdag 21 april 2020 05:15:53 CEST schreef Andy Goblins: > My environment seems much the same as yours. But for some reason, it > can't find the gncmod-backend-* files, which are compiled into the > build/lib/gnucash directory: > > Python 3.8.2 (default, Apr 8 2020, 14:31:25) > [GCC 9.3.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > > >>> import sys > >>> print(sys.path) > > ['', '/usr/lib/python38.zip', '/usr/lib/python3.8', > '/usr/lib/python3.8/lib-dynload', > '/home/andy/hack/gnucash/build/lib/python3.8/site-packages', > '/home/andy/.local/lib/python3.8/site-packages', > '/usr/lib/python3.8/site-packages'] > > >>> import gnucash > > * 22:04:55 WARN <gnc.engine> failed to load gncmod-backend-dbi from > relative path > * 22:04:55 ERROR <gnc.engine> required library gncmod-backend-dbi not > found. > * 22:04:55 WARN <gnc.engine> failed to load gncmod-backend-xml from > relative path > * 22:04:55 ERROR <gnc.engine> required library gncmod-backend-xml not > found. > > >>> import gnucash.gnucash_core_c > >>> print(gnucash.gnucash_core_c.CREC) > > c > > >>> exit() > > (build) ~/hack/gnucash/build > ls -a lib/python3.8/site-packages > total 40 > drwxr-xr-x 9 andy andy 4096 Apr 16 18:06 . > drwxr-xr-x 3 andy andy 4096 Apr 16 17:46 .. > -rw-r--r-- 1 andy andy 126 Apr 16 18:06 easy_install.py > drwxr-xr-x 3 andy andy 4096 Apr 16 18:00 gnucash > drwxr-xr-x 5 andy andy 4096 Apr 16 18:06 pip > drwxr-xr-x 2 andy andy 4096 Apr 16 18:06 pip-19.2.3.dist-info > drwxr-xr-x 5 andy andy 4096 Apr 16 18:06 pkg_resources > drwxr-xr-x 2 andy andy 4096 Apr 16 18:06 __pycache__ > drwxr-xr-x 6 andy andy 4096 Apr 16 18:06 setuptools > drwxr-xr-x 2 andy andy 4096 Apr 16 18:06 setuptools-41.2.0.dist-info > (build) ~/hack/gnucash/build > ls -a > lib/python3.8/site-packages/gnucash > total 2556 > drwxr-xr-x 3 andy andy 4096 Apr 16 18:00 . > drwxr-xr-x 9 andy andy 4096 Apr 16 18:06 .. > -rw-r--r-- 1 andy andy 552 Apr 16 18:00 app_utils.py > -rw-r--r-- 1 andy andy 9286 Apr 16 18:00 function_class.py > -rw-r--r-- 1 andy andy 14460 Apr 16 18:00 gnucash_business.py > -rw-r--r-- 1 andy andy 272455 Apr 16 18:00 gnucash_core_c.py > -rwxr-xr-x 1 andy andy 1872240 Apr 16 18:00 _gnucash_core_c.so > -rw-r--r-- 1 andy andy 33878 Apr 16 18:00 gnucash_core.py > -rw-r--r-- 1 andy andy 443 Apr 16 18:00 __init__.py > drwxr-xr-x 2 andy andy 4096 Apr 16 18:00 __pycache__ > -rw-r--r-- 1 andy andy 3772 Apr 16 17:58 sw_app_utils.py > -rwxr-xr-x 1 andy andy 163488 Apr 16 17:58 _sw_app_utils.so > -rw-r--r-- 1 andy andy 14200 Apr 16 17:59 sw_core_utils.py > -rwxr-xr-x 1 andy andy 196176 Apr 16 17:59 _sw_core_utils.so > > Sent: Sunday, April 19, 2020 at 10:43 AM > From: "Mark" <episte...@gmail.com> > To: "gnucash-devel" <gnucash-devel@gnucash.org> > Subject: [GNC-dev] Fwd: Testing python > Forgot to reply all... > *Mark* > *episte...@gmail.com <episte...@gmail.com>* > *(613) 447-5385* > ---------- Forwarded message --------- > From: Mark <episte...@gmail.com> > Date: Sun, Apr 19, 2020 at 11:42 AM > Subject: Re: [GNC-dev] Testing python > To: Andy Goblins <andygobl...@gmx.com> > From a terminal with your venv activated, can you show the actual > output > you get from a test like so: > (venv39) /newdata/dev/git/Python/VENV/venv39 | Sun Apr 19 11:16:23 | > marksa@Ares-A717-72G | bash 4.4.20 > 2038 > python > Python 3.9.0a5+ (heads/master-dirty:3e0dd3730b, Apr 12 2020, 06:54:39) > [GCC 7.5.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > > >>> import sys > >>> print(sys.path) > > ['', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', > '/usr/local/lib/python3.9/lib-dynload', > '/newdata/dev/Python/VENV/venv39/lib/python3.9/site-packages', > '/home/marksa/.local/lib/python3.9/site-packages', > '/usr/local/lib/python3.9/site-packages'] > > >>> import gnucash > >>> import gnucash.gnucash_core_c > >>> print(gnucash.gnucash_core_c.CREC) > > c > > >>> exit() > > This is the simple test I run to make sure I have properly set up a new > venv for running the gnucash python bindings. I presume you are getting _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel