starting the daemon

Asked by leonard

I'm trying to start the appication using different ways

screenletsd --gui

Error:
Loading daemon
Traceback (most recent call last):
File "/usr/share/screenlets-manager/screenlets-manager.py", line 28, in ?
    import screenlets
ImportError: No module named screenlets

screenletsd --cli run Test

Error:
File "/usr/share/screenlets/Test/TestScreenlet.py", line 18, in ?
    import screenlets
ImportError: No module named screenlets

screenlets-manager
screenlets-packager

Error: kind of the same error: No module named screenlets

I have installed gnome-python2-desktop, pyxdg, python, cairo, pygtk2.
I do not have any more ideas...

Could you please tell me what am I doing wrong?

I have tried 0.1.1 and 0.1.2 versions.
What else can I do?

I have also tried to launch the screenlets directly: /usr/share/screenlets/Clock/ClockScreenlet.py
Traceback (most recent call last):
  File "/usr/share/screenlets/Clock/ClockScreenlet.py", line 24, in ?
    import screenlets
ImportError: No module named screenlets

And also,
python /usr/share/screenlets-manager/screenlets-daemon.py
Error: ... No module named screenlets

Question information

Language:
English Edit question
Status:
Solved
For:
Screenlets Edit question
Assignee:
No assignee Edit question
Solved by:
leonard
Solved:
Last query:
Last reply:
Revision history for this message
astrea.apn (astrea-apn) said :
#1

hi, you need install gnomekeyring that's all.
bye good luck.

Revision history for this message
leonard (lgalatanu) said :
#2

Now the erro I have is

Traceback (most recent call last):
  File "/usr/share/screenlets-manager/screenlets-daemon.py", line 34, in ?
    import screenlets
  File "/usr/lib/python2.4/site-packages/screenlets/__init__.py", line 51, in ?
    from options import *
  File "/usr/lib/python2.4/site-packages/screenlets/options.py", line 30, in ?
    import utils
  File "/usr/lib/python2.4/site-packages/screenlets/utils.py", line 286, in ?
    import session
  File "/usr/lib/python2.4/site-packages/screenlets/session.py", line 57, in ?
    TMP_FILE = 'screenlets.' + os.environ['USER'] + '.running'
  File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'USER'

Revision history for this message
leonard (lgalatanu) said :
#3

Got over this error: have replaces os.environ['USER'] with my username

Now the error is:
 pixbuf = gtk.gdk.pixbuf_new_from_file("/usr/share/icons/screenlets.svg")
gobject.GError: Couldn't recognize the image file format for file '/usr/share/icons/screenlets.svg'

Why don't I have svg loader?!?

Revision history for this message
leonard (lgalatanu) said :
#4

I solved it out:
/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