Nobutwhy Posted November 19, 2008 Share Posted November 19, 2008 I recently installed Ubuntu Intrepid. Yesterday, I booted to find that the Gnome-App-Install (Add/Remove) and the update manager, wouldn't start. After running gnome-app-install in the terminal, I recieved a few errors: root@mudtail:/home/maff# gnome-app-install /var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: could not import atk Traceback (most recent call last): File "/usr/bin/gnome-app-install", line 30, in <module> main() File "/usr/lib/python2.5/site-packages/AppInstall/activation.py", line 490, in main from AppInstall import AppInstall File "/usr/lib/python2.5/site-packages/AppInstall/AppInstall.py", line 30, in <module> import gtk.glade ImportError: cannot import name Widget from gtk I ran synaptic and reinstalled libgtk2.0 and libatk1.0-0, but I'm still getting the same errors, what's wrong and is there any way, short of a reinstall of ubuntu, to fix them? Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 It's an error in python. In the GTK library. Try to reinstall that python library. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 (edited) It's an error in python. In the GTK library. Try to reinstall that python library. I'm attempting to reinstall it now, thanks Edit: Reinstalling didn't work, I'm still experiencing the error. :( Edited November 19, 2008 by Maff130 Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 That application is made using python. In the error python outputs it says it cannot import the library "atk" nor "glade" from the "gtk" library. The issue is on those python modules. Why it's doing that is hard to tell. Maybe you've updated your python install, or some other components in the GTK lib and something went wrong? Did you updated the application too? Open a terminal and launch the python interpreter by typing "python". Then type: >>> import gtk >>> import gtk.glade >>> from gtk import _gtk >>> import atk See what errors it outputs. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 That application is made using python.In the error python outputs it says it cannot import the library "atk" nor "glade" from the "gtk" library. The issue is on those python modules. Why it's doing that is hard to tell. Maybe you've updated your python install, or some other components in the GTK lib and something went wrong? Did you updated the application too? Open a terminal and launch the python interpreter by typing "python". Then type: >>> import gtk >>> import gtk.glade >>> import atk See what errors it outputs. Seems to output the same errors, with one additional error when running `import atk` Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk /var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: could not import atk >>> import gtk.glade Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name Widget from gtk >>> import atk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /var/lib/python-support/python2.5/gtk-2.0/atk.so: undefined symbol: atk_hyperlink_impl_get_type >>> Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 Those python modules are pretty much messed up... :/ It may be a problem of compatibility between python-gtk and the GTK libs on your system. One depends on the other. Report it as a bug. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 Those python modules are pretty much messed up... :/It may be a problem of compatibility between python-gtk and the GTK libs on your system. One depends on the other. Report it as a bug. I'd report the bug if the app would launch.. Thanks anyway. :) Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 19, 2008 Veteran Share Posted November 19, 2008 Is this a standard install? Or have you installed some items manually (.tar.gz files or directly installing a .deb)? I find it hard to believe that "gnome-app-install" would be broken on all Intrepid systems, at least without there being a firestorm of flames for allowing this broken app to go through into the repos. I can try on my system when I get back home, but I am going to guess it is working, and that the problem may be related to a package installed outside the repos. Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 Mark what seems to be the case is that one library got updated and the other didn't. It all works from start, doesn't seem to be the case after updating. This is the thing about python programs, if the library from the system gets an update there may be compatibility issues if the python module doesn't also receive an update. What I would recommend to Maff130 is to run an update on everything. sudo apt-get update sudo apt-get upgrade A release of those modules should be in the server, if those aren't there, every program made in python that uses those same libraries would be broken. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 I ran apt-get update and upgrade, it tells me I'm fully up to date. I've installed several packages over the past few days, and I'm willing to bet that this is happening because I recently attempted to build GTK+2.10 from source, along with cairo and atk (which apparently wasn't installed) Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 19, 2008 Veteran Share Posted November 19, 2008 ... I'm willing to bet that this is happening because I recently attempted to build GTK+2.10 from source, along with cairo and atk (which apparently wasn't installed) It's where I would put my money. Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 19, 2008 Subscriber² Share Posted November 19, 2008 I ran apt-get update and upgrade, it tells me I'm fully up to date.I've installed several packages over the past few days, and I'm willing to bet that this is happening because I recently attempted to build GTK+2.10 from source, along with cairo and atk (which apparently wasn't installed) GTK+ in version 2.14.* comes with Ubuntu 8.10, as does a current version of cairo (1.8.x I believe). Way to mess up your system? Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 Attempted but couldn't or it was installed? If you are going to build things from source on an Ubuntu system be ready for things to break. Don't combine ones built from source with others from deb packages. Use the package manager to install software or change to another distro that doesn't use them. Mark buy a lottery ticket for today. ;) Link to comment Share on other sites More sharing options...
Tin Man Posted November 19, 2008 Share Posted November 19, 2008 Alright since we don't know exactly which packages were barfed by the compile try this sudo dpkg -l | grep -i gtk | more You're going to get a lot of output but what you're looking for is probably going to be libgtk something... then do sudo apt-get install --reinstall <whatever the libgtk name is> Then try to launch your GUI, failing that, try the same trick with the python libs. Good luck... Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 GTK+ in version 2.14.* comes with Ubuntu 8.10, as does a current version of cairo (1.8.x I believe).Way to mess up your system? I didn't know it came preinstalled with those. Attempting to compile a theme engine told me I didn't have them:(:( Alright since we don't know exactly which packages were barfed by the compile try this sudo dpkg -l | grep -i gtk | more You're going to get a lot of output but what you're looking for is probably going to be libgtk something... then do sudo apt-get install --reinstall <whatever the libgtk name is> Then try to launch your GUI, failing that, try the same trick with the python libs. Good luck... Thanks, I reinstalled both the GTK and python libraries, still the same error:(:( The only package that actuallmanagedi> to compile was ATK, the rest failed. I don't want to reinstall ubuntu, because it took me a while to get the b43 drivers running Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 19, 2008 Subscriber² Share Posted November 19, 2008 I didn't know it came preinstalled with those. Attempting to compile a theme engine told me I didn't have them. :( Compiling the theme engine failed because you didn't have the -dev package for GTK+ installed, not because the libraries themselves were missing. In addition to what Tin Man suggested try re-installing atk from the Ubuntu repositories. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 Compiling the theme engine failed because you didn't have the -dev package for GTK+ installed, not because the libraries themselves were missing.In addition to what Tin Man suggested try re-installing atk from the Ubuntu repositories. I just did, still no luck. Should I try and install the -dev package? Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 19, 2008 Subscriber² Share Posted November 19, 2008 I just did, still no luck. Should I try and install the -dev package? Installing the -dev package won't unbreak your Add/Remove Software applet etc. Instead try sudo apt-get install --reinstall ubuntu-desktop This will re-install Gnome and all of its dependencies. Hopefully. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 Installing the -dev package won't unbreak your Add/Remove Software applet etc. Instead try sudo apt-get install --reinstall ubuntu-desktop This will re-install Gnome and all of its dependencies. Hopefully. It just reinstalled the package ubuntu-desktop. I'm going through the dependencies list and reinstalling them all myself. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 19, 2008 Veteran Share Posted November 19, 2008 You could always sudo apt-get remove ubuntu-desktop then reinstall it. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 19, 2008 Author Share Posted November 19, 2008 You could always sudo apt-get remove ubuntu-desktopthen reinstall it. Wouldn't that remove every package that was dependent on ubuntu-desktop and/or it's dependencies? Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 19, 2008 Subscriber² Share Posted November 19, 2008 Wouldn't that remove every package that was dependent on ubuntu-desktop and/or it's dependencies? Hence the 'remove', yes. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 19, 2008 Veteran Share Posted November 19, 2008 Follow it up with a sudo apt-get install ubuntu-desktop silly :p Link to comment Share on other sites More sharing options...
Lechio Posted November 19, 2008 Share Posted November 19, 2008 I can see it now, GNOME desktop crashes, everything shuts down and drops to a shell. "What the *#*# happened ? :o " Don't panic, just reinstall it. Link to comment Share on other sites More sharing options...
Nobutwhy Posted November 20, 2008 Author Share Posted November 20, 2008 Hence the 'remove', yes. By that, I meant including OpenOffice.Org, Pidgin, etc., not just the base Ubuntu packages. :( I can see it now, GNOME desktop crashes, everything shuts down and drops to a shell. "What the *#*# happened ? :o " Don't panic, just reinstall it. I would already have reinstalled it, but the installation of BCM4312 wireless chip drivers isn't exactly the most painless install there is. ;-; Link to comment Share on other sites More sharing options...
Recommended Posts