unity-tweak-tool crashed with KeyError in refresh(): 'Bright'

Bug #1146122 reported by Per-Inge
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
Fix Released
Medium
Barneedhar
unity-tweak-tool (Ubuntu)
Fix Released
Medium
Barneedhar

Bug Description

I played around with unity-tweak-tool and tweak-tool. Used tweak-tool to look at combinations of gtk+ themes and window themes.
Worked with some combinations, but unity-tweak-tool crashed with the combination Adwaita and Bright.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: unity-tweak-tool 0.0.3-0~72~quantal1
ProcVersionSignature: Ubuntu 3.8.0-9.18-generic 3.8.1
Uname: Linux 3.8.0-9-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9-0ubuntu2
Architecture: amd64
CrashDB: {"impl": "launchpad", "project": "unity-tweak-tool"}
Date: Tue Mar 5 07:05:32 2013
ExecutablePath: /usr/bin/unity-tweak-tool
InstallationDate: Installed on 2012-10-28 (127 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/unity-tweak-tool
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/unity-tweak-tool']
SourcePackage: unity-tweak-tool
Title: unity-tweak-tool crashed with KeyError in refresh(): 'Bright'
UpgradeStatus: Upgraded to raring on 2013-02-18 (14 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Per-Inge (per-inge-hallin) wrote :
information type: Private → Public
Revision history for this message
Barneedhar (barneedhar) wrote :

You seem to be using an older version of unity-tweak-tool. Can you update your system and check if you can still reproduce the bug?

Changed in unity-tweak-tool:
status: New → Incomplete
Revision history for this message
Per-Inge (per-inge-hallin) wrote : Re: [Bug 1146122] Re: unity-tweak-tool crashed with KeyError in refresh(): 'Bright'

Sorry,
the ppa was disabled when I upgraded to Raring and I used an old
version. I will report back as soon as the system is updated.

On 03/05/2013 02:59 PM, Barneedhar wrote:
> You seem to be using an older version of unity-tweak-tool. Can you
> update your system and check if you can still reproduce the bug?
>
> ** Changed in: unity-tweak-tool
> Status: New => Incomplete
>

Revision history for this message
Per-Inge (per-inge-hallin) wrote :

Updated the system.
Installed version of unity-tweak-tool is 0.0.3~84~raring1.

Unity-tweak-tool will not start. This is the terminal printout:
p-i@pi-GA-990FXA-UD3-1304:~$ unity-tweak-tool
Initialising...
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 59, in connectpages
     from UnityTweakTool.section.appearance import Appearance
   File
"/usr/lib/python3/dist-packages/UnityTweakTool/section/appearance.py",
line 213, in <module>
     Appearance.add_page(themesettings)
   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/theme.py",
line 122, in refresh
windowthemesel.select_iter(self.windowthemes[windowtheme]['iter'])
KeyError: 'Bright'
p-i@pi-GA-990FXA-UD3-1304:~$

On 03/05/2013 03:41 PM, Per-Inge wrote:
> Sorry,
> the ppa was disabled when I upgraded to Raring and I used an old
> version. I will report back as soon as the system is updated.
>
> On 03/05/2013 02:59 PM, Barneedhar wrote:
>> You seem to be using an older version of unity-tweak-tool. Can you
>> update your system and check if you can still reproduce the bug?
>>
>> ** Changed in: unity-tweak-tool
>> Status: New => Incomplete
>>

Revision history for this message
Barneedhar (barneedhar) wrote :

Thank you. I have committed the fix for this bug. The bug fix should land in the PPA in less than a day.

Changed in unity-tweak-tool:
assignee: nobody → Barneedhar (barneedhar)
importance: Undecided → Medium
status: Incomplete → Fix Committed
Revision history for this message
Per-Inge (per-inge-hallin) wrote :

Updated to 0.0.3-0~85~raring1.
Unity-tweak-tool starts OK now. However there are not as many alternativs as in tweak-tool.
In unity-tweak-tool it is possible to select
Adwaita Adwaita
Ambiance Ambiance
Highcontrast Highcontrast
Radiance Radiance
In tweak-tool it is possible to select any combination of Gtk+ Theme and Current theme. See available Current themes in the attached picture.

Revision history for this message
Barneedhar (barneedhar) wrote :

Hi Per-Inge,
We are actually working on allowing users to select a wide range of themes.
It currently is an implementation restriction.

Thanks,
Barneedhar.

On 7 March 2013 16:21, Per-Inge <email address hidden> wrote:

> Updated to 0.0.3-0~85~raring1.
> Unity-tweak-tool starts OK now. However there are not as many alternativs
> as in tweak-tool.
> In unity-tweak-tool it is possible to select
> Adwaita Adwaita
> Ambiance Ambiance
> Highcontrast Highcontrast
> Radiance Radiance
> In tweak-tool it is possible to select any combination of Gtk+ Theme and
> Current theme. See available Current themes in the attached picture.
>
>
>
> ** Attachment added: "Current themes available in tweak-tool"
>
> https://bugs.launchpad.net/unity-tweak-tool/+bug/1146122/+attachment/3561836/+files/Screenshot%20from%202013-03-07%2011%3A42%3A57.png
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1146122
>
> Title:
> unity-tweak-tool crashed with KeyError in refresh(): 'Bright'
>
> Status in Unity Tweak Tool:
> Fix Committed
>
> Bug description:
> I played around with unity-tweak-tool and tweak-tool. Used tweak-tool to
> look at combinations of gtk+ themes and window themes.
> Worked with some combinations, but unity-tweak-tool crashed with the
> combination Adwaita and Bright.
>
> ProblemType: Crash
> DistroRelease: Ubuntu 13.04
> Package: unity-tweak-tool 0.0.3-0~72~quantal1
> ProcVersionSignature: Ubuntu 3.8.0-9.18-generic 3.8.1
> Uname: Linux 3.8.0-9-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.9-0ubuntu2
> Architecture: amd64
> CrashDB: {"impl": "launchpad", "project": "unity-tweak-tool"}
> Date: Tue Mar 5 07:05:32 2013
> ExecutablePath: /usr/bin/unity-tweak-tool
> InstallationDate: Installed on 2012-10-28 (127 days ago)
> InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64
> (20121017.5)
> InterpreterPath: /usr/bin/python3.3
> MarkForUpload: True
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python3 /usr/bin/unity-tweak-tool
> ProcEnviron:
> PATH=(custom, no user)
> XDG_RUNTIME_DIR=<set>
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/bin/unity-tweak-tool']
> SourcePackage: unity-tweak-tool
> Title: unity-tweak-tool crashed with KeyError in refresh(): 'Bright'
> UpgradeStatus: Upgraded to raring on 2013-02-18 (14 days ago)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/unity-tweak-tool/+bug/1146122/+subscriptions
>

Changed in unity-tweak-tool:
status: Fix Committed → Fix Released
Revision history for this message
Per-Inge (per-inge-hallin) wrote :

That will be nice to have.
Something to look forward too.

Thanks/Per-Inge

On 03/07/2013 03:49 PM, Barneedhar wrote:
> Hi Per-Inge,
> We are actually working on allowing users to select a wide range of themes.
> It currently is an implementation restriction.
>
> Thanks,
> Barneedhar.
>
>
> On 7 March 2013 16:21, Per-Inge <email address hidden> wrote:
>
>> Updated to 0.0.3-0~85~raring1.
>> Unity-tweak-tool starts OK now. However there are not as many alternativs
>> as in tweak-tool.
>> In unity-tweak-tool it is possible to select
>> Adwaita Adwaita
>> Ambiance Ambiance
>> Highcontrast Highcontrast
>> Radiance Radiance
>> In tweak-tool it is possible to select any combination of Gtk+ Theme and
>> Current theme. See available Current themes in the attached picture.
>>
>>
>>
>> ** Attachment added: "Current themes available in tweak-tool"
>>
>> https://bugs.launchpad.net/unity-tweak-tool/+bug/1146122/+attachment/3561836/+files/Screenshot%20from%202013-03-07%2011%3A42%3A57.png
>>
>> --
>> You received this bug notification because you are a bug assignee.
>> https://bugs.launchpad.net/bugs/1146122
>>
>> Title:
>> unity-tweak-tool crashed with KeyError in refresh(): 'Bright'
>>
>> Status in Unity Tweak Tool:
>> Fix Committed
>>
>> Bug description:
>> I played around with unity-tweak-tool and tweak-tool. Used tweak-tool to
>> look at combinations of gtk+ themes and window themes.
>> Worked with some combinations, but unity-tweak-tool crashed with the
>> combination Adwaita and Bright.
>>
>> ProblemType: Crash
>> DistroRelease: Ubuntu 13.04
>> Package: unity-tweak-tool 0.0.3-0~72~quantal1
>> ProcVersionSignature: Ubuntu 3.8.0-9.18-generic 3.8.1
>> Uname: Linux 3.8.0-9-generic x86_64
>> NonfreeKernelModules: nvidia
>> ApportVersion: 2.9-0ubuntu2
>> Architecture: amd64
>> CrashDB: {"impl": "launchpad", "project": "unity-tweak-tool"}
>> Date: Tue Mar 5 07:05:32 2013
>> ExecutablePath: /usr/bin/unity-tweak-tool
>> InstallationDate: Installed on 2012-10-28 (127 days ago)
>> InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64
>> (20121017.5)
>> InterpreterPath: /usr/bin/python3.3
>> MarkForUpload: True
>> PackageArchitecture: all
>> ProcCmdline: /usr/bin/python3 /usr/bin/unity-tweak-tool
>> ProcEnviron:
>> PATH=(custom, no user)
>> XDG_RUNTIME_DIR=<set>
>> LANG=en_US.UTF-8
>> SHELL=/bin/bash
>> PythonArgs: ['/usr/bin/unity-tweak-tool']
>> SourcePackage: unity-tweak-tool
>> Title: unity-tweak-tool crashed with KeyError in refresh(): 'Bright'
>> UpgradeStatus: Upgraded to raring on 2013-02-18 (14 days ago)
>> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/unity-tweak-tool/+bug/1146122/+subscriptions
>>
>
> ** Changed in: unity-tweak-tool
> Status: Fix Committed => Fix Released
>

Barneedhar (barneedhar)
Changed in unity-tweak-tool (Ubuntu):
status: New → Fix Committed
assignee: nobody → Barneedhar (barneedhar)
importance: Undecided → Medium
tags: removed: need-duplicate-check
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.