Whenever I try to open guake it shows the following error
Traceback (most recent call last): File "/usr/bin/guake", line 24, in import pygtk ImportError: No module named pygtk
How to remove this error and make guake run properly ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityWhenever I try to open guake it shows the following error
Traceback (most recent call last): File "/usr/bin/guake", line 24, in import pygtk ImportError: No module named pygtk
How to remove this error and make guake run properly ?
I think your system default python is Python3.x, type
$ which python
$ which guake
/usr/bin/guake
And change the #! /usr/bin/python
in /usr/bin/guake
to #! /usr/bin/python2.7
. Note that guake can be runed just on Python2.x, and the pygtk is just support Python2.x.
python-gtk2
.python2-gtk2
, maybepython-gobject-2
. Python version might be wrong against the module version. Alternatively, you may want to check which package providespygtk.py
and install more of them:sudo apt-get install apt-file
,sudo apt-file update
,apt-file search pygtk.py
. Try runningpython
and typingimport pygtk
on your own to check if it works.