LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2006, 06:17 PM   #1
slong682000
LQ Newbie
 
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12

Rep: Reputation: 0
Angry gDesklets in SuSE 10.0 - "ImportError: No module named os"


I am attempting in reinstall gDesklets-0.35.3 on SuSE 10.0 using a RPM from rpm.pbone.net for my distro. It will install fine through YAST. However, when I try to run the application (gdesklets shell), the following error message appears:

:~> gdesklets shell
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/opt/gnome/bin/gdesklets", line 3, in ?
from main import client, DISPLAY, HOME, USERHOME
File "/opt/gnome/lib/gdesklets/main/__init__.py", line 1, in ?
import os
ImportError: No module named os

The called out lines in the scripts are as follows:

/opt/gnome/bin/gdesklets", line 3, - from main import client, DISPLAY, HOME, USERHOME

/opt/gnome/lib/gdesklets/main/__init__.py - import os

I did have have gDesklets working until I attempted to load the gDesklets-rssgrab, gDesklets-DisplayConstraints and Python-libs RPMs required for a particular desklet (the last two were dependencies for rssgrab). After successfully loading those RPMs (I thought), gDesklets stopped working. Thinking that they had caused the issue, I de-installed, through YAST, all of them and am now having the problem trying to just re-install gDesklets.

Any ideas?
 
Old 04-09-2006, 08:21 PM   #2
slong682000
LQ Newbie
 
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, went back and reinstalled the gDesklets-rssgrab, gDesklets-DisplayConstraints and Python-libs RPMs in case I had accidently installed them incorrectly to begin with and then jacked up something royally by de-installing them. The error message that I get when trying to run gDesklets has now changed. What I am seeing now is:

:~> gdesklets shell
Traceback (most recent call last):
File "/opt/gnome/bin/gdesklets", line 3, in ?
from main import client, DISPLAY, HOME, USERHOME
File "/opt/gnome/lib/gdesklets/main/__init__.py", line 3, in ?
import utils
File "/opt/gnome/lib/gdesklets/utils/__init__.py", line 5, in ?
import string
ImportError: No module named string


The called out lines in this time in the scripts are as follows:

/opt/gnome/bin/gdesklets", line 3, - from main import client, DISPLAY, HOME, USERHOME

/opt/gnome/lib/gdesklets/main/__init__.py, line 3 - import utils

/opt/gnome/lib/gdesklets/utils/__init__.py", line 5 - import string

I'm not quite sure why now it can import the "os" and now can't find a "string", much less where or what that string is supposed to be.
 
Old 04-10-2006, 10:51 PM   #3
slong682000
LQ Newbie
 
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, this turned out to be a Python issue which I believe originated when I loaded the python-libs RPM. Via YAST, I de-installed all python packages and then reinstalled all but the python-libs package. What do you know? All of a sudden gDesklets started working.

I'm not quite sure what the python-libs package did to my system, but it was also keeping adesklets from working as well. I loaded adesklets as a last ditch attempt to get some desklets. I don't know if this will help anybody else, but either there was a problem with this RPM (python-libs-2.4.2-6.i586.rpm, downloaded from rpm.pbone.net for the SuSE 10.x distro) or if there is just a problem with SuSE and the python-libs package.
 
  


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
gDesklets "ImportError" michapma Linux - Software 2 11-29-2005 11:24 AM
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 01:48 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 04:07 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 10:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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