You are not logged in.

#1 2007-10-17 18:04:36

RobK
Member
Registered: 2005-12-07
Posts: 121

adesklets_installer Crashing

I would like to use adesklets.  I can manually download desklets, install them and get them running.  But I cannot use the easy adesklets_installer (which also checks to see if your desklets are up to date).

adeskets_installer crashes when I try to download desklets.

I see the following:

Retriieving data online... OK
Checking locally installed desklets... OK
Downloading weatherforecast desklet.... 

And then it hangs.   

Are others haviong this problem.. Is there a fix or workaround?

Rob

Offline

#2 2007-10-17 18:46:39

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: adesklets_installer Crashing

After waiting 5 minutes, some desklets do download but then adesklets_installer crashes with this error message:

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

Hmm.  Anyone know of a quick fix?  Or should I report a bug?

Rob

Offline

#3 2007-10-17 20:41:13

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: adesklets_installer Crashing

It is  bug in python.  I emailed the developer and got this helpful response.

Hi Robert,

> And then it hangs. (I know the web site is available. I can surf to
> the asdesklets web site and downloed this desklet from sourceforge using
> my Browser).

The weatherforecast desklet being especially big for a desklet (2.7 MB),
combined with the fact that sourceforge servers are not always very
responsive, not getting any feedback during download from
adesklets_installer makes it difficult to know if the application is
stalling or doing its job (I should add some sort of progress bar); from
your second email, I would think it is the latter.

> I hope this helps..

It does. Thanks for your time repporting this.

> Please let me know if there is a fix.

Actually, there is[1]: that's a regression bug in Python. Regards,

--
Sylvain

[1]http://repo.or.cz/w/adesklets.git?a=com … 72d50d1e7e

Offline

#4 2007-10-17 22:16:20

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: adesklets_installer Crashing

Someone just pointed out that there is a adesklets-weatherforecast package in pacman.  Ideally that this the best way to install packages (NOT using a thord party installer).

But there are other desklets NOT in the community repo.  See http://adesklets.sourceforge.net/desklets.html for more desklets.

Some (like me) may be tempted to use the adesklets_installer to install these desklets.  But beware, it will not likely work due to this bug.

The real fix is to create you own pacman packages!

Rob

Offline

Board footer

Powered by FluxBB