-
Jason Sundram
c++ python segmentation-fault python-c-api pycairo
I am running OSX Lion and trying to import the python module for goocanvas, using python2.7.I managed to successfully compile pygoocanvas-0.14.1, but when I try to import goocanvas through the python2.7 console, I get a segfault. After some debugging, I’m led to this code:DL_EXPORT (void) initgoocanvas (void) {PyObject *m, *d;fprintf(stderr,”init<< \n”);// Pycairo_IMPORT; // XXX removed, it expands to the line below, anywaysPycairo_CAPI = (Pycairo_CAPI_t*) PyCObject_Import(“cairo”, “CAP
-
sbaechler
python distutils cairo py2app pycairo
I just fixed a bug in a two year old python program and now I’m having big trouble getting it to compile again. I simply cannot get Python, Cairo, wx and distutils to work together.On OSX I managed to get Python 2.7 to import Cairo and WX but py2app does not work. The error is something about unknown architecture.On Windows 7 I have not been able to successfully import cairo. I installed py2cairo and put the libcairo-2.dll in Windows/System32 but still get an import error. I even copied msvcr90.