[Insight-users] failure to import Insighttoolkit in pythn

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Apr 3 15:16:38 EDT 2007


Le 3 avr. 07 à 21:02, anirudh vij a écrit :

> a million thanks to you Gaetan.I added /usr/lib/InsightToolkit to  
> ld.so.conf and ran ldconfig.everthing works now.
> I have already installed itk on my comp withoput wrap_itk suport.if  
> i recompile itk and reinstall over the existing build,will the  
> present build get broken?

I think that it should work, but I haven't tested thougth.
Anyway, you can simply remove the /usr/lib/InsightToolkit before  
running "make install" to be sure that everything is clean

Gaëtan

>
> On 4/4/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
> 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
>
>
>
>
>

--
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/71526fff/PGP-0001.pgp


More information about the Insight-users mailing list