Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365791 - [gnome-overlay] gnome-tweak-tool fails with AssertionError on startup
Summary: [gnome-overlay] gnome-tweak-tool fails with AssertionError on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 09:04 UTC by Tassilo Horn
Modified: 2011-05-05 03:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for gentoo layout (gnome-tweak-tool-gentoo.patch,697 bytes, patch)
2011-05-04 11:16 UTC, IGARASHI Masanao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Horn 2011-05-03 09:04:39 UTC
When trying to start gnome-tweak-tool-3.0.3, I get this AssertionError:

 % gnome-tweak-tool 
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.desktop.interface>
Traceback (most recent call last):
  File "/usr/bin/gnome-tweak-tool", line 84, in <module>
    MainWindow()
  File "/usr/bin/gnome-tweak-tool", line 47, in __init__
    model)
  File "/usr/lib64/python2.7/site-packages/gtweak/tweakview.py", line 38, in __init__
    self._model.load_tweaks()
  File "/usr/lib64/python2.7/site-packages/gtweak/tweakmodel.py", line 97, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib64/python2.7/site-packages/gtweak/tweaks/tweak_interface.py", line 85, in <module>
    CursorThemeSwitcher(size_group=sg)),
  File "/usr/lib64/python2.7/site-packages/gtweak/tweaks/tweak_interface.py", line 66, in __init__
    **options)
  File "/usr/lib64/python2.7/site-packages/gtweak/widgets.py", line 140, in __init__
    assert len(key_options) > 0

After commenting out these 2 assertions, it seems to work fine.  Now I've commented the assertions and added 2 statements:

        print schema_name + ", " + key_name
        print key_options

The tweak tool starts (and works fine), and the output is that:

% gnome-tweak-tool
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.desktop.interface>
org.gnome.desktop.interface, gtk-theme
[('Raleigh', 'Raleigh'), ('bubble', 'bubble'), ('Clearlooks', 'Clearlooks'), ('Crux', 'Crux'), ('Industrial', 'Industrial'), ('Mist', 'Mist'), ('Redmond', 'Redmond'), ('ThinIce', 'ThinIce'), ('Adwaita', 'Adwaita'), ('LowContrast', 'LowContrast'), ('HighContrast', 'HighContrast'), ('HighContrastInverse', 'HighContrastInverse')]
org.gnome.desktop.interface, icon-theme
[('Crux', 'Crux'), ('Mist', 'Mist'), ('gnome', 'gnome'), ('hicolor', 'hicolor'), ('Rodent', 'Rodent'), ('Tango', 'Tango'), ('locolor', 'locolor'), ('LowContrast', 'LowContrast'), ('HighContrast', 'HighContrast'), ('HighContrastInverse', 'HighContrastInverse')]
org.gnome.desktop.interface, cursor-theme
[]
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/titlebar_font> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/titlebar_font> (--long-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/titlebar_font> (--short-docs)
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.settings-daemon.plugins.xsettings>
org.gnome.settings-daemon.plugins.xsettings, hinting
[('none', 'None'), ('slight', 'Slight'), ('medium', 'Medium'), ('full', 'Full')]
org.gnome.settings-daemon.plugins.xsettings, antialiasing
[('none', 'None'), ('grayscale', 'Grayscale'), ('rgba', 'Rgba')]
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /desktop/gnome/shell/windows/theme> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /desktop/gnome/shell/windows/theme> (--long-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_double_click_titlebar> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_double_click_titlebar> (--long-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_middle_click_titlebar> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_middle_click_titlebar> (--long-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_right_click_titlebar> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /apps/metacity/general/action_right_click_titlebar> (--long-docs)
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.shell.clock>
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.shell.calendar>
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /desktop/gnome/shell/windows/button_layout> (--short-docs)
INFO    : Caching gconf: <gtweak.gconf.GConfSetting: /desktop/gnome/shell/windows/button_layout> (--long-docs)
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.settings-daemon.plugins.power>
INFO    : Caching gsettings: <gtweak.gsettings._GSettingsSchema: org.gnome.desktop.background>

So it seems the key cursor-theme is missing in org.gnome.desktop.interface.
Comment 1 Tassilo Horn 2011-05-03 09:09:41 UTC
The installed theme/schema packages are:

x11-themes/gnome-themes-standard-3.0.1
gnome-base/gsettings-desktop-schemas-3.0.1
Comment 2 Andreas Mielke 2011-05-03 10:09:04 UTC
Please sync the Gnome Overlay und emerge gnome-tweak-tool-3.0.3-r1.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-05-03 10:47:56 UTC
This is now fixed, thanks for reporting!
Comment 4 Tassilo Horn 2011-05-03 14:38:24 UTC
Confirmed, r1 works as expected.  Thank you!
Comment 5 IGARASHI Masanao 2011-05-04 11:16:39 UTC
Created attachment 272069 [details, diff]
fix for gentoo layout

Please apply this patch for gentoo layout.
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-05-05 03:07:31 UTC
(In reply to comment #5)
> Created attachment 272069 [details, diff]
> fix for gentoo layout
> 
> Please apply this patch for gentoo layout.

I already tried this approach, and it has problems. See the comments in the ebuild.