I've finished the basic XRandR support in python-xlib, but I'm running into a strange error; when I run my test application, it gives me this output:

> python examples/xrandr.py 
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "examples/xrandr.py", line 135, in <module>
    Window(display.Display()).loop()
  File "examples/xrandr.py", line 46, in __init__
    r = self.d.xrandr_query_version()
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/ext/randr.py", line 167, in query_version
    minorVersion=3,
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/rq.py", line 1428, in __init__
    self.reply()
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/rq.py", line 1440, in reply
    self._display.send_and_recv(request = self._serial)
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/display.py", line 547, in send_and_recv
    gotreq = self.parse_response(request)
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/display.py", line 634, in parse_response
    gotreq = self.parse_request_response(request) or gotreq
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/display.py", line 738, in parse_request_response
    return req.sequence_number == request
  File "/home/whitelynx/devel/python-xlib-bzr/xrandr/examples/../Xlib/protocol/rq.py", line 1369, in __getattr__
    raise AttributeError(attr)
AttributeError: sequence_number

My code can be checked out from Bazaar at http://development.g33xnexus.com/bzr/python-xlib/xrandr/ or downloaded as a tarball at http://development.g33xnexus.com/~whitelynx/python-xlib-xrandr.tar.bz2

Does anyone have an idea what I'm doing wrong? I'm down to the debugging part, so as soon as the test app works and I add some more tests to it, I'll commit it to trunk.

--
David H. Bronke
Vice President of Project Development
G33X Nexus Entertainment
http://www.g33xnexus.com/

v3sw5/7Hhw5/6ln4pr6Ock3ma7u7+8Lw3/7Tm3l6+7Gi2e4t4Mb7Hen5g8+9ORPa22s6MSr7p6 hackerkey.com
Support Web Standards! http://www.webstandards.org/