[Insight-users] ITK V4.0.0 with Python Wrapping

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Feb 8 10:26:07 EST 2012


Le 8 févr. 12 à 16:03, Gaëtan Lehmann a écrit :

>
> Hi,
>
> Le 8 févr. 12 à 15:38, Mathieu Stumpf a écrit :
>
>>> Hi there,
>>>
>>> I am missing something during the compile/installation of ITK  
>>> V4.0.0 on
>> a 64-bit openSUSE machine. I have used previous versions
>>> of ITK from within python, but I have missed something under V4.0.0.
>>>
>>> From within cmake, I have ticked the boxes 'BUILD_SHARED_LIBS',
>> 'ITK_USE_REVIEW' and 'WRAP_ITK_PYTHON' and generated a Makefile.
>>> The compilation and install executes without error.
>>>
>>> When I go into python, I get the following,
>>> 	Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
>>> 	Type "help", "copyright", "credits" or "license" for more  
>>> information.
>>> 	>>> import itk
>>> 	>>> itk.Version
>>> 	PySwigIterator not found in module ITKPyBase because of exception:
>>> 	 'module' object has no attribute 'PySwigIterator'
>>> 	PySwigIterator not found in module ITKPyBase because of exception:
>>> 	 'module' object has no attribute 'PySwigIterator'
>>> 	<class 'ITKCommonBasePython.itkVersion'>
>>>
>>> Any hints or suggestions to resolve this will be most appreciated,
>> thanks
>
> I'm not sure what is causing that.
> Could you tell us which swig version you've used?

Ok, I've reproduced it with swig 2.0.4 - not sure how I missed it  
before.
PySwigIterator won't be exposed anymore in the next ITK version.

Regards,

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://mima2.jouy.inra.fr  http://www.itk.org
http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120208/c1a4fa59/attachment-0001.pgp>


More information about the Insight-users mailing list