Settings schema 'org.gnucash.general' is not installed
Geert Janssens
janssens-geert at telenet.be
Wed Dec 11 03:01:43 EST 2013
On Tuesday 10 December 2013 21:12:54 Michael Iles wrote:
> (Ubuntu 13.10)
>
> I'm trying to use the Python bindings so I built the head of the
> repository using:
>
> ./configure --prefix=/opt/gnucash-devel --enable-debug
> --enable-profile --enable-register2 --enable-ofx --enable-etags
> --enable-ctags --enable-doxygen --enable-dot --enable-html-docs
> --enable-latex-docs --enable-python
>
> I created this script:
>
> #!/usr/bin/env python
> import gnucash
> session = gnucash.Session()
>
> And I get this output:
>
> % /opt/gnucash-devel/bin/gnucash-env python test
> * 21:09:52 OTHER <GLib-GIO> Settings schema 'org.gnucash.general' is
> not installed
> [1] 32166 trace trap (core dumped)
> /opt/gnucash-devel/bin/gnucash-env python test
>
> I don't know anything about GConf or GSetings but on a whim [1] [2] I
> did this:
>
> % glib-compile-schemas /opt/gnucash-devel/share/glib-2.0/schemas
>
> Which didn't make any difference. I do note though that the 'schemas'
> dir above doesn't have a file called 'org.gnucash.general.gschema.xml'
> in it. Is that a problem?
>
> Any advice appreciated!
>
> Thanks,
> Mike.
>
Hi Mike,
This is a bug in the current trunk I still have to fix [1].
You can work around it currently by setting an environment variable before running your
python scripts:
XDG_DATA_DIRS=/opt/gnucash-devel/share:$XDG_DATA_DIRS:/usr/local/share:/usr/share <your
python script>
That should all be in one line.
Regards,
Geert
[1] https://bugzilla.gnome.org/show_bug.cgi?id=720235
>
> [1]
> http://gnucash.1415818.n4.nabble.com/core-dump-latest-svn-build-td466
> 4893.html [2]
> https://wiki.archlinux.org/index.php/GNOME_Package_Guidelines#GSettin
> gs_schemas _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
More information about the gnucash-devel
mailing list