[Insight-users] failure to import Insighttoolkit in pythn

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Apr 3 14:53:54 EDT 2007


I think that adding /usr/lib/InsightToolkit/ in your LD_LIBRARY_PATH  
should fix your problem

Gaëtan



Le 3 avr. 07 à 20:29, anirudh vij a écrit :

> hi,
> i'll post my console output.please tell me what the problem could be.
>
>  /home/hackmanbash-3.1# python
> Python 2.4.4 (#2, Mar 27 2007, 14:41:43)
> [GCC 4.0.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import InsightToolkit
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/InsightToolkit/python/InsightToolkit.py", line 1,  
> in ?
>     from itkalgorithms import *
>   File "/usr/lib/InsightToolkit/python/itkalgorithms.py", line 1, in ?
>     from itknumerics import *
>   File "/usr/lib/InsightToolkit/python/itknumerics.py", line 1, in ?
>     from itkcommon import *
>   File "/usr/lib/InsightToolkit/python/itkcommon.py", line 1, in ?
>     from vxlnumerics import *
>   File "/usr/lib/InsightToolkit/python/vxlnumerics.py", line 4, in ?
>     from VXLNumericsPython import *
>   File "VXLNumericsPython.py", line 5, in ?
>     import _VXLNumericsPython
> ImportError: libitkvnl.so.3.0: cannot open shared object file: No  
> such file or directory
> >>>
>  /home/hackmanbash- 3.1# exit
>  /home/hackmansh-3.1$ locate libitkvnl.so.3.0
> /usr/lib/InsightToolkit/libitkvnl.so.3.0
> /usr/lib/InsightToolkit/libitkvnl.so.3.0.1
>
>
> there is a .pth file in python's site-packages directory that has / 
> usr/lib/InsightToolkit/python on one line.
> _______________________________________________
> 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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070403/46488d34/PGP.pgp


More information about the Insight-users mailing list