Main index > Usage problems > adesklets on xffm-deskview [PARTLY SOLVED]

By Royle (User), on Thu Sep 8 17:16:54 2005: adesklets on xffm-deskview [PARTLY SOLVED].

I'm trying to start my adesklets and I keep getting this error:

Code:

mike@mike-linux ~ $ adesklets/mpdcontroller-0.0.4/mpdcontroller.py 
Traceback (most recent call last):
  File "adesklets/mpdcontroller-0.0.4/mpdcontroller.py", line 3, in ?
    import adesklets
  File "/usr/lib/python2.3/site-packages/adesklets/__init__.py", line 36, in ?
    _init=_Initializer()
  File "/usr/lib/python2.3/site-packages/adesklets/initializer.py", line 53, in __init__
    event=comm.err(.1)
  File "/usr/lib/python2.3/site-packages/adesklets/communicator.py", line 103, in err
    raise ADESKLETSError(1)
adesklets.error_handler.ADESKLETSError: adesklets process exited - 
Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0xb7c7512c> in <bound method _Communicator.__del__ of <adesklets.communicator._Communicator instance at 0xb7bbb84c>> ignored



I'm a noob to all this, so I have no idea what's wrong. Can someone help me with this? Any help is appreciated.

By syfou (Core Developer & Desklet Author), on Thu Sep 8 17:39:18 2005.

Hi Royle,

Did you truncate the output somehow? If not, you are not running the latest version of the package (adesklets 0.4.11 at the time of writting). Also, have you tried the FAQ? There is an item on this. Yours,

By Royle (User), on Thu Sep 8 19:30:04 2005.

Well I installed adesklets with portage (I run gentoo). I believe the latest version on portage is 0.4.10. I looked at the faq and it said this:

Quote:

When I try to start a new desklet, I get an ADESKLETSError: adesklets process exited error from the Python interpreter. What is this?

On some rare systems (archlinux for instance), the PATH variable for the Python interpreter differs from what is inherited from standard environment, which causes the Python package to fail to launch adesklets as a child process. On such systems, make sure to install adesklets using an appropriate --prefix switch at the configuration stage. For instance, on most recent Linux platforms, you should use:

./configure --prefix=/usr


I don't know what this means I should do. Thanks for your help.

By syfou (Core Developer & Desklet Author), on Thu Sep 8 19:56:04 2005.

adesklets 0.4.11 is in portage, but masked; just unmask it for your architecture (see man portage).

The rest doesn't apply to you, as portage do the job right; I just tested mpdcontroller on gentoo, and this desklet works fine for me (do you have the same problem with every desklet?). The only noticiable thing I see is that you use some 2.3.x version of Python; adesklets should work fine on it (it does as far as I know), but I haven't tested older interpreters for a few months now.

EDIT:
I just tested mpdcontroller on gentoo 2005.0 (x86 platform, linux 2.6.13 vanilla, glibc 2.3.4) with stock python 2.3.5: it works OK here (with both adesklets 0.4.10 and 0.4.11)... What does the line:

Code:


echo version | adesklets :


give you?

By Royle (User), on Fri Sep 9 14:04:54 2005.

mike@mike-linux ~ $ echo version | adesklets :
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 15 (X_QueryTree)
Resource id in failed request: 0xe00003
Serial number of failed request: 9
Current serial number in output stream: 9


Is that what I should be getting?

By syfou (Core Developer & Desklet Author), on Fri Sep 9 14:19:29 2005.

Ouch. This explains your trouble... What windows manager and implementation of X11 are you using, by the way (this is the first report of such a problem since the release of adesklets 0.4.10, nearly three months ago)? Just upgrade to latest adesklets version: the code snippet causing your problem have been removed from adesklets 0.4.11 (please test the " echo version | adesklets : " command again).

By Royle (User), on Fri Sep 9 15:21:22 2005.

