Main index > Installation problems > can't register or test any desklet [SOLVED]

By Felpudo (User), on Sun Mar 4 23:14:15 2007: can't register or test any desklet [SOLVED].

Hi guys,
I saw some posts similar to this one and still they couldn't solve my problem.
I am using Ubuntu 7.04, I installed the adesklets via apt-get, I also tried compiling it from source (0.6.something).
It compiled OK, when I use the "adesklets -i" i get a graphic mode to install the desklets. After I try to install via "adesklets - i" i get the foloqing error:

Quote:

Verifying download integrity... OK
Opening the downloaded archive...
!!! An error occured during the operation !!!
Traceback (most recent call last):
File "/usr/local/bin/adesklets_installer", line 223, in run
getattr(self, '_'+op)(**kw)
File "/usr/local/bin/adesklets_installer", line 244, in _install
self.desklets.install(desklet) # refresh of desklets states
File "/usr/local/bin/adesklets_installer", line 150, in install
tar = tarfile.open(mode='r|bz2', fileobj=f)
File "tarfile.py", line 1168, in open
_Stream(name, filemode, comptype, fileobj, bufsize))
File "tarfile.py", line 1047, in __init__
self.name = os.path.abspath(name)
File "posixpath.py", line 402, in abspath
if not isabs(path):
File "posixpath.py", line 49, in isabs
return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'


If I use the ./nameofthedesklet.py method I get the following error:

Quote:

b7b2b0Traceback (most recent call last):
File "./photo.py", line 6, in <module>
import adesklets
File "/usr/lib/python2.5/site-packages/adesklets/__init__.py", line 43, in <module>
raise e
adesklets.error_handler.ADESKLETSError: adesklets process exited -
Exception exceptions.AttributeError: AttributeError("'NoneType' object has no attribute 'kill'",) in <bound method _Communicator.__del__ of <adesklets.communicator._Communicator instance at 0xb796bdcc>> ignored


Can someone please help me?
Again, I hope I'm not double posting.

By syfou (Core Developer & Desklet Author), on Mon Mar 5 03:53:52 2007.

Hi Felpudo,

from your message, I suspect there might be multiple causes to the problems you experience; I can sort things out with you if you want, but first, I need you to bring back your system in a known state we can act upon. Looking at the tracebacks you provided, I know you had adesklets ill-installed at least once -- using autoconf's default /usr/local prefix is wrong on most linux distros these days, including Ubuntu (see the FAQ about it). When installing a package by hand, the right default is usually:

Code:


./configure --prefix=/usr


It normally isn't critical for most packages, but it can be for adesklets... In fact, it is even possible you have multiple adesklets installs mixed-up and interleaved on you disk right know (the one from you got from apt-get, and the one you built yourself), which can lead to very nasty, hard to diagnose bugs. On most packages using automake (that's adesklets case), one easy trick to know the exact list of files you installed manually is to set the DESTDIR variable on install:

Code:


make install DESTDIR=/tmp/fakeroot


This way you will have the package installed under /tmp/fakeroot as it if were the real root, and you can use the relative paths to delete the files in their final locations:

Code:


find /tmp/fakeroot -type f | sed 's/\/tmp\/fakeroot//' | \
   xargs --max-lines=1 rm


Once it is done, remove the package you got via apt-get; something in the lines of:

Code:


apt-get --purge remove adesklets


Then, I encourage you to install adesklets 0.6.1 from Ubuntu Universe; as far as I can see from the ChangeLog, it got the lastest patches applied, and should avoid you most of the pitfalls... Be aware this might not solve any of your problems, but we will be able to start solving it once it is done... Just tell me what still applies once you performed this! Yours,

By Felpudo (User), on Mon Mar 5 15:39:17 2007.

syfou wrote:

Hi Felpudo,
Then, I encourage you to install adesklets 0.6.1 from Ubuntu Universe; as far as I can see from the ChangeLog, it got the lastest patches applied, and should avoid you most of the pitfalls... Be aware this might not solve any of your problems, but we will be able to start solving it once it is done... Just tell me what still applies once you performed this! Yours,

Thanks a LOT. It worked, I did just as you told me to and it worked like a charm.
Thanks a lot, I REALLY loved adesklets.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.