[Xcb] failing to compile xpyb

Nicolas Chauvat nicolas.chauvat at logilab.fr
Wed Dec 29 08:22:32 PST 2010


Hi,

I am trying to compile the qtile window manager.

I use the attached script under Debian/Lenny and Debian/Squeeze.

I get the following error::

  $ /usr/bin/python ./py_client.py -p
  /home/nico/tmp/local-qtile/lib/python2.5/site-packages
  /home/nico/tmp/local-qtile/share/xcb/xproto.xml
  Traceback (most recent call last):
    File "./py_client.py", line 623, in <module>
      module.generate()
    File "/home/nico/tmp/local-qtile/lib/python2.5/site-packages/xcbgen/state.py", 
    line 101, in generate
      item.out(name)
    File "./py_client.py", line 363, in py_struct
      _py_complex(self, name)
    File "./py_client.py", line 327, in _py_complex
      _py('        self.%s = xcb.List(self, count, %s, %s, %d)',
      _n(field.field_name), _py_get_expr(field.type.expr),
      field.py_listtype, field.py_listsize)
    File "./py_client.py", line 278, in _py_get_expr
      lenexp = _py_get_length_field(expr)
    File "./py_client.py", line 264, in _py_get_length_field
      if hasattr(expr.parent.parent, "opcode"):
  AttributeError: 'ListType' object has no attribute 'parent'

The versions I have are::

  proto c4497cdbf0640c376cdebb0a9e5ea62458e6ba51
  xcb   3c5813697169a33ecfd6ac0ab5641dec654f6612
  xpyb  68015314d8f95ee6029d07a4bf89bdd73c46ac9c

Since the changeset that added line 264 to py_client is fairly recent,
I am surprised it does not compile with the head of xcb and proto.

Any hint ?

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  


More information about the Xcb mailing list