ImportError: No module named gtk
173
sudo apt-get install python-gtk2
should fix this. These are the python bindings for GTK, which is a graphical package used to build the GUI for software-center.
axi is something else entirely, try typing
sudo apt-get install afnix
into a terminal and see if that fixes it.
Related videos on Youtube
Author by
Hugo
Updated on September 18, 2022Comments
-
Hugo over 1 year
How do I change it so that instead of it being 1 2 it is 1 - 2.
Here's the code:
$page = $_GET['p']; for($i = 1; $i <= $totalpages; $i++){ if ( $page == $i ) { echo "<b>$i</b>"; } else { echo "<a href='?p=$i'>$i</a>-"; }
At the moment with the - at the end it comes up as 1-2- but I want it to be 1-2 instead.
Thanks in advance.
-
Yuriy Leonov about 3 yearsFor ubuntu 20.04 - askubuntu.com/questions/1235271/…
-
-
Hugo about 13 yearsThanks a lot but when I go to mywebsite.com/?p=1 it shows up as 1 2.. Any ideas?
-
Hugo about 13 yearsHang on, it does work. It might've just been the page load time?
-
Dalmas about 13 yearsProbably something with your browser's cache.
-
Rick_2047 almost 13 yearsI reinstalled a bunch of python packages, now software center is working but afnix did not solve the axi problem. The search bar that is supposed to be present on top is not there
-
John Lyon almost 13 yearsWhen you say "It has something to do with module named axi.", what specifically does it tell you? Does running
sudo synaptic
from the command line throw errors or warnings mentioning axi? Feel free to edit your original question with the detail. -
Rick_2047 almost 13 yearsIts working now, I reinstalled everything related to axi.
-
John Lyon almost 13 yearsNo worries, consider adding what you did as an answer in case other people come across the same problem as you.
-
Steve Kroon almost 9 yearsI still get the "ImportError: No module named gtk" when running fslint-gui, even though I do have python-gtk2 and python-gtk2-dev installed. Suggestions? (I also get the error in the Python interpreter.)
-
John Lyon almost 9 years@SteveKroon this normally happens if you're using multiple versions of python on the same machine - you may need to install python-gtk manually for the python version you're having trouble with. Feel free to open another question if you're still having trouble as I think it's a different issue.
-
Steve Kroon almost 9 years@jozzas: Yeah, turns out the problem was I have anaconda installed, and then the gtk module is not on the path when fslint-gui launches python with "#!/usr/bin/env python". I did a hacky fix of changing that to specify the system-wide python, but that will break when the fslint package gets a new update, I guess. Would be nice to have a more robust fix.