Errors accessing Cairo from wx_cairocffi.py with OS X (10.11)
David Hughes <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
I have installed Cairo using MacPorts according to the guidelines in Phoenix: $ port installed The following ports are currently installed: ... cairo @1.14.6_0+quartz (active) ... It gets installed to /opt/local/lib/libcairo.dylib which isn't on the search path in cairoccfi.dlopen() but adding export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib to the fwpy script that runs Python seems to do the trick. However when I try to use Cairo, for example from demo/Cairo.py I get the error File "/Volumes/IVY_E/GitHub/Phoenix/demo/Cairo.py", line 34, in OnPaint self.Render(dc) File "/Volumes/IVY_E/GitHub/Phoenix/demo/Cairo.py", line 48, in Render ctx = wxcairo.ContextFromDC(dc) File "/SoftDev/PyDevSrc7/DpMac_V710/env2.7/lib/python2.7/site-packages/wx/lib/wxcairo/__init__.py", line 79, in ContextFromDC return _ContextFromDC(dc) File "/SoftDev/PyDevSrc7/DpMac_V710/env2.7/lib/python2.7/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 56, in _ContextFromDC surfaceptr = cairo_c.cairo_quartz_surface_create_for_cg_context( AttributeError: cffi library '/opt/local/lib/libcairo.dylib' has no function, constant or global variable named 'cairo_quartz_surface_create_for_cg_context' I've tried different variations within MacPorts - even tried using Brew - also Python 3.4 but all with the same effect. Any suggestions please? -- Regards David Hughes Forestfield Software -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.