File "/usr/bin/pypanel", line 923, in ?
PyPanel(display.Display())
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 67, in __init__
apply(protocol.display.Display.__init__, (self, ) + args, keys)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/display.py", line 122, in __init__
self.default_screen = min(self.default_screen, len(self.info.roots) - 1)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/rq.py", line 1371, in __getattr__
raise AttributeError(attr)
AttributeError: roots
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
File "/usr/bin/pypanel", line 923, in ?
PyPanel(display.Display())
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 67, in __init__
apply(protocol.display.Display.__init__, (self, ) + args, keys)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/display.py", line 122, in __init__
self.default_screen = min(self.default_screen, len(self.info.roots) - 1)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/rq.py", line 1371, in __getattr__
raise AttributeError(attr)
AttributeError: roots
Arch linux, openbox 3.2
This is a problem with Python-Xlib. Under certain conditions, the receive buffer size isn't large enough. To fix it, open the following file -
/usr/lib/python<version>/site-packages/Xlib/protocol/display.py
and change line 530 from -
recv = self.socket.recv(2048)
to -
recv = self.socket.recv(4096)
4096 should be large enough ..
Many thanks, has helped... All works...
Forgive for my English