View Full Version : ImportError: No module named rsvg
lroque
October 3rd, 2007, 04:29 PM
Hi, I've just installed Screenlets v0.0.10 and when I try to execute any screenlet I get the following messages:
------------------------------------------------------------------------------------------------------------------
[lroque@appserver ClearWeather]$ ./ClearWeatherScreenlet.py
Traceback (most recent call last):
File "./ClearWeatherScreenlet.py", line 8, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 33, in ?
import rsvg
ImportError: No module named rsvg
------------------------------------------------------------------------------------------------------------------
Can anybody help me?
I'm running Screenlets on Red Hat AS 5.0
Thanks,
Luis.
xkero
October 22nd, 2007, 10:59 PM
I also have this problem on Kubuntu Feisty, but only on my laptop. It works fine on my desktop (which is also Kubuntu Feisty), but I can't remember or find out what package I'm missing.
P.S. I have librsvg2-2, librsvg2-bin, librsvg2-common and librsvg2-dev installed on both systems. Could it be that I'm missing a python binding package for this?
c_medic
October 23rd, 2007, 06:52 AM
Hi I have a similar problem,
(also sorry for duping from the main screenlets forum)
I have installed screenlets in a new version of ubuntu gutsy (all up to date) & I have all of the requirements satisfied (newest version installed)
It works fine on my desktop computer, but not on my laptop...
when i run screenlets-manager i get the following error:
$ screenlets-manager
Traceback (most recent call last):
File "/usr/local/share/screenlets-manager/screenlets-manager.py", line 22, in ?
import gtk, gobject
ImportError: No module named gtk
i have tried inserting
import pygtk
pygtk.require('2.0')
but that gives me the ImportError: no module named pygtk.
I am pretty sure this is a similar problem, but I'm kinda new to this so I may be way off...
so, here's where it gets interesting (i think).
I routinely use pymol for school, and it has a python console, when i type "run /usr/local/share/screenlets-manager/screenlets-manager.py" into that console the screenlets manager window appears, but cannot connect to the daemon.
my question is, how can I make this screenlets-manager work on my system? does this pymol test indicate that I have the right files? and is there any way to further narrow down the problem?
Thank you for your help, I would really like to add this to my computer.
(if it matters the computer is a Dell inspiron 9400 running Ubuntu7.10)
-C
zish
October 25th, 2007, 04:21 PM
I'm running Kubuntu/Gutsy, and had the same issue with rsvg. There is a missing dependency when dealing with Kubuntu. I found out that the package 'python-gnome2-desktop' needs to be installed in order for screenlets to properly work. After this was installed, everything is kosher.
I have to assume that this issue is non-existent in the default Ubuntu Desktop Distro, which pre-depends on the above package (hence why some of us just couldn't get it to work, and were wondering how in %$&* anyone else was able to).
-----
Jeremy
vBulletin® v3.8.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.