[ITK] problem with installing SimpleITK with conda (Linux)

Kayhan Batmanghelich batmanghelich at gmail.com
Thu May 28 15:46:35 EDT 2015


Hi all,

I recently tried to install SimpleITK on a new Linux cluster using conda
install and I ran into the these problems (please se below).
Previously I used eas_install (on different machine) and it was fine but I
prefer to use conda install and it seems a library libpng is missing. I
tried to install it but still it does not work and I cannot figure out what
is wrong:

This is the error I get on the

[....]
The following NEW packages will be INSTALLED:

    simpleitk:  0.9.0-py27_0

The following packages will be UPDATED:

    conda:      3.11.0-py27_0 --> 3.12.0-py27_0
    libpng:     1.5.13-1      --> 1.6.17-0
    python:     2.7.9-2       --> 2.7.9-3
    requests:   2.6.2-py27_0  --> 2.7.0-py27_0
    setuptools: 15.2-py27_0   --> 16.0-py27_0

Proceed ([y]/n)? y

Fetching packages ...
libpng-1.6.17- 100% |################################| Time: 0:00:00 540.39 kB/s
python-2.7.9-3 100% |################################| Time: 0:00:01   7.37 MB/s
requests-2.7.0 100% |################################| Time: 0:00:00 943.37 kB/s
setuptools-16. 100% |################################| Time: 0:00:00 665.72 kB/s
simpleitk-0.9. 100% |################################| Time: 0:00:03  13.17 MB/s
conda-3.12.0-p 100% |################################| Time: 0:00:00 383.26 kB/s
Extracting packages ...
[      COMPLETE      ]|###################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|###################################################| 100%
Linking packages ...
[      COMPLETE      ]|###################################################| 100%
[batmangh at comet-ln2 ~]$ ipython
Python 2.7.9 |Anaconda 2.2.0 (64-bit)| (default, Apr 14 2015, 12:54:25)
Type "copyright", "credits" or "license" for more information.

IPython 3.0.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import SimpleITK as sitk
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-3dd12c25dd88> in <module>()
----> 1 import SimpleITK as sitk

/home/batmangh/anaconda/lib/python2.7/site-packages/SimpleITK/__init__.py
in <module>()
----> 1 from .SimpleITK import *

/home/batmangh/anaconda/lib/python2.7/site-packages/SimpleITK/SimpleITK.py
in <module>()
     26                 fp.close()
     27             return _mod
---> 28     _SimpleITK = swig_import_helper()
     29     del swig_import_helper
     30 else:

/home/batmangh/anaconda/lib/python2.7/site-packages/SimpleITK/SimpleITK.py
in swig_import_helper()
     22         if fp is not None:
     23             try:
---> 24                 _mod = imp.load_module('_SimpleITK', fp,
pathname, description)
     25             finally:
     26                 fp.close()

ImportError: libpng15.so.15: cannot open shared object file: No such
file or directory

conda install --channel https://conda.binstar.org/anaconda libpng

Fetching package metadata: ......
Solving package specifications: .................
# All requested packages already installed.
# packages in environment at /home/batmangh/anaconda:
#
libpng                    1.6.17                        0

but still has the same issue.

Any suggestion?

Thanks,
Kayhan
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150528/bcf18cd9/attachment-0001.html>


More information about the Community mailing list