Hello,<div><br></div><div>I seem to have a problem with ITK installation on 64-bit Ubuntu 12.04. Previously I have been using ITK on another workstation (Debian OS) without any problems. It seems that somehow ITK Python interface cannot find the shared object (.so) files. </div><div><br></div><div>When I import ITK in Python, everything seems to work nicely:</div><div><br></div><div> In [1]: import itk</div><div><br></div><div>In [2]: import sys</div><div><br></div><div>In [3]: print sys.path</div><div>['', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/<b>usr/local/lib/ITK-4.6/Python', '/usr/local/lib'</b>, '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/lib/python2.7/dist-packages/IPython/extensions', <b>'/usr/local/lib/ITK-4.6/Python/Configuration/..', '/usr/local/lib/ITK-4.6/Python/Configuration/../../lib'</b>]</div><div><br></div><div>In [4]: </div><div><br></div><div>However, when I try to do something with ITK, the following happens:</div><div><br></div><div>In [5]: reader = itk.ImageFileReader.IUC3.New()</div><div>---------------------------------------------------------------------------</div><div>AttributeError                            Traceback (most recent call last)</div><div>/home/sami/Programming/GIT/image-processing/Test/<ipython-input-5-8e289c4078ab> in <module>()</div><div>----> 1 reader = itk.ImageFileReader.IUC3.New()</div><div><br></div><div>/usr/local/lib/ITK-4.6/Python/itkLazy.py in __getattribute__(self, attr)</div><div>     40             module = self.__lazy_attributes[attr]</div><div>     41             namespace = {}</div><div>---> 42             itkBase.LoadModule(module, namespace)</div><div>     43             # Load into 'namespace' first, then self.__dict__ (via setattr) to</div><div><br></div><div>     44             # prevent the warnings about overwriting the 'NotLoaded' values</div><div><br></div><div><br></div><div>/usr/local/lib/ITK-4.6/Python/itkBase.py in LoadModule(name, namespace)</div><div>     49         if namespace is not None:</div><div>     50             swig = namespace.setdefault('swig', imp.new_module('swig'))</div><div>---> 51             swig.__dict__.update(this_module.swig.__dict__)</div><div>     52 </div><div>     53             # don't worry about overwriting the symbols in namespace -- any</div><div><br></div><div><br></div><div><b>AttributeError: 'module' object has no attribute 'swig'</b></div><div><br></div><div>In [6]: </div><div><br></div><div>I suppose, some environment variable has not been set correctly. DYLD_LIBRARY_PATH seems to point into <i>/usr/local/lib</i>.</div><div><br></div><div>The examples are for a GIT development build of ITK. I get the same error with ITK 4.5.1, so it seems something is a bit different in Ubuntu than in Debian. Any ideas?</div><div><br></div><div>Best,</div><div><br></div><div>Sami</div><div><br></div><div><br></div><div><br></div>