Well I updated to the newest version of adesklets and I stopped getting the error. Although now I have two other problems. When I try to start the weather desklet it asks if I want to test it or register it(what do I do?), I chose test it, and it seemed to launch but it sort of flickered in the corner of my screen and dissappeared. Also when I try to start mpdcontrol I get this:

Code:

mike@mike-linux ~ $ adesklets/weather-0.0.4/weather.py 
Do you want to (r)egister this desklet or to (t)est it? t
Traceback (most recent call last):
  File "adesklets/weather-0.0.4/weather.py", line 468, in ?
    Events(dirname(__file__)).pause()
  File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 228, in pause
    posix_signal.pause()
KeyboardInterrupt
mike@mike-linux ~ $ adesklets/mpdcontroller-0.0.4/mpdcontroller.py 
Do you want to (r)egister this desklet or to (t)est it? t
Traceback (most recent call last):
  File "adesklets/mpdcontroller-0.0.4/mpdcontroller.py", line 4, in ?
    import mpdclient
ImportError: No module named mpdclient


So what am I doing wrong now? Thanks for your help.

By syfou (Core Developer & Desklet Author), on Fri Sep 9 15:58:23 2005.

Royle, please help me a bit... I will gladly answer you, but I have no chance perfecting my code if you do not answer me back.

Sylvain wrote:


What windows manager and implementation of X11 are you using, by the way?

Royle wrote:


When I try to start the weather desklet it asks if I want to test it or register it(what do I do?)

You did the right thing. It is a good idea to first test it, then, if it works, to register it, and use the adesklets command later on to restore it on future sessions.

Royle wrote:


I chose test it, and it seemed to launch but it sort of flickered in the corner of my screen and dissappeared.

Well, this has been answered many times on this forum, as well as in the FAQ. Run:

Code:


adesklets --help


or

Code:


/path/to/desklet.py --help


Royle wrote:


Also when I try to start mpdcontrol I get this:

Code:


ImportError: No module named mpdclient



In mpdcontroller README, Cameron Daniel wrote:


Requirements:
-------------
py-libmpdclient 0.10.0 - http://www.musicpd.org/py-libmpdclient.shtml

By Royle (User), on Fri Sep 9 22:20:35 2005.

Sylvain wrote:

What windows manager and implementation of X11 are you using, by the way?

Ok, sorry about not answering that, I'm using the xfce4 desktop, but instead of xfdesktop, I'm using xffm 4.3.

EDIT: the option adesklets --xfce4 works with xfdesktop but not xffm's desktop.

EDIT 2: Alright, so I installed py-libmpdclient with this ebuild here: http://bugs.gentoo.org/attachment.cgi?id=65004

When I start mpdcontroller, it sort of crashes mpd, conky (system monitor) shows mpd not available and if I run mpc I get this:

Code:

mike@mike-linux ~ $ mpc
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems getting a response from "localhost" on port 6600 : Operation now in progress



If I stop mpdcontroller mpd goes back to normal.

Also, I'm running the xfdesktop right now just to get adesklets working, weather is appearing fine, when I run mpdcontroller, nothing appears on my desktop, whether or not its waiting for the mpd server I don't know. Thanks for your continued support.

By syfou (Core Developer & Desklet Author), on Sat Sep 10 02:14:50 2005.

Hang in there, Royle... We are slowly getting somewhere. :-)

xffm instead of xfdesktop
I wasn't aware alternatives to xfdesktop were developed, thanks for the info. From what I read, it seems Xfce4 developers are moving toward yet another implementation, called thunar, that will in time replace both the xffm file manager and xfdesktop. I will have a look into this tomorrow -- I guess you did not have any success with the --user interactive fake root window selection?

mpdcontroller
Well, I am not very knowledgeable about mpd myself; I know I have a smooth experience with mpd 0.11.5 at one end, and py-libmpdclient 0.10.0 on python 2.3.5 or python 2.4.1 at the other. I suggest you post a request into the mpdcontroler thread. You could also email Cameron Daniel directly, he is a good sport.

[EDIT]
adesklets 0.4.12 is out; it includes preliminary support for xffm-deskview


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.