Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[solved]adesklets won't work!!

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Qbrick
n00b
n00b
User avatar
Posts: 17
Joined: Sun Sep 21, 2003 4:26 pm
Contact:
Contact Qbrick
Website

[solved]adesklets won't work!!

  • Quote

Post by Qbrick » Sat Sep 10, 2005 4:18 pm

this is what i get

Code: Select all

joakim@jonathan ~ $ desklets/modubar-0.0.1/modubar.py 
Do you want to (r)egister this desklet or to (t)est it? t
Traceback (most recent call last):
  File "desklets/modubar-0.0.1/modubar.py", line 749, in ?
    Events(dirname(__file__)).pause()
  File "desklets/modubar-0.0.1/modubar.py", line 218, in __init__
    adesklets.Events_handler.__init__(self)
  File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__
    self.ready()
  File "desklets/modubar-0.0.1/modubar.py", line 235, in ready
    join(self.basedir,'config.txt'))
  File "desklets/modubar-0.0.1/modubar.py", line 194, in __init__
    adesklets.ConfigFile.__init__(self,id,filename)
  File "/usr/lib/python2.3/site-packages/adesklets/configfile.py", line 162, in __init__
    self._load_and_save()
  File "/usr/lib/python2.3/site-packages/adesklets/configfile.py", line 183, in _load_and_save
    lockf(f,LOCK_EX)
IOError: [Errno 37] No locks available
joakim@jonathan ~ $
help please, I've been trying for hours now.
is it adesklets or python, that is the problem here ??
Last edited by Qbrick on Mon Sep 12, 2005 7:30 am, edited 1 time in total.
Top
Kaiiserni
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Mon Apr 25, 2005 7:18 pm
Location: Antwerp - Belgium

Re: adesklets won't work!!

  • Quote

Post by Kaiiserni » Sat Sep 10, 2005 7:54 pm

Qbrick wrote:this is what i get

Code: Select all

joakim@jonathan ~ $ desklets/modubar-0.0.1/modubar.py 
Do you want to (r)egister this desklet or to (t)est it? t
Traceback (most recent call last):
  File "desklets/modubar-0.0.1/modubar.py", line 749, in ?
    Events(dirname(__file__)).pause()
  File "desklets/modubar-0.0.1/modubar.py", line 218, in __init__
    adesklets.Events_handler.__init__(self)
  File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__
    self.ready()
  File "desklets/modubar-0.0.1/modubar.py", line 235, in ready
    join(self.basedir,'config.txt'))
  File "desklets/modubar-0.0.1/modubar.py", line 194, in __init__
    adesklets.ConfigFile.__init__(self,id,filename)
  File "/usr/lib/python2.3/site-packages/adesklets/configfile.py", line 162, in __init__
    self._load_and_save()
  File "/usr/lib/python2.3/site-packages/adesklets/configfile.py", line 183, in _load_and_save
    lockf(f,LOCK_EX)
IOError: [Errno 37] No locks available
joakim@jonathan ~ $
help please, I've been trying for hours now.
is it adesklets or python, that is the problem here ??
what version of python you have?
Dell XPS M1330; Intel Core 2 Duo 1800 ; NV M 8400GS, 2 gig
Gentoo x (gentoo x, gnome x)
LINUX user 395333
Top
Qbrick
n00b
n00b
User avatar
Posts: 17
Joined: Sun Sep 21, 2003 4:26 pm
Contact:
Contact Qbrick
Website

  • Quote

Post by Qbrick » Sat Sep 10, 2005 9:14 pm

2.3.5-r2
Top
syfou
n00b
n00b
Posts: 57
Joined: Tue Sep 07, 2004 6:05 am
Location: Montreal, Canada
Contact:
Contact syfou
Website

  • Quote

Post by syfou » Sat Sep 10, 2005 9:32 pm

It is probably caused by the filesystem on which $HOME/desklets/modubar-0.0.1/modubar.py resides not supporting fcntl locks; here is a script to test this hypothesis.
  • syntax highlighted source (html)
  • source (plain text)
It isolates the file locking mechanism adesklets Python module uses that seems problematic here: if the script fails in a similar fashion than modubar.py from the $HOME/deskets/modubar-0.0.1 directory, it means this is effectively a fcntl locking problem... If its the case, try to invoke it from different places (/tmp for instance), to see if you get errors too, and let us now, Qbrick. Yours,
Sylvain
Top
Qbrick
n00b
n00b
User avatar
Posts: 17
Joined: Sun Sep 21, 2003 4:26 pm
Contact:
Contact Qbrick
Website

  • Quote

Post by Qbrick » Sun Sep 11, 2005 7:42 pm

Your hypothesis was correct !

/home is mounted nfs, and thats the main problem here.

Problem is now solved, the kernel on the server is updated to support nfs v.3.
And this was also helpfull, on the client side.
The solution appears to be to use nfsmount to mount the nfs shares on the client, rather than netmount.

Code: Select all

 /etc/init.d/netmount stop
rc-update del netmount
rc-update add nfsmount default
/etc/init.d/nfsmount start 
I found this here http://forums.gentoo.org/viewtopic-t-279527.html

Many thanks for the help, or I would still be looking in the wrong direction. :)
Last edited by Qbrick on Mon Sep 12, 2005 7:35 am, edited 3 times in total.
Top
syfou
n00b
n00b
Posts: 57
Joined: Tue Sep 07, 2004 6:05 am
Location: Montreal, Canada
Contact:
Contact syfou
Website

  • Quote

Post by syfou » Mon Sep 12, 2005 3:40 am

Qbrick wrote:Many thanks for the help, or I would still be looking in the wrong direction. :)
You are very welcomed. Adding a [SOLVED] suffix to this thread's subject could help others too. :-) I hope adesklets will prove useful to you. Yours,

[EDIT]
P.-S. Your cross-reference just above seems to be broken...
Sylvain
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic