screen-resolution-extra is missing dependency on python-gtk2

Bug #614621 reported by Nick Terry
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
screen-resolution-extra (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: screen-resolution-extra

This is related to Bug #575313.

I'm am running Kubuntu lucid

$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

nvidia-settings is unable to save settings to /etc/X11/xorg.conf. It exits with this error:

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

ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.

installing python-gtk2 fixed the issue.

It looks as though screen-resolution-extra is missing this dependency. Once python-gtk2 is installed, a dialog box pops up to prompt for the password.

Revision history for this message
Helmut Hanning (h-hanning) wrote :

The problem still exists in maverick.

[user]@[system]:~$ kdesudo nvidia-settings
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/usr/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
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

ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.

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
Ruslan (b7-10110111) wrote :

In fact, gtk & gobject dependencies can be cut off, see this: http://kubuntuforums.net/forums/index.php?topic=3114992.0;wap2

Revision history for this message
Bruce Pieterse (octoquad) wrote :

This bug is over a year old, but can easily be fixed with Ruslan's link.

I think that pkg-config should be bundled with the driver when installing and that the import line for gtk and gobject be removed from /usr/share/screen-resolution-extra/nvidia-polkit.py.

Revision history for this message
Bruce Pieterse (octoquad) wrote :

Problem still persists with Kubunutu 11.10.

Revision history for this message
lnxusr (bjwest) wrote :

Is anyone even working on fixing bugs in Ubuntu? This is a problem over a year old that is such an easy fix it could be done in a matter of minutes. Just add the dependency to the .deb file, and it's done.

You wonder why people are laving Ubuntu? It's because the developers are more interested in adding features THEY want, rather than listening to the users desires, and fixing bugs. There was a time when Ubuntu was the cream of the crop for Linux distros. Now, it's made up of a bunch of committees playing politics for their own pet projects disregarding what the community really needs, much less desires.

Stop adding new features and take a look at the enormous list of bugs and problems. Concentrate on those before adding more crap that will do nothing more than distance your users and introduce yet more bugs and problems.

Revision history for this message
Peter Quiring (pquiring) wrote :

Just to post the fix in here:

1) sudo %favoriteEditor% /usr/share/screen-resolution-extra/nvidia-polkit.py
2) change
   import gtk, gobject, sys, dbus, logging, os, re
to:
   import sys, dbus, logging, os, re
gtk is not needed to edit xorg.conf, lol
3)
nvidia-settings prints: pkg-config not found
   apt-get install pkg-config

Hopefully gets fixed in kubuntu 12.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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