By cabel (User), on Sun
Apr 10 09:15:10 2005: desklets won't start (iso-latin-1
encoding problem) [SOLVED].
Hello there;
I'm trying to use adesklets, but when I try to start a
desklet it fails with the following error message:
SyntaxError: "no codec search functions registered: can't
find encoding"
I'm using gentoo, so I installed adesklets through
portage-installation went fine.
The version of adesklets I have is 0.4.7. My wm is
enlightenment-0.17 on Xorg.
I'd be glad if someone could help me,
Greetings,
cabel
(Full Output:)
grex@bagel acpumon-0.1.1 $ ./acpumon.py
Traceback (most recent call last):
File "./acpumon.py", line 38, in ?
import adesklets
File
"/usr/lib/python2.3/site-packages/adesklets/__init__.py",
line 30, in ?
from adesklets.initializer import _Initializer
File
"/usr/lib/python2.3/site-packages/adesklets/initializer.py",
line 9, in ?
from singleton import _Singleton, _States
File
"/usr/lib/python2.3/site-packages/adesklets/singleton.py",
line 1
SyntaxError: "no codec search functions registered: can't
find encoding"
By syfou (Core Developer
& Desklet Author), on Sun Apr 10 12:08:48 2005.
Hi,
Quick note: adesklets will not work
with E17, because E17 use a fake root window... See the
FAQ.
It looks like your python environment doesn't support
iso-latin-1 ? This is strange. There should be two ways to
solve this:
- Clean
way: Reinstall Python making sure you have ISO8859-1
support built in; the problem is that I did not find how
you can not having it included
on linux. :-k
-
Quick fix way:
- Manually go and edit
scripting/python/adesklets/singleton.py
from the source pagkage, then reinstall.
- Remove the
line at the very top of the file
- Alter the name of
"J?ggen Hermann" on the fourth line (see the trema)
in unaccentuated "Jurgen Hermann"
- Now, running:
iconv -f ISO8859-1 -t ASCII singleton.py
should not return any error. From there, you
should perform, as usual:
configure --prefix=/usr
make
make install # (as root)
from the base source diectory of adesklets 0.4.7. Do
not worry about portage - since you did a previous
installation already, your files will only be written
over, and there will be no problem uninstalling
later.
I hope this helps. Regards,
By cabel (User), on Sun
Apr 10 17:16:35 2005.
Okay.. Thank you very much!
Going through your hints at the moment, I will report when
the error is gone (-;
And about the e17 problem... sounds as it could be done
:D
( meaning that I will have a look at this issue later on, and
see how far it exceeds my coding abilities)
Ciao
cabel
UPDATE:
--> desklets start fine now.. they are just invisible (-;