2

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 ?

  • 2
    install the python gtk module. – jordanm Apr 16 '13 at 3:41
  • How to do so ? I tried using it but it is showing E: unable to locate package pygtk – tusharmakkar08 Apr 16 '13 at 4:46
  • The package is python-gtk2. – jordanm Apr 16 '13 at 4:54
  • It is already installed on my computer.It is showing : Reading package lists... Done Building dependency tree Reading state information... Done python-gtk2 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. </pre> – tusharmakkar08 Apr 16 '13 at 4:55
  • Try python2-gtk2, maybe python-gobject-2. Python version might be wrong against the module version. Alternatively, you may want to check which package provides pygtk.py and install more of them: sudo apt-get install apt-file, sudo apt-file update, apt-file search pygtk.py. Try running python and typing import pygtk on your own to check if it works. – TNW Apr 16 '13 at 6:14
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.