Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap-py won't build against Anaconda OSX #36

Closed
karkumar opened this issue Apr 11, 2014 · 2 comments
Closed

Snap-py won't build against Anaconda OSX #36

karkumar opened this issue Apr 11, 2014 · 2 comments

Comments

@karkumar
Copy link
Contributor

The linker appears to be linking against the wrong set of dynamic libraries when building against Python 2.7.6 :: Anaconda 1.9.1 :: OSX 10.9.2

The following error appears:

env PYTHONPATH=../swig python tneanet.py 
Fatal Python error: PyThreadState_Get: no current thread
make[1]: *** [tneanet] Abort trap: 6
make: *** [test] Error 2

The problem seems to be that _snap.so is being linked to the system python library instead of the anaconda version. When you run ../snap-python/otool -L _snap.so you get :

otool -L _snap.so 
_snap.so:
    _snap.so (compatibility version 0.0.0, current version 0.0.0)
    /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.5)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

You can fix the error by running

install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /[PATH TO ANACONDA]/anaconda/lib/libpython2.7.dylib
karkumar added a commit to karkumar/snap-python that referenced this issue May 31, 2014
@roks roks closed this as completed Jun 17, 2014
@rjurney
Copy link

rjurney commented Sep 12, 2014

When I run this command, I get:

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input

@roks
Copy link
Contributor

roks commented Sep 17, 2014

You need to supply command line arguments. I also suggest that you try Snap.py 1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants