[Insight-users] WrapITK Python and SWIG

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Feb 23 12:25:14 EST 2007


Hi,

Can you tell us is the command

   ctest -R Python

give some errors ?

thanks,

Gaetan

On Fri, 23 Feb 2007 17:33:51 +0100, Erik Anderson <eranders at sci.utah.edu>  
wrote:

> I have recently gotten WrapITK built and installed, but I am running  
> into some strange behavior.
>
> After importing itk, I issue the following:
>
>  >>> ptype = itk.UC
>  >>> dim = 2
>  >>> itype = itk.Image[ptype,dim]
>
> And the following error is raised:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/home/eranders/env/itk/Wrapping/WrapITK/Python/itkLazy.py", line  
> 18, in __getattribute__
>     itkBase.LoadModule(module, namespace)
>   File "/home/eranders/env/itk/Wrapping/WrapITK/Python/itkBase.py", line  
> 24, in LoadModule
>     swig.__dict__.update(this_module.swig.__dict__)
> AttributeError: 'module' object has no attribute 'swig'
>
> Just to be sure, I re-installed swig and cable swig but the error  
> persists.  Has anyone run into this or might be able to shed some light  
> on the error?
>
> Thanks,
> Erik Anderson
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



-- 
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://voxel.jouy.inra.fr


More information about the Insight-users mailing list