ImportError: No module named gtk.SoftwarePropertiesGtk

Bug #361180 reported by Jon-o Addleman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is very similar to some other bugs, but the exact error message is different, so I'm opening a new bug.

When I try to "run gksu --desktop /usr/share/applications/software-properties.desktop /usr/bin/software-properties-gtk", I get the following error:

Traceback (most recent call last): File "/usr/bin/software-properties-gtk", line 44, in <module>
    from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
ImportError: No module named gtk.SoftwarePropertiesGtk

This is just after upgrading to the jaunty beta.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: software-properties-gtk 0.71.5
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: software-properties
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Jon-o Addleman (jaddle) wrote :
Revision history for this message
Jon-o Addleman (jaddle) wrote :

After finding a slew of other upgrade-related problems, I gave up and reinstalled jaunty from scratch instead. This, and most of the other issues, have cleared up now... Feel free to close this bug.

Revision history for this message
Tony Sam (samant-ua) wrote :

I had exactly the same problem and solved it by reinstalling all dependencies for software-properties-gtk package: python, python-central, synaptic, gksu, python-software-properties, python-glade2, python-gtk2, update-manager and software-properties-gtk itself. Everything is well now!

Revision history for this message
Matt Burkhardt (matthewboh) wrote :

I had the exact same problem and had to run the following from the terminal

Applications | Accessories | Terminal

Add the following line to my /etc/apt/sources.list file by typing

sudo nano /etc/apt/sources.list

Here's the line that I added

deb-src http://archive.ubuntu.com/ubuntu/ jaunty main universe restricted

then by running

sudo apt-get update
sudo apt-get build-dep software-properties-gtk

and it fixed everything

Revision history for this message
Matt Burkhardt (matthewboh) wrote :

Sorry - I lied - didn't fix a thing! Still having the same problem

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This should be fixed in karmic. Can you please run:
$ sudo pycentral -v pkginstall software-properties-gtk
and attach the output and see if that fixes the problem?

Changed in software-properties (Ubuntu):
status: New → Incomplete
Revision history for this message
geirhelge (ubuntu-wormhole) wrote :

Hi.

I had the same problem after upgrading from Intrepid to Jaunty. Tried running pycentral as sugested by Michael:
$ sudo pycentral -v pkginstall software-properties-gtk
pycentral: pycentral -v pkginstall software-properties-gtk
pycentral: reading /usr/share/pyshared-data/software-properties-gtk
pycentral: dpkg-query -s software-properties-gtk
pycentral: avail=['2.5', '2.6'], pkg=>= 2.4, install=['2.5', '2.6']
pycentral: install package software-properties-gtk
pycentral: link shared files python2.5/software-properties-gtk
pycentral: byte-compile files (11/11) python2.5
pycentral: ['/usr/lib/python2.5/site-packages/softwareproperties/gtk/CdromProgress.py', '/usr/lib/python2.5/site-packages/softwareproperties/gtk/DialogAdd.py', '...']
pycentral: link shared files python2.6/software-properties-gtk
pycentral: byte-compile files (11/11) python2.6
pycentral: ['/usr/lib/python2.6/dist-packages/softwareproperties/gtk/CdromProgress.py', '/usr/lib/python2.6/dist-packages/softwareproperties/gtk/DialogAdd.py', '...']

Still get the same error when trying to run gksu. Then I came over another bug that gave me a solution:
$ sudo apt-get install --reinstall python-apt update-manager-core update-manager python python-central synaptic gksu python-software-properties python-glade2 python-gtk2 software-properties-gtk
$ sudo apt-get update && sudo apt-get upgrade
$ sudo dpkg-reconfigure python-software-properties
ref: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/319714

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Assuming fixed in karmic.
If this is still an issue in Ubuntu 9.10, please reopen this report.

Changed in software-properties (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Matt Burkhardt (matthewboh) wrote :

I just successfully ran this in 9.10 - keep it closed

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.