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

snakebacon v0.0.1 compiles but doesn't properly install on MacOSX #1

Closed
brews opened this issue Jul 21, 2017 · 3 comments
Closed

snakebacon v0.0.1 compiles but doesn't properly install on MacOSX #1

brews opened this issue Jul 21, 2017 · 3 comments
Labels

Comments

@brews
Copy link
Owner

brews commented Jul 21, 2017

snakebacon v0.0.1 compiles but doesn't properly install on MacOSX.

First, I downloaded source from the release. Created test_env in Conda and activate it. Run:

python setup.py build_ext --inplace
to compile cython and C/C++.

I then ran unittests on the locally-compiled code and everything seemed fine.

Local package install with:

python setup.py install --user
switched to a clean directory and tested the installed package in ipython. Got the error on import.

Here is the error in an ipython session:


> Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar  6 2017, 12:15:08) 
> Type 'copyright', 'credits' or 'license' for more information
> IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
> 
> In [1]: import snakebacon as sb
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> <ipython-input-1-4dc5dfae81e0> in <module>()
> ----> 1 import snakebacon as sb
> 
> ~/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/__init__.py in <module>()
> ----> 1 from .agedepth import AgeDepthModel
>       2 from .records import CalibCurve, DateRecord, ProxyRecord, DatedProxyRecord
>       3 from .records import read_14c, read_dates, read_proxy
>       4 
>       5 try:
> 
> ~/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/agedepth.py in <module>()
>       4 import numpy as np
>       5 
> ----> 6 from .mcmc import McmcSetup
>       7 from .records import DatedProxyRecord
>       8 
> 
> ~/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/mcmc.py in <module>()
>       4 
>       5 from snakebacon.records import DateRecord
> ----> 6 from snakebacon.bacon import run_baconmcmc
>       7 
>       8 
> 
> ~/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/bacon/__init__.py in <module>()
>       4 """
>       5 
> ----> 6 from snakebacon.bacon.baconwrap import run_baconmcmc
> 
> ImportError: dlopen(/Users/sbm/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/bacon/baconwrap.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libgsl.19.dylib
>   Referenced from: /Users/sbm/.local/lib/python3.5/site-packages/snakebacon-0.0.1-py3.5-macosx-10.7-x86_64.egg/snakebacon/bacon/baconwrap.cpython-35m-darwin.so
>   Reason: image not found
@brews brews added the bug label Jul 21, 2017
@brews
Copy link
Owner Author

brews commented Jul 21, 2017

The key here seems to be Library not loaded: @rpath/libgsl.19.dylib. Looks like it is having trouble with GSL when installed from Conda.

@brews
Copy link
Owner Author

brews commented Jul 21, 2017

Install seems to work if we use the conda-forge channel when creating our virtual environment.

I think we can add this to our testing environments. Sounds like it might be trickier when building the actual package. See: conda/conda#988 and conda/conda-build#532.

brews added a commit that referenced this issue Jul 21, 2017
@brews
Copy link
Owner Author

brews commented Jul 21, 2017

This is closed with 65e0143.

@brews brews closed this as completed Jul 21, 2017
brews added a commit that referenced this issue Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant