LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   gDesklets in SuSE 10.0 - "ImportError: No module named os" (http://www.linuxquestions.org/questions/linux-software-2/gdesklets-in-suse-10-0-importerror-no-module-named-os-433460/)

slong682000 04-09-2006 05:17 PM

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?

slong682000 04-09-2006 07:21 PM

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.

slong682000 04-10-2006 09:51 PM

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.


All times are GMT -5. The time now is 10:49 PM.