LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gdesklets - probably simple python issue (https://www.linuxquestions.org/questions/linux-newbie-8/gdesklets-probably-simple-python-issue-654028/)

sandaili 07-07-2008 03:54 AM

Gdesklets - probably simple python issue
 
I am running Fedora 9. It has by default 2.5 python I think. I installed compat-python24 to add python2.4, because that is what gdesklets needs (at least, I thought!)

Then I went through each of gdesklets files and wrote in python2.4 instead of just python. I have confirmed I have in my /usr/bin a folder called python2.4.

So....what am I doing wrong? I get this error when running gdeskelets:

gdesklets
Traceback (most recent call last):
File "/usr/bin/gdesklets", line 3, in ?
from main import client, DISPLAY, HOME, USERHOME
File "/usr/lib64/gdesklets/main/__init__.py", line 3, in ?
import utils
File "/usr/lib64/gdesklets/utils/__init__.py", line 3, in ?
import gtk
ImportError: No module named gtk

Can anyone help me? I just want gdesklets to work. I am not interested in screenlets or any other thing because I have favorite desklets I like.

L

Mega Man X 07-08-2008 01:54 PM

Quote:

Originally Posted by sandaili (Post 3206356)
I am running Fedora 9. It has by default 2.5 python I think. I installed compat-python24 to add python2.4, because that is what gdesklets needs (at least, I thought!)

Then I went through each of gdesklets files and wrote in python2.4 instead of just python. I have confirmed I have in my /usr/bin a folder called python2.4.

So....what am I doing wrong? I get this error when running gdeskelets:

gdesklets
Traceback (most recent call last):
File "/usr/bin/gdesklets", line 3, in ?
from main import client, DISPLAY, HOME, USERHOME
File "/usr/lib64/gdesklets/main/__init__.py", line 3, in ?
import utils
File "/usr/lib64/gdesklets/utils/__init__.py", line 3, in ?
import gtk
ImportError: No module named gtk

Can anyone help me? I just want gdesklets to work. I am not interested in screenlets or any other thing because I have favorite desklets I like.

L

Looks like python is trying to import a module for gtk (http://www.pygtk.org/, probably) and it can't find it. Try to install that first through your package manager and see if that helps. I would not be messing around with two different python environments if I were you. When something goes wrong you will need to track down the problem within two environments. But hey, that is just me =)


All times are GMT -5. The time now is 03:26 PM.