The error when running is: File "/usr/lib/python2.5/site-packages/Xlib/display.py", line 30, in <module> import protocol.display File "/usr/lib/python2.5/site-packages/Xlib/protocol/display.py", line 749 SyntaxError: Non-ASCII character '\xf6' in file /usr/lib/python2.5/site-packages/Xlib/protocol/display.py on line 749, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details As caused by the credits on line 749 contains an o with double dots over it (not sure of the precise name, sorry). Changing this to a normal o lets it all work normally. The problem could also be fixed by adding the correct encoding hint above the comment...
Created attachment 102170 [details, diff] Patch against dev-python/python-xlib-0.12-r1 This should fix it.
python-xlib-0.13 (released August 6th, 2006) fixes the encoding issue. grepping its Xlib/protocol/display.py shows "# -*- coding: latin-1 -*-". Unfortunately PyPanel-2.4 doesn't run with 0.13, at least on my machine.
Fixed.