Click on Sessing module generates "this module encountered an error while loading"

Bug #1002026 reported by Peco on 2012-05-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Low
Ding Zhou

Bug Description

Ubuntu 12.04 LTS

1) Install Ubuntu Tweak form official repos.
2) Select Tweaks->Session Indicator

3) I get:

This module encountered an error while loading.
Distribution: Ubuntu 12.04 precise
Application: Ubuntu Tweak 0.7.1-1~precise1
Desktop:ubuntu

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/main.py", line 497, in _load_module
    page = module()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/tweaks/session.py", line 49, in __init__
    key='com.canonical.indicator.session.user-show-menu')
ValueError: need more than 2 values to unpack

Related branches

Ding Zhou (tualatrix) wrote :

Thanks for your report.

Could you open the terminal, and run this command and give the outputs to me?

    python -c 'from ubuntutweak.factory import WidgetFactory;print WidgetFactory.create("Switch", label="indicator", enable_reset=True, backend="gsettings", key="com.canonical.indicator.session.user-show-menu")'

Changed in ubuntu-tweak:
status: New → Confirmed
assignee: nobody → Ding Zhou (tualatrix)
milestone: none → 0.7.2
importance: Undecided → Low
Peco (peco) wrote :

Thanks for answer.

Here you are:

python -c 'from ubuntutweak.factory import WidgetFactory;print WidgetFactory.create("Switch", label="indicator", enable_reset=True, backend="gsettings", key="com.canonical.indicator.session.user-show-menu")'

(-c:16176): GConf-WARNING **: : You can't use a GConfEngine that has an active GConfClient wrapper object. Use GConfClient API instead.

(-c:16176): GConf-WARNING **: : You can't use a GConfEngine that has an active GConfClient wrapper object. Use GConfClient API instead.
Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Initializing core options...done
[factory][ERROR]
Distribution: Ubuntu 12.04 precise
Application: Ubuntu Tweak 0.7.1-1~precise1
Desktop:ubuntu

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/factory.py", line 61, in do_composite_create
    new_widget = globals().get(widget)(**kwargs)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/gui/widgets.py", line 77, in __init__
    SettingWidget.__init__(self, key=key, default=default, type=bool, backend=backend)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/gui/widgets.py", line 25, in __init__
    self._setting = GSetting(key=key, default=default, type=type)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/gsettings.py", line 26, in __init__
    raise Exception('Oops, Settings schema "%s" is not installed' % self.schema_id)
Exception: Oops, Settings schema "com.canonical.indicator.session" is not installed
 (factory.py:63)
[None, None]

Ding Zhou (tualatrix) on 2012-05-22
Changed in ubuntu-tweak:
status: Confirmed → In Progress
Ding Zhou (tualatrix) on 2012-05-22
Changed in ubuntu-tweak:
status: In Progress → Fix Committed
Ding Zhou (tualatrix) on 2012-06-03
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers