hi all, I've installed the latest 2.9.4.0 build and demos (20120628)
on WinVista, py2.6 and left checked the flags to install cairo during
the installation process. I run the cairo demos but they didn't work.
So I installed the pycairo library from installer found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
but It doesn't work yet. The RuntimeError exception is raised on
'import wx.lib.wxcairo' and the message is 'Unable to find the cairo
shared library'. What am I missing?
It is probably a PATH issue. With the cairo DLLs in the same folder as the wx DLLs then wx is able to find and dynamically load the DLLs for use in the Cairo backend for the wx.GraphicsContext automatically, but PyCairo's extension module does not know to look there. You'll either need to add that folder to the PATH, or move the non-wx DLLs from there to someplace else that is on the PATH so both wx and PyCairo can find them.
···
On 7/3/12 12:41 AM, Marco Prosperi wrote:
hi all, I've installed the latest 2.9.4.0 build and demos (20120628)
on WinVista, py2.6 and left checked the flags to install cairo during
the installation process. I run the cairo demos but they didn't work.
So I installed the pycairo library from installer found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
but It doesn't work yet. The RuntimeError exception is raised on
'import wx.lib.wxcairo' and the message is 'Unable to find the cairo
shared library'. What am I missing?