[ITK] [ITK-users] Issue installing SimpleITK via conda-recipe

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Oct 23 08:52:07 EDT 2014


Hello,

Can you please send me you CMakeCache.txt file from the build directory.

The simplest thing to do may be to remote using the anaconda "system" tiff library and just use the one ITK has. This can be done by modifying the conda recipe build script here [1].

Most likely there is some confusion which occurs during the CMake configuration about which tiff library to use.

Brad

[1] https://github.com/conda/conda-recipes/blob/master/simpleitk/build.sh#L35

On Oct 23, 2014, at 4:43 AM, Guillaume Lemaître <g.lemaitre58 at gmail.com> wrote:

> Hi all,
> 
> First, I am a newbie in Python and anaconda and sorry in advance if things seems trivial
> I tried to install SimpleITK through conda-recipe. The installation by itself seems to be fined but the test is failling:
> 
> ==== testing package: simpleitk-0.8.0.post29-py27_0 =====
> import: u'SimpleITK'
> Traceback (most recent call last):
>   File "/home/lemaitre/anaconda/conda-bld/test-tmp_dir/run_test.py", line 25, in <module>
>     import SimpleITK
>   File "/home/lemaitre/anaconda/envs/_test/lib/python2.7/site-packages/SimpleITK/__init__.py", line 1, in <module>
>     from .SimpleITK import *
>   File "/home/lemaitre/anaconda/envs/_test/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 28, in <module>
>     _SimpleITK = swig_import_helper()
>   File "/home/lemaitre/anaconda/envs/_test/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 24, in swig_import_helper
>     _mod = imp.load_module('_SimpleITK', fp, pathname, description)
> ImportError: /home/lemaitre/anaconda/envs/_test/lib/python2.7/site-packages/SimpleITK/_SimpleITK.so: symbol TIFFFieldDataType, version LIBTIFF_4.0 not defined in file libtiff.so.5 with link time reference
> TESTS FAILED: simpleitk-0.8.0.post29-py27_0
> 
> I got that the issue is linked with the libtiff but I believed that anaconda would manage the installation of the dependencies needed.
> 
> My system is:
> Ubuntu 14.04
> Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21) 
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
> 
> Cheers,
> 
> -- 
> LEMAÎTRE Guillaume
> PhD Candiate
> MSc Erasmus Mundus ViBOT (Vision-roBOTic)
> MSc Business Innovation and Technology Management
> 
> g.lemaitre58 at gmail.com
> 
> 
> ViCOROB - Computer Vision and Robotic Team
> Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona
> Tel. +34 972 41 98 12 - Fax. +34 972 41 82 59 
> http://vicorob.udg.es/
> LE2I - Le Creusot
> IUT Le Creusot, Laboratoire LE2I, 12 rue de la Fonderie, 71200 Le Creusot
> Tel. +33 3 85 73 10 90 - Fax. +33 3 85 73 10 97 
> http://le2i.cnrs.fr
>         
> https://sites.google.com/site/glemaitre58/
> Vice - Chairman of A.S.C. Fours UFOLEP
> Chairman of A.S.C. Fours FFC
> Webmaster of http://ascfours.free.fr
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141023/3300aa7e/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list