FS#26770 - [wxpython] wxcairo Pycairo_CAPI is broken with pycairo >= 1.10

Attached to Project: Arch Linux
Opened by Matthias Schiffer (NeoRaider) - Sunday, 06 November 2011, 22:01 GMT
Last edited by Eric Belanger (Snowman) - Monday, 07 November 2011, 00:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
With the current versions of wxpython and python2-cairo the wxcairo C-API doesn't work anymore. The error messages look like:

Traceback (most recent call last):
File "/home/neoraider/Devel/ros/rx/xdot/src/xdot/wxxdot.py", line 185, in OnPaint
ctx = wxcairo.ContextFromDC(dc)
File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/lib/wxcairo.py", line 124, in ContextFromDC
ctx = pycairoAPI.Context_FromContext(ctxptr, pycairoAPI.Context_Type, None)
AttributeError: 'Pycairo_CAPI' object has no attribute 'Context_FromContext'

The attached patch from wxpython SVN trunk (Rev 69181) fixes this.


Additional info:
* wxpython 2.8.12.1-1
* python2-cairo 1.10.0-1


Steps to reproduce:
rxgraph from the ROS (Robot Operating System) Framework is the only application I could find using this, but it is
rather hard to install on Arch because it uses a special installer script that doesn't know about Arch's python/python2 issue.
This task depends upon

Closed by  Eric Belanger (Snowman)
Monday, 07 November 2011, 00:39 GMT
Reason for closing:  Fixed

Loading...