Hello,
In any event, I was able to solve the problem by using "install_name_tool"
to redirect to the anaconda .dylib file with the following command:
"install_name_tool -change libpython2.7.dylib
/Users/owner/anaconda/lib/libpython2.7.dylib
/Users/owner/anaconda/lib/python2.7/site-packages/_openbabel.so"
I got the fix from:
https://groups.cern.ch/group/roottalk/Lists/Archive/Flat.aspx?RootFolder=/group/roottalk/Lists/Archive/trouble+installing+on+mac+os+(mavericks+-+but+problem+may+not+be+specific+to+mavericks)&FolderCTID=0x01200200A201AF59FD011C4E9284C43BF0CDA2A4
Cheers,
Trevor
On Thu, Feb 6, 2014 at 2:41 PM, Trevor T <tant...@gmail.com> wrote:
> Hello!
>
> I have been trying to compile openbabel to work with the popular
> "anaconda" python distribution on my Mac OS X Maverik unsuccessfully.
> Investigation of the generated "_openbabel.so" file with otool indicates
> that the default libpython2.7.dylib is being used in the compiling process
> instead of the one I specified ( http://pastebin.com/raw.php?i=caHBAnLE ).
>
> This is the cmake command I am using:
>
> cmake -DBUILD_GUI=OFF -DPYTHON_BINDINGS=ON
> -DPYTHON_LIBRARY=/Users/owner/anaconda/lib/libpython2.7.dylib
> -DPYTHON_INCLUDE_DIR=/Users/owner/anaconda/include/python2.7
> "-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
> "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.8" ~/openbabel-2.3.2
>
> Any ideas on how to get the installation to respect my specified .dylib
> file? Unfortunately, with the current configuration, trying to import
> pybel within the anaconda environment gives me this error:
>
> Fatal Python error: PyThreadState_Get: no current thread
>
> aborted
>
> Any help would be more than appreciated.
>
> Thank you,
>
> Trevor
>
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss