(summarized/paraphrased based on a couple of questions I’ve gotten over email)
I’m running on el capitan and getting a failure when I try to run a MAF tutorial ipython notebook. The error message looks like ImportError: dlopen(*/anaconda/opt/lsst/daf_persistence/python/lsst/daf/persistence/_persistenceLib.so, 10): Library not loaded: @rpath/libboost_system.dylib Referenced from: */anaconda/opt/lsst/boost/lib/libboost_filesystem.dylib Reason: image not found
or ImportError: dlopen(*/lsst/DarwinX86/daf_persistence/w.2016.06/python/lsst/daf/persistence/_persistenceLib.so, 10): Library not loaded: libdaf_persistence.dylib Referenced from: */lsst/DarwinX86/daf_persistence/w.2016.06/python/lsst/daf/persistence/_persistenceLib.so Reason: image not found
Both of these errors are related to the fact that the DYLD_LIBRARY_PATH can be stripped when using an ipython notebook on el capitan, either with older versions of eups (pre 2.0.1) or with older versions of anaconda or if you use ‘ipython notebook’ instead of ‘jupyter notebook’.
The solution is to update anaconda and jupyter (I know ‘jupyter --version’ > 4.1.0 works), then start notebooks using jupyter notebook (not ipython notebook), and make sure you have a version of eups > 2.0.1.
If you are using a conda installation of the stack, you can update eups by “conda upgrade eups”.
If you are using a source (eups distrib install) installation of the stack, the easiest way to upgrade eups is to reinstall the whole stack from scratch (rerun newinstall.sh). You can also upgrade eups by:
You can use git to upgrade eups as:
git clone firstname.lastname@example.org:RobertLuptonTheGood/eups
setup -r .
Pay attention to the make show output before you run make install.
(per @RHL, from How do we update EUPS?).
The issue was also resolved upstream with the most-recent update to ipython conda package (version 4.1.2-py27_2). Run conda update ipython and loading of stack libraries should work again under El Capitan.