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

Andriy Fedorov fedorov at bwh.harvard.edu
Fri Oct 28 18:51:15 EDT 2011


Brad,

Thanks for the update. I will follow your instructions and recompile
it. I will update the bug report when that is done.

AF


On Fri, Oct 28, 2011 at 2:32 PM, Bradley Lowekamp
<blowekamp at mail.nih.gov> wrote:
> Hello Andriy,
> I was able to successfully configure, build and test SimpleITK with
> EPDFree7.1. I posted more details under your created JIRA issue.
> The tricky part is setting the advanced CMake variables for the EPD's
> version of python I had to set the following under ccmake's advanced
> settings:
>
> PYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/7.1/bin/python
> PYTHON_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/7.1/Headers
> PYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/7.1/lib/libpython2.7.dylib
>
> Hope this helps,
> Brad
> On Oct 19, 2011, at 5:43 PM, Andriy Fedorov wrote:
>
> Thanks, Matt. An issue has been created here:
> https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK-198
>
> On Wed, Oct 19, 2011 at 12:52 PM, Matt McCormick
> <matt.mccormick at kitware.com> wrote:
>
> Hi Andriy,
>
> Thanks for the report.  An issue can be created here:
>
> https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK
>
> Thanks,
>
> Matt
>
>
>
> On Wed, Oct 19, 2011 at 12:39 PM, Andriy Fedorov
>
> <fedorov at bwh.harvard.edu> wrote:
>
> 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)
>
> _____________________________________
>
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
> ========================================================
>
> Bradley Lowekamp
>
> Medical Science and Computing for
>
> Office of High Performance Computing and Communications
>
> National Library of Medicine
>
> blowekamp at mail.nih.gov
>
>
>


More information about the Insight-users mailing list