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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-09-2006, 06:17 PM
|
#1
|
LQ Newbie
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12
Rep:
|
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?
|
|
|
04-09-2006, 08:21 PM
|
#2
|
LQ Newbie
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
04-10-2006, 10:51 PM
|
#3
|
LQ Newbie
Registered: Mar 2006
Location: Missouri
Distribution: SuSE 10.0
Posts: 12
Original Poster
Rep:
|
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 11:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|