unity-tweak-tool crashed with AttributeError in refresh(): 'NoneType' object has no attribute 'get_boolean'

Bug #1155331 reported by Francis Ricardo
222
This bug affects 40 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
Fix Released
Medium
J Phani Mahesh
unity-tweak-tool (Ubuntu)
Fix Released
Medium
J Phani Mahesh

Bug Description

no

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: unity-tweak-tool 0.0.3-0~85~raring1 [origin: LP-PPA-freyja-dev-unity-tweak-tool-daily]
ProcVersionSignature: Ubuntu 3.8.0-12.21-generic 3.8.2
Uname: Linux 3.8.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
CrashCounter: 1
CrashDB: {"impl": "launchpad", "project": "unity-tweak-tool"}
Date: Thu Mar 14 18:04:53 2013
ExecutablePath: /usr/bin/unity-tweak-tool
InstallationDate: Installed on 2013-03-13 (1 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130313)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/unity-tweak-tool
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/unity-tweak-tool']
SourcePackage: unity-tweak-tool
Title: unity-tweak-tool crashed with AttributeError in refresh(): 'NoneType' object has no attribute 'get_boolean'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Francis Ricardo (francys-ricardo) wrote :
Changed in unity-tweak-tool:
status: New → Triaged
Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

Can you run the following command in a terminal?

      dpkg --get-selections |grep unity-lens-files

It should report:
      unity-lens-files install

Does the output match? Your system seems to have the package unity-lens-files uninstalled. (That is my initial guess)

This bug is due to some section of code that is being rewritten to prevent bugs and for better maintainability.
I will try my best to fix the bug in less than a week from now. Thanks for your interest in unity-tweak-tool.

When fixed, the tool will 'grey-out' the settings that are problematic or missing and continue to function normally.

information type: Private → Public
Changed in unity-tweak-tool:
status: Triaged → Fix Committed
assignee: nobody → J Phani Mahesh (phanimahesh)
importance: Undecided → Medium
Changed in unity-tweak-tool:
status: Fix Committed → Fix Released
Revision history for this message
Dat O (datokakava) wrote :

I've installed latest build of raring(amd64) today. installed UTT, but the same bug exists, tried to reinstall it and also reinstall unity-lens-files, but with no luck.

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

This bug has been fixed in the PPA but is yet to be released in the repository. Can you confirm if you have our PPA enabled?

Also, it would help if you attached the output when the program is run from a terminal.

Changed in unity-tweak-tool (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → J Phani Mahesh (phanimahesh)
tags: removed: need-duplicate-check
Revision history for this message
Dat O (datokakava) wrote :

yes, it works through ppa. i had before the one from software center.
cheers

Revision history for this message
Paulo Novais (valeptb) wrote :

For me too. It works from PPA.
Thank you.

Revision history for this message
xelatirdan (xelatirdan) wrote :

Hi i am have this troble to:

Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 57, in <module>
    UnityTweakTool.init()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 119, in init
    connectpages()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 56, in connectpages
    from UnityTweakTool.section.unity import Unity
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/unity.py", line 124, in <module>
    Unity.add_page(unitysettings)
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/skeletonpage.py", line 47, in add_page
    page.refresh()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/elements/option.py", line 62, in refresh
    self.ho.refresh()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/sphagetti/unity.py", line 214, in refresh
    if gsettings.datetime.get_boolean('show-clock') == True:
AttributeError: 'NoneType' object has no attribute 'get_boolean'

Revision history for this message
xelatirdan (xelatirdan) wrote :

Please may you ask how me install UTT from your PPA?

Revision history for this message
Dat O (datokakava) wrote :

sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily
sudo apt-get update && sudo apt-get install unity-tweak-tool

If you use askubuntu.com or ubuntu community on google plus for such things, you will get quick replies- just a suggestion.

Revision history for this message
xelatirdan (xelatirdan) wrote :

Thank you

Changed in unity-tweak-tool (Ubuntu):
milestone: none → ubuntu-13.04
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-tweak-tool - 0.0.4

---------------
unity-tweak-tool (0.0.4) raring; urgency=medium

  [ Barneedhar Vigneshwar ]
  * New upstream release (LP: #1165141)
  * data/windowmanager.ui
    - Fix missing signal in the auto-raise switch (LP: #1160782)
  * UnityTweakTool/section/sphagetti/theme.py
    - Fix KeyError when fetching window themes (LP: #1146122)
  * UnityTweakTool/section/unity.py
    - Fix show-desktop switch (LP: #1156266)
    - Fix 'switch between workspace' switch (LP: #1156236)

  [ J Phani Mahesh ]
  * debian/source_unity-tweak-tool.py
    - Update Apport hook to file crash bugs against the package by default
  * setup.py
    - Install translated pot files
  * unity-tweak-tool
    - Fixed and renamed -r parameter to --reset-unity in the wrapper
  * UnityTweakTool/__init__.py
    - Prevent multiple instances using dbus
  * UnityTweakTool/elements/radio.py
    - Fix AssertionError in __init__() (LP: #1156201)
    - Fix AssertionError due to missing overlay-scrollbar package (LP: #1156337)
  * UnityTweakTool/section/sphagetti/compiz.py
    - Fix resetting transparency values (LP: #1099067)
  * UnityTweakTool/section/sphagetti/unity.py
    - Fix AttributeError in refresh(): 'NoneType' object has no attribute 'get_boolean' (LP: #1155331)

  [Sam Hewitt]
  * debian/control
    - Added dependency on python3-cairo (LP: #1156789)
  * UnityTweakTool/section/sphagetti/unity.py
    - Fixed unresponsive 'battery-life' switch (LP: #1129262)
 -- Barneedhar Vigneshwar <email address hidden> Fri, 05 Apr 2013 23:05:49 +0530

Changed in unity-tweak-tool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.