Main index > Installation problems > Problems starting desklets [SOLVED]

By nucular (User), on Mon Feb 28 13:35:04 2005: Problems starting desklets [SOLVED].

I just installed adesklets 0.4.1 to my gentoo box using the ebuild from gentoos bugzilla.

I guess I've missed something. But when trying to start a desklet it gives me an error.

Code:


YYYY@XXXX yab-0.0.2 $ ./yab.py 
Traceback (most recent call last):
  File "./yab.py", line 48, in ?
    import adesklets
  File "/usr/lib/python2.3/site-packages/adesklets/__init__.py", line 32, in ?
    from adesklets.utils import *
  File "/usr/lib/python2.3/site-packages/adesklets/utils.py", line 5, in ?
    from configfile import ConfigFile
  File "/usr/lib/python2.3/site-packages/adesklets/configfile.py", line 78
    for i in node.nodes)
      ^
SyntaxError: invalid syntax



is this even the right way to start these?

Also I checked the install logs for adesklets and there was an error message

Code:



byte-compiling /var/tmp/portage/adesklets-0.4.1/image/usr/lib/python2.3/site-packages/adesklets/configfile.                                                          py to configfile.pyc
  File "usr/lib/python2.3/site-packages/adesklets/configfile.py", line 78
    for i in node.nodes)
      ^
SyntaxError: invalid syntax



By syfou (Core Developer & Desklet Author), on Mon Feb 28 14:05:44 2005, last edited on Mon Feb 28 15:00:39 2005: mea culpa.

Ouch! Sorry about that - my mistake. I just forgot python 2.3 does not handle implicit list comprehention, and I was dumb enough for not testing the package on it.

In scripting/python/adesklets/configfile.py, the _Tuple method from StaticConfigImport reads:

Code:


       def _Tuple(self,node):
            return tuple(self.walk(i)
                         for i in node.nodes)




When it should be:

Code:


       def _Tuple(self,node):
            return tuple([self.walk(i)
                         for i in node.nodes])



And (god I was bad!) there is also a issue a bit later... I corrected things. Stay tuned for adesklets 0.4.2 publication within an hour from now. Thanks for reporting this!

Oh, and the way you invoked yab is ok - no error there. Look at the documentation if you have any doubt.

By nucular (User), on Mon Feb 28 14:09:35 2005.

Well glad to help :)

By syfou (Core Developer & Desklet Author), on Mon Feb 28 14:53:40 2005.

Done. I tested it on python 2.3.4 (final) from a Gentoo 2004.2 system, and all the desklets seems running fine now. Thank you again!

By nucular (User), on Mon Feb 28 15:05:29 2005.

Yeah! Seems to work okay now!

Looks brilliant so far. I can finally get rid off gdesklets and all the gnome-dependencies!

Thanks to you! Great job!

By syfou (Core Developer & Desklet Author), on Mon Feb 28 15:18:24 2005.

nucular wrote:


Looks brilliant so far. I can finally get rid off gdesklets and all the gnome-dependencies!


Well, maybe not quite. A great thing about gDesklets is the wide selection of displays, while adesklets just have a mere seven desklets right now... :(

But a few people started toying with it. Hopefully, some public desklets will eventually come out of their work (look at the latest post in the Screenshots forum from ZeroDivide for instance). :-)

Glad adesklets suited your need. Have fun with it!

By nucular (User), on Mon Feb 28 15:31:35 2005.

Well I actually used gdesklets only to get weather info on to my desktop.

I'm going to play tomorrow with yab a little bit to see if I can replace my XFCe panel with it. It looks very promising.


Quote:


But a few people started toying with it. Hopefully, some public desklets will eventually come out of their work (look at the latest post in the Screenshots forum from ZeroDivide for instance. Smile


Yeah I've been looking at those already. Looks good. I'll be posting some of my own screenshots also as soon as I get my desktop to that point that it is ready to be published :)

I'm sure that there will be new desklets alot in the future. This is a very promising, but still young project. As soon as the word spreads out properly things will brighten up :)


Have to get to bed now. I have to wake up WAY too early tomorrow :cry:

By Amoeba (User), on Thu Mar 3 16:44:19 2005: Re: mea culpa.

I'm getting this nasty error:

Code:

