[Freewx-maint] Bug#884411: Bug#884411: python-wxgtk3.0: Cairo widgets fail after apt upgrade

Scott Talbert swt at techie.net
Fri Dec 15 05:36:00 UTC 2017

On Thu, 14 Dec 2017, Martin Manns wrote:

> $ ./demo.py
> Traceback (most recent call last):
>  File "Cairo.py", line 33, in OnPaint
>    self.Render(dc)
>  File "Cairo.py", line 47, in Render
>    ctx = wx.lib.wxcairo.ContextFromDC(dc)
>  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/lib/wxcairo.py", line
> 137, in ContextFromDC
>    ctx = pycairoAPI.Context_FromContext(ctxptr, pycairoAPI.Context_Type, None)
> AttributeError: 'Pycairo_CAPI' object has no attribute 'Context_FromContext'

It looks like something must have changed with pycairo.  I'll try to come 
up with a patch.


More information about the Freewx-maint mailing list