LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2008, 03:54 AM   #1
sandaili
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
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
 
Old 07-08-2008, 01:54 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by sandaili View Post
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 =)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pyorbit version issue with gdesklets on FC5 GPD1310 Linux - Software 3 05-25-2006 08:11 PM
Gentoo python problem (btdownload, gdesklets etc.) teek Linux - Distributions 2 10-16-2005 03:05 PM
gDesklets: could not find Python headers revenge80200 Linux - Software 5 08-22-2004 10:18 PM
gDesklets Python dependency issues aresnomad Linux - Newbie 2 06-28-2004 06:16 PM
gDesklets, pyGTK, gnome-python ilhbutshm Slackware 4 12-11-2003 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration