On Fri, Mar 20, 2009 at 8:21 PM, Martin Gysel <[email protected]> wrote: > thanks you guys for taking the time > > For now (not much testing has been done...) the problem seems to be > fixed by simply call PyEval_InitThreads() in my __init__ function, >
Could you tell me please what exact Python version are you using? Stefan recently pushed a patch for Py < 2.4.2, with requires explicit calls to PyEval_InitThreads() at the module init function to enforce the creation of the GIL in advance... If you want a vile hack for making it work anyway with latest Cython 0.11 release, look at the very end of this file, just put these bit in some header, and include it with "cdef extern from ...": http://code.google.com/p/mpi4py/source/browse/trunk/src/atimport.h -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
