The scripts try to import gtk, but python-gtk is not installed on kubuntu

Bug #673733 reported by Tobin Davis
24
This bug affects 7 people
Affects Status Importance Assigned to Milestone
screen-resolution-extra (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: screen-resolution-extra

The scripts in /usr/share/screen-resolution-extra/ import gtk, but the python-gtk2 package is not installed by default on kubuntu. This should be added as a dependency to this package.

The following error is from trying to save xorg.conf from nvidia-settings when python-gtk2 is missing:

Traceback (most recent call last):
  File "/usr/share/screen-resolution-extra/nvidia-polkit.py", line 20, in <module>
    import gtk, gobject, sys, dbus, logging, os, re
ImportError: No module named gtk

After installing python-gtk2, everything is fine.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: screen-resolution-extra 0.14
ProcVersionSignature: User Name 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Nov 10 12:37:22 2010
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: screen-resolution-extra

Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in screen-resolution-extra (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package screen-resolution-extra - 0.14ubuntu2

---------------
screen-resolution-extra (0.14ubuntu2) precise; urgency=low

  * Finish conversion to dh_python2. Fixes issue where none of
    screen-resolution-extra's files are installed, which prevents nvidia
    config from making changes to xorg.conf.
    (LP: #913690)
  * Add dependency on policykit-gnome since some scripts use gtk policykit,
    which won't work on KDE where gtk2 may not be installed by default.
    (LP: #673733, #454261)
 -- Bryce Harrington <email address hidden> Mon, 09 Jan 2012 03:39:12 -0800

Changed in screen-resolution-extra (Ubuntu):
status: Confirmed → 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.