[Insight-users] need help using itk with python

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Mar 22 02:35:43 EST 2007


Hi,

I finally had the time to complete the installation of itk (with rpm) on  
my host.
I can't reproduce the problem you have. It will be difficult to fix  
without that, I'm afraid.

Do you have removed the old files before the installation of the new  
wrapitk ?

Thanks,

Gaetan


On Sat, 17 Mar 2007 18:22:30 +0100, Erik Anderson <eranders at sci.utah.edu>  
wrote:

> Gaetan,
>     I cannot speak for the others, but the problem described below was  
> only tested on Linux.  Specifically, Ubuntu Linux 32 and 64 bit versions.
>
> Erik
>
> Gaëtan Lehmann wrote:
>>
>> I'll have access to a windows system next tuesday - I'll try to found  
>> what is wrong locally
>>
>> Gaetan
>>
>>
>> Le Sat, 17 Mar 2007 00:19:20 +0100, E Anderson <eranders at sci.utah.edu>  
>> a écrit:
>>
>>> Gaetan,
>>>     I am also having problems getting ITK and WrapITK to work in the  
>>> new 3.2 release.  After building the new version exactly as I had with  
>>> 3.1, I get the following error regardless of any path information  
>>> (PYTHONPATH or LD_LIBRARY_PATH).
>>>
>>>  >>> import itk
>>>  >>> dir(itk.Image)
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in ?
>>>   File "/usr/local/lib/InsightToolkit/WrapITK/Python/itkLazy.py", line  
>>> 18, in __getattribute__
>>>     itkBase.LoadModule(module, namespace)
>>>   File "/usr/local/lib/InsightToolkit/WrapITK/Python/itkBase.py", line  
>>> 77, in LoadModule
>>>     LoadModule(dep, namespace)
>>>   File "/usr/local/lib/InsightToolkit/WrapITK/Python/itkBase.py", line  
>>> 85, in LoadModule
>>>     if not swigModuleName in sys.modules: module =  
>>> loader.load(swigModuleName)
>>>   File "/usr/local/lib/InsightToolkit/WrapITK/Python/itkBase.py", line  
>>> 192, in load
>>>     return imp.load_module(name, fp, pathname, description)
>>>   File  
>>> "/usr/local/lib/InsightToolkit/WrapITK/lib/VXLNumericsPython.py", line  
>>> 33, in ?
>>>     from vcl_complex import *
>>>   File "/usr/local/lib/InsightToolkit/WrapITK/lib/vcl_complex.py",  
>>> line 5, in ?
>>>     import _vcl_complex
>>> ImportError: No module named _vcl_complex
>>>
>>> I cannot reproduce this problem in version 3.1, however, I've noted it  
>>> is present in both 32 and 64 bit builds, and the build process yielded  
>>> 0 errors.  It seems that it may have something to do with the 'make  
>>> install' command as I had the environment working until I tried to  
>>> install it (after setting the appropriate env. variables to reflect  
>>> this)
>>>
>>> Thank you,
>>> Erik Anderson
>>>
>>> Gaëtan Lehmann wrote:
>>>>
>>>> I can't understand what is wrong, without direct investigation.
>>>> Perhaps is there a problem with your python or something else ?
>>>>
>>>> Sorry to not being able to help.
>>>> Please, let me know if you find something
>>>>
>>>> Gaetan
>>>>
>>>>
>>>> Le Fri, 16 Mar 2007 22:43:29 +0100, Matei Stroila  
>>>> <matei.stroila at gmail.com> a écrit:
>>>>
>>>>> Yes, it is there.
>>>>>
>>>>> Matei
>>>>>
>>>>> On 3/16/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>>>>>>
>>>>>> can you confirm that
>>>>>>
>>>>>> > D:/build/InsightToolkit-3.2.0-bin/bin/Release
>>>>>>
>>>>>> contains the file _VXLNumericsPython.dll ?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Gaetan
>>>>>>
>>>>>>
>>>>>> -- 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
>>>>>>
>>>>
>>>>
>>>>
>>>> --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
>>>> _______________________________________________
>>>> 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



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