[GNC-dev] Trouble with gsettings in GC 4.9

john jralls at ceridwen.us
Tue Dec 28 11:10:07 EST 2021


Christian,

Try uninstalling 4.7 again, then make sure that /opt/share/glib-2.0/schemas and /usr/share/glib-2.0/schemas contain no files whose names begin with `org.gnucash', then reinstall 4.9.

Regards,
John Ralls

> On Dec 28, 2021, at 7:50 AM, Christian Wehling <c.wehling at posteo.de> wrote:
> 
> Hi,
> I have tried all this:
> I started with a working version 4.7, did a 'sudo make uninstall' and
> then installed versions 4.8 and 4.9 with 'sudo make install' and 'sudo
> ninja install'. Unfortunately, both versions were unsuccessful.
> 
> The Output from 4.8 and 4.9:
> * 16:29:33  INFO <gnc.gui            > [gnc_load_app_icons] Path 19:
> /usr/share/pixmaps
> * 16:29:33  INFO <gnc.gui            > [gnc_load_app_icons] Path 20:
> /opt/gnucash/share/gnucash/icons
> * 16:29:33  INFO <gnc.gui            > [gnc_load_app_icons] Path 21:
> /opt/gnucash/share/icons
> * 16:29:33 ERROR <GLib-GIO           > g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:29:33  WARN <gnc.app-utils.gsett>
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:29:33 ERROR <gnc.app-utils      > GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR <GLib-GIO           > g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:29:33  WARN <gnc.app-utils.gsett>
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.general
> * 16:29:33 ERROR <gnc.app-utils      > GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR <GLib-GIO           > g_settings_new_full: assertion
> 'schema != NULL' failed
> 
> I've also checked the dependencies and the version numbers of
> gsettings.
> 
> Fortunately, I was able to get version 4.7 to work again with 'sudo
> make install'. I have been doing this in the same way since 4.5 and it
> has always worked until now.
> 
> Christian
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> davidcousens49 at gmail.com:
>> Christian,
>> 
>> Not sure what the problem is but you could try using David Whitings
>> script for
>> installation on Ubuntu 20.04 which is now in the wiki at  
>> https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
>> . It works
>> well with the only disadvantage it downloads a copy of the whole git
>> repository
>> and not just the specific source files for a single version, OK if
>> you don't
>> have any serious space issues.
>> 
>> The following commands from the script will do the setup for builing
>> and install
>> the dependencies:
>> 
>> sudo apt -y update
>> sudo apt -y upgrade
>> sudo apt -y install git
>> sudo apt -y build-dep gnucash
>> 
>> ## To build series 4 of gnucash on Ubuntu 20.04
>> sudo apt -y install libboost-program-options1.71-dev
>> 
>> If you still want to work from the downloaded zip file of the sources
>> just run
>> these first to make sure all the dependencies are loaded. I would try
>> a fresh
>> download of the zipped file from Sourceforge as well. There was a
>> patch to the
>> 4.8 sources that affected the gsettings schemas from memory but AFAIK
>> it was
>> incorporated in the 4.9 sources.
>> 
>> If you run the following command ( I have also listed the output from
>> it on
>> Linux MInt 20.2 which should be the same as Ubuntu 20.04) you will
>> list the
>> packages affecting gsettings.
>> 
>> dpkg -l | grep gsettings
>> 
>> ii  dconf-gsettings-
>> backend:amd64                               0.36.0-
>> 1                                    amd64        simple
>> configuration storage
>> system - GSettings back-end
>> ii  gsettings-desktop-
>> schemas                                   3.36.0-
>> 1ubuntu1                             all          GSettings desktop-
>> wide schemas
>> ii  libproxy1-plugin-
>> gsettings:amd64                            0.4.15-
>> 10ubuntu1.2                          amd64        automatic proxy
>> configuration
>> management library (GSettings plugin).
>> 
>> It is ususlly a good idea on Linux to unistall the previous version
>> befor
>> installing a new version. On Linux Mint (not sure Ubuntu is exactly
>> the same but
>> I think it should be) if you right click on the icon in the menu you
>> should get
>> a dropdown menu with uninstall as one of the options. It may require
>> you to keep
>> the build directory which has the install_manifest.text used to do
>> the
>> uninstall.
>> 
>> David Cousens
>> 
>> On Mon, 2021-12-27 at 16:57 +0000, Christian Wehling wrote:
>>> Hi,
>>> I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net
>>> and 
>>> have trouble with the "glib-schemas".
>>> The installation seemed to run without errors, but when I start
>>> Gnucash
>>> I get these outputs:
>>> [...]
>>> * 16:48:51  INFO <gnc.gui            > [gnc_load_app_icons] Path
>>> 14:
>>> /usr/local/share/gnucash/icons
>>> * 16:48:51  INFO <gnc.gui            > [gnc_load_app_icons] Path
>>> 15:
>>> /usr/local/share/icons
>>> * 16:48:51 ERROR <GLib-GIO           > g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:48:51  WARN <gnc.app-utils.gsett>
>>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
>>> unknown
>>> gsettings schema org.gnucash.GnuCash.general
>>> * 16:48:51 ERROR <gnc.app-utils      > GVariant*
>>> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
>>> 'G_IS_SETTINGS (settings_ptr)' failed
>>> [... and so on]
>>> 
>>> If I run:
>>> glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
>>> /usr/local/share/glib-
>>> 2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
>>> Zeile 3, Zeichen 1: <schema id='org.gnucash.dialogs.business'>
>>> wurde
>>> bereits angegeben.  --strict was specified; exiting.
>>> 
>>> 
>>> I had installed version 4.7 in the same way and it worked fine.
>>> 
>>> What can I do?
>>> 
>>> Christian
>>> 
>>> _______________________________________________
>>> gnucash-devel mailing list
>>> gnucash-devel at gnucash.org
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>> 
>> _______________________________________________
>> gnucash-devel mailing list
>> gnucash-devel at gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 
> _______________________________________________
> 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