[Xcb] failing to compile xpyb

Eamon Walsh ewalsh.mailinglists at gmail.com
Mon Jan 3 22:08:43 PST 2011


On 12/29/2010 11:22 AM, Nicolas Chauvat wrote:
> 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 ?
>

Recent changes seem to have broken it, will try and take a look at it 
this week, thanks for the report.

--Eamon



More information about the Xcb mailing list