PDA

View Full Version : Error while starting couple of screenlets.


sweetthdevil
August 12th, 2007, 05:00 PM
Hi,

I updated screenlets to 0.0.9 and install Nowplaying and Weather. But I'm having couple of issues;

Nowplaying : Start well, but doesn't show any information neither from Amarok, Listen or VLC but does show the informations from Rythmbox. I did install python-dcop, any idea to fix this issue?

Weather : I install weather, and it does start from nautillus, but does remember any setting, and give me couple of error when start from the termial, however it does start from the terminal, but as now skin. Here is the terminal message.

/usr/local/share/screenlets/Weather/WeatherScreenlet.py
UPDATING SHAPE
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1227, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 307, in on_draw
self.read_theme_file()
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 90, in read_theme_file
theme_file = open("./themes/" + self.theme_name +"/theme.cfg")
IOError: [Errno 2] Aucun fichier ou répertoire de ce type: './themes/spiff/theme.cfg'
UPDATING SHAPE
Unable to find settings-backend! Options will not be saved.
'WeatherScreenlet' object has no attribute 'backend'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1227, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 307, in on_draw
self.read_theme_file()
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 90, in read_theme_file
theme_file = open("./themes/" + self.theme_name +"/theme.cfg")
IOError: [Errno 2] Aucun fichier ou répertoire de ce type: './themes/spiff/theme.cfg'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1227, in expose
self.on_draw(ctx)
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 307, in on_draw
self.read_theme_file()
File "/usr/local/share/screenlets/Weather/WeatherScreenlet.py", line 90, in read_theme_file
theme_file = open("./themes/" + self.theme_name +"/theme.cfg")
IOError: [Errno 2] Aucun fichier ou répertoire de ce type: './themes/spiff/theme.cfg'


Clock : The clock screenlets doesn't start at all, neither from nautillus or from the terminal, here is the error message from the terminal.

/usr/local/share/screenlets/Clock/ClockScreenlet.py
CachingBackend: Loading instances from cache
CachingBackend: Loading <Clock1>
Loading instances in: /home/sweetth/.config/Screenlets/Clock/default/
File: Clock1.ini
Creating new instance:
UPDATING SHAPE
theme.conf found! Loading option-overrides.
theme.conf loaded:
Name: RYX's railway-station clock
Author: RYX (aka Rico Pfaus)
Version: 1.0
Info: A typical railway-station look-alike
UPDATING SHAPE
Set options in ClockScreenlet
Traceback (most recent call last):
File "/usr/local/share/screenlets/Clock/ClockScreenlet.py", line 433, in <module>
screenlets.session.create_session(ClockScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 301, in create_session
session.start()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 159, in start
if self.__load_instances():
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 210, in __load_instances
self.__restore_options_from_backend(sl, self.path+filename)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 261, in __restore_options_from_backend
setattr(screenlet, opt.name, opt.on_import(opts[o]))
File "/usr/local/share/screenlets/Clock/ClockScreenlet.py", line 187, in __setattr__
super(ClockScreenlet, self).__setattr__(name, value)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 533, in __setattr__
self.load_theme(self.get_theme_dir() + value)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 805, in load_theme
self.theme = ScreenletTheme(path)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 126, in __init__
raise Exception("Error while loading ScreenletTheme in: " + path)
Exception: Error while loading ScreenletTheme in: /usr/local/share/screenlets/Clock/themes/Titan-White



Many thanks for your help.

RYX
August 12th, 2007, 05:28 PM
Please do not install third-party screenlets into the global directory. Just copy their folders into $HOME/.screeenlets.

The clock seems to not find its correct theme, moving the theme to $HOME/.screenlets/Clock/themes/<theme_name> should solve that.

The WeatherScreenlet seems to be for the old version, make sure you download the version for 0.0.9.

And I am not sure if NowPlaying suports all the given backends ... I can have a look at its code to see what it supports.

:)

sweetthdevil
August 12th, 2007, 05:37 PM
Many thank for your prompt answer!
However i do not have a file /home/sweeth/.screenlets might that be the reason?

Edit; Couple of error while unzipping the file as well, could it be possible to post them somewhere else?

RYX
August 12th, 2007, 06:11 PM
Sorry, I meant the directory "$HOME/.screenlets/" :) ... If it doesn't exist, just create it manually.

I am heavily working on the screenlets website and it is almost finished. It will simplify finding and distributing third-party screenlets. Until then you have to use the screenlets that are available from the posts in this Screenlet-subforum ...

:)

sweetthdevil
August 12th, 2007, 06:31 PM
Many thanks, creating the folder and installing the screenlets there solve the probleme for weather, however Nowplaying now does take the information from Amarok, but still nothing from Listen, the one i'm using... It seem i don't have the them titan-white..