dracco@epitaph dracco $ adesklets
dracco@epitaph dracco $ .adesklets-themes/quidnovi-0.0.2/quidnovi.py
Traceback (most recent call last):
  File ".adesklets-themes/quidnovi-0.0.2/quidnovi.py", line 46, in ?
    class Config(adesklets.ConfigFile):
AttributeError: 'module' object has no attribute 'ConfigFile'


Where is this file? I don't think I have it:

Code:

root@epitaph adesklets # ls -l /usr/lib/python2.3/site-packages/adesklets
total 240
-rw-r--r--  1 root root   969 Mar  3 13:23 __init__.py
-rw-r--r--  1 root root  1269 Mar  3 13:23 __init__.pyc
-rw-r--r--  1 root root   999 Mar  3 13:23 children_handler.py
-rw-r--r--  1 root root  1864 Mar  3 13:23 children_handler.pyc
-rw-r--r--  1 root root 32411 Mar  3 13:23 commands.py
-rw-r--r--  1 root root 64849 Mar  3 13:23 commands.pyc
-rw-r--r--  1 root root  6437 Mar  3 13:23 commands_handler.py
-rw-r--r--  1 root root  7605 Mar  3 13:23 commands_handler.pyc
-rw-r--r--  1 root root  3165 Mar  3 13:23 communicator.py
-rw-r--r--  1 root root  4911 Mar  3 13:23 communicator.pyc
-rw-r--r--  1 root root   691 Mar  3 13:23 error_handler.py
-rw-r--r--  1 root root  1521 Mar  3 13:23 error_handler.pyc
-rw-r--r--  1 root root 13300 Mar  3 13:23 events_handler.py
-rw-r--r--  1 root root 17169 Mar  3 13:23 events_handler.pyc
-rw-r--r--  1 root root  2191 Mar  3 13:23 initializer.py
-rw-r--r--  1 root root  2826 Mar  3 13:23 initializer.pyc
-rw-r--r--  1 root root  2247 Mar  3 13:23 signal_handler.py
-rw-r--r--  1 root root  3147 Mar  3 13:23 signal_handler.pyc
-rw-r--r--  1 root root  1467 Mar  3 13:23 singleton.py
-rw-r--r--  1 root root  2653 Mar  3 13:23 singleton.pyc
-rw-r--r--  1 root root  5233 Mar  3 13:23 strings.py
-rw-r--r--  1 root root  4415 Mar  3 13:23 strings.pyc
-rw-r--r--  1 root root   479 Mar  3 13:23 utils.py
-rw-r--r--  1 root root  1139 Mar  3 13:23 utils.pyc
-rw-r--r--  1 root root  1239 Mar  3 13:23 which.py
-rw-r--r--  1 root root  2372 Mar  3 13:23 which.pyc

By syfou (Core Developer & Desklet Author), on Thu Mar 3 17:18:57 2005: Re: mea culpa.

Amoeba wrote:

I'm getting this nasty error:

Code:

dracco@epitaph dracco $ adesklets
dracco@epitaph dracco $ .adesklets-themes/quidnovi-0.0.2/quidnovi.py
Traceback (most recent call last):
  File ".adesklets-themes/quidnovi-0.0.2/quidnovi.py", line 46, in ?
    class Config(adesklets.ConfigFile):
AttributeError: 'module' object has no attribute 'ConfigFile'


Where is this file? I don't think I have it:


I just cross-checked to make sure... Quoting from the README in quidnovi 0.0.2:

Quote:


This desklet requires adesklets >=0.4.0 with python support enabled (default)


I you did install adesklets>=0.4.0, this configfile.py file was included from 0.4.1, but the user should not be aware of that since this is only an internal change... Most likely, your got youself into a adesklets code collision while upgrading from adesklets 0.4.0 to some newer version, because the only way I can think of right now on how to get such an error while having the right core interpreter installed if to have intermixing code on you disk, or a failing installation... I cross-checked things, and the file in included in all versions >=0.4.1, so you should not have any problem (you don't have to believe me: go see in the source tarball)...

If you now for sure where is the compiled package on your disk, you can safely manually remove the whole directory structure below adesklets/ before retrying to reinstall things (adesklets 0.4.3 just go out, by the way)... Hope this help.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.