View Full Version : can't start Screenlets
Be_Linux
August 21st, 2007, 09:16 AM
i'm new user with Screenlets
i'm useing Debian etch 4.0
compiz
after i install Screenlets how can i run it ?
i try to run screenlets-manager ..... i got this on the screen
Traceback (most recent call last):
File "/usr/local/share/screenlets-manager/screenlets-manager.py", line 23, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 27, in ?
pygtk.require('2.0')
File "/var/lib/python-support/python2.4/pygtk.py", line 69, in require
assert not sys.modules.has_key('gtk'), \
AssertionError: pygtk.require() must be called before importing gtk
and i'm trying to typ this
/usr/local/share/screenlets/Clock/ClockScreenlet.py
i got this out put on screen
Traceback (most recent call last):
File "/usr/local/share/screenlets/Clock/ClockScreenlet.py", line 17, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 33, in ?
import rsvg
ImportError: No module named rsvg
sorry for my bad english
Forlong
August 21st, 2007, 10:43 AM
You are missing the rsvg library.
We already had this here: http://forum.compiz-fusion.org/showthread.php?p=22687#post22687
Hope this helps...
Be_Linux
August 21st, 2007, 11:38 AM
Already installed
RYX
August 21st, 2007, 12:00 PM
Hi Be_Linux!
Which version of pygtk do you use? You can find it out like this:python -c "import gtk; print gtk.pygtk_version"
If the first two parts are not 2, 10 then you may have a too old pygtk version running.
Otherwise you could try adding those two lines at line 20 in screenlets-manager.py:import pygtk
pygtk.require('2.0')
They should fix at least one of the above errors.
:)
Be_Linux
August 21st, 2007, 12:17 PM
thank you for fast answer
Which version of pygtk do you use?
(2, 8, 6)
adding those two lines at line 20 in screenlets-manager.py
They should fix at least one of the above errors.
i add the lines and nothing hapend
Be_Linux
August 21st, 2007, 01:14 PM
i removed beryl 0.2.0 and installed compiz ,when i trying to typ screenlets-manager i got this on the screen
Traceback (most recent call last):
File "/usr/local/share/screenlets-manager/screenlets-manager.py", line 23, in ?
import screenlets
ImportError: No module named screenlets
RYX
August 21st, 2007, 01:35 PM
I am afraid you need to update your pygtk version to at least 2.10 to be able to run the screenlets.
Be_Linux
August 21st, 2007, 08:30 PM
now i got the old messeg
Traceback (most recent call last):
File "/usr/local/share/screenlets/Clock/ClockScreenlet.py", line 17, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 33, in ?
import rsvg
ImportError: No module named rsvg
i installed librsvg2-2 and librsvg-common
RYX
August 21st, 2007, 11:28 PM
Do you have python-gnome2-desktop for your python version (2.4) installed? You need the python-bindings for librsvg and they are unfortunately bundled into that package.
Be_Linux
August 22nd, 2007, 12:25 AM
i installed python-gnome2-desktop and python-gnome2-desktop-dev
when i typ screenlets-manager
Traceback (most recent call last):
File "/usr/local/share/screenlets-manager/screenlets-manager.py", line 24, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 33, in ?
import rsvg
ImportError: No module named rsvg
when i typ /usr/local/share/screenlets/Clock/ClockScreenlet.py
Traceback (most recent call last):
File "/usr/local/share/screenlets/Clock/ClockScreenlet.py", line 17, in ?
import screenlets
File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 33, in ?
import rsvg
ImportError: No module named rsvg
and i added the tow lines you told me befor
import pygtk
pygtk.require('2.0')
please elp me to solve this proplem
i'm in this proplem from three dayes ago and i can't find any answer at any site or irc server
RYX
August 22nd, 2007, 06:54 PM
I think this (http://www.nabble.com/RSVG-Bindings-t3621900.html) answers your question. The rsvg bindings for python are included since gnome version 2.15. Debian Etch ships with gnome 2.14 so you have no rsvg-bindings in the python-gnome2-desktop package.
You have to update to gnome 2.16 to use the screenlets. Or you download the source-tarball for the python-gnome2-desktop package and strip out everythig except the rsvg-bindings and then compile them individually.
(Or you write a kind mail to the gnome-devs, politely asking if they could put the rsvg-bindings into a separate package ... If enough people do it then maybe we have a chance to convince them :))
edgares
January 4th, 2008, 04:50 PM
Hi, I had same issue on Ubuntu-Gutsy and after trying all suggestions above mentioned, I found a fix on by installing ' sudo apt-get install python-gnome2-desktop', run screenlets-manager after that, it works!
Hope that helps.
lgalatanu
June 20th, 2008, 01:02 PM
Try /usr/bin/gdk-pixbuf-query-loaders. If you see the svg loader, than you have to do this:
/usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
GTK must be informed about svg loader presence and this is done by writing the output of gdk-pixbuf-query-loaders into the gdk-pixbuf.loaders
Hope this helps. It did for me.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.