[Insight-users] SimpleITK build error

Andriy Fedorov fedorov at bwh.harvard.edu
Sun Oct 16 11:54:29 EDT 2011


Hi,

This patch solved the build problem, thanks.

I 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?

[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)



On Sun, Oct 16, 2011 at 9:33 AM, Johnson, Hans J <hans-johnson at uiowa.edu> wrote:
> This is where I got the information:
>
>
> https://gist.github.com/845545
>
>
>
> The patch is:
>
> https://github.com/satra/virtualenv/tree/fix/EPDpatch
>
> https://github.com/satra/virtualenv/commit/458fa9acb72b789499676b1760f699e4
> 518e4822
>
>
> All I did was to replace the virtualenv.py file in SimpleITK with this
> version.
>
>
> Hans
>
>
>
>
> On 10/15/11 7:17 PM, "Matt McCormick" <matt.mccormick at kitware.com> wrote:
>
>>Hi Hans,
>>
>>Do you remember the where the virtualenv update was, I think it was on
>>the Mac, that fixed this issue?  It looks like he is using the
>>Enthought Python Distribution, and hopefully a similar fix would work.
>>
>>Thanks,
>>Matt
>>
>>On Sat, Oct 15, 2011 at 7:04 PM, Andriy Fedorov <fedorov at bwh.harvard.edu>
>>wrote:
>>> Hi,
>>>
>>> I have the error below while trying to compile SimpleITK from source.
>>> I am following instructions here:
>>> http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted, with
>>> Python bindings only.
>>>
>>> OSX 10.6.8 (Snow Leopard), gcc-4.2.1, python 2.7.1.
>>>
>>> [ 63%] Built target ConfigureFileBuildtime
>>> Linking CXX shared module
>>> /Users/fedorov/Software/SimpleITK-build/lib/_SimpleITK.so
>>> Creating Python virtualenv
>>> Already using interpreter
>>> /Library/Frameworks/EPD64.framework/Versions/Current/bin/python2.7
>>> New python executable in
>>>
>>>/Users/fedorov/Software/SimpleITK-build/SimpleITK-build/Testing/Installat
>>>ion/PythonVirtualenv/bin/python2.7
>>> Also creating executable in
>>>
>>>/Users/fedorov/Software/SimpleITK-build/SimpleITK-build/Testing/Installat
>>>ion/PythonVirtualenv/bin/python
>>> ERROR: The executable
>>>
>>>/Users/fedorov/Software/SimpleITK-build/SimpleITK-build/Testing/Installat
>>>ion/PythonVirtualenv/bin/python2.7
>>> is not functioning
>>> ERROR: It thinks sys.prefix is
>>> u'/Library/Frameworks/EPD64.framework/Versions/7.0' (should be
>>>
>>>'/Users/fedorov/Software/SimpleITK-build/SimpleITK-build/Testing/Installa
>>>tion/PythonVirtualenv')
>>> ERROR: virtualenv is not compatible with this system or executable
>>> make[5]: *** [/Users/fedorov/Software/SimpleITK-build/lib/_SimpleITK.so]
>>> Error 100
>>> make[4]: *** [Wrapping/CMakeFiles/_SimpleITK.dir/all] Error 2
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build]
>>>Error 2
>>> make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Can someone help?
>>>
>>> AF
>>> _____________________________________
>>> 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
>>>
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> ________________________________
>


More information about the Insight-users mailing list