[Insight-users] WrapITK interference?

Mario Ceresa mario.ceresa at torrescalla.it
Fri Mar 7 08:04:17 EST 2008


Hi all,
The python interpreter dies with the following error:

python: Objects/stringobject.c:107: PyString_FromString: Assertion
`str != ((void *)0)' failed.
Aborted

whenever I run the following code:
--------------------------------------------------------------------------------
from xml.dom.ext.reader import Sax2
import itk

im = itk.ImageFileReader.IUS2.New()

reader = Sax2.Reader()
-----------------------------------------------------------------------------------
It happen on both my laptop (AMD 64bit but with linux 32 bit installed
) and my workstation (Full 64 bit linux)
On both machines I have installed:

Fedora 8
ITK/WrapITK + this patch
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/patch/optional/python-interface-patches.patch

PyXML 0.8.4.7

The problem doesn't arise if I comment out the filter creation (that
is, AFAIK, if the itk bindings are not actually loaded), so I'm
thinking that wrapitk is somewhat interfering with the interpreter,
but I really have no idea on how to do further investigation!

Thanks for any help

Mario


More information about the Insight-users mailing list