I've got this when running Cython to generate petsc4py sources.

cython --cleanup 9 -I. -Iinclude -w src petsc4py.PETSc.pyx -o petsc4py_PETSc.c
python: Modules/gcmodule.c:276: visit_decref: Assertion
`gc->gc.gc_refs != 0' failed.


I've tried to manually remove the Cython extension modules

$ rm `find ~/lib/python/Cython -name '*.so'`

but then (I reported this some time ago), things fails (because of
pure-python mode)

cython --cleanup 9 -I. -Iinclude -w src petsc4py.PETSc.pyx -o petsc4py_PETSc.c
Traceback (most recent call last):
  File "/u/dalcinl/bin/cython", line 7, in <module>
    from Cython.Compiler.Main import main
  File "/u/dalcinl/lib/python/Cython/Compiler/Main.py", line 17, in <module>
    import Code
  File "/u/dalcinl/lib/python/Cython/Compiler/Code.py", line 11, in <module>
    from Scanning import SourceDescriptor
  File "/u/dalcinl/lib/python/Cython/Compiler/Scanning.py", line 14, in <module>
    import cython
ImportError: No module named cython


I have no time to dive onto this. I'm in the process of releasing
petsc4py alongside with core PETSc. Could any of you tell me what
cython-devel revision would be more or less safe to use?


-- 
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

Reply via email to