[Insight-users] SimpleITK: Fatal Python error on import

Andriy Fedorov fedorov at bwh.harvard.edu
Wed Oct 19 12:39:27 EDT 2011


Hi,

I compiled SimpleITK from source, and am now trying to install it so
that python can see the package. Maybe I am not doing it correctly,
but I have a runtime error while trying to import the package. Any
suggestions?

My system details: OSX 10.6.8 (Snow Leopard), gcc-4.2.1, python 2.7.1.
Python has been installed from an Enthought distribution.

If I need to submit a bug report, can someone point me to the right
location to do this? Is this regular ITK MAntis or not?

[fedorov at bear site-packages] easy_install SimpleITK-0.3.0-py2.7.egg
Processing SimpleITK-0.3.0-py2.7.egg
Copying SimpleITK-0.3.0-py2.7.egg to
/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages
Adding SimpleITK 0.3.0 to easy-install.pth file

Installed /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/SimpleITK-0.3.0-py2.7.egg
Processing dependencies for SimpleITK==0.3.0
Finished processing dependencies for SimpleITK==0.3.0
[fedorov at bear site-packages] ipython
Enthought Python Distribution -- http://www.enthought.com

Python 2.7.1 |EPD 7.0-2 (64-bit)| (r271:86832, Dec  3 2010, 15:56:20)
Type "copyright", "credits" or "license" for more information.

IPython 0.10.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import SimpleITK
Fatal Python error: PyThreadState_Get: no current thread
Abort trap


--
Andriy Fedorov, Ph.D.

Research Fellow
Brigham and Women's Hospital
Harvard Medical School
75 Francis Street
Boston, MA 02115 USA
fedorov at bwh.harvard.edu
(617) 525-6258 (office)


More information about the Insight-users mailing list