I have faild to run a tool using for satellite data process CCPLOT
After successfully installed, I tried the first case.
Here is the error information.
>Traceback (most recent call last):
File "/Users/HYF/anaconda/bin/ccplot", line 56, in <module>
>from ccplot.hdf import HDF
>ImportError: dlopen(/Users/HYF/anaconda/lib/python2.7/site-packages/ccplot/hdf.so, 2): Library not loaded: libjpeg.8.dylib
>Referenced from: /Users/HYF/anaconda/lib/python2.7/site-packages/ccplot/hdf.so
I have look through this answer here
I have tried sudo ln -s /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib /usr/local/lib/libjpeg.8.dylib
.
And now the libjpeg.8.dylib are stay in the folder /usr/local/lib/
But the error doesn't disappear. How to fix this bug?
I'm using Mac OS X system with Anaconda installed. Any advice would be appreciate!
PS
Thanks for the advice.
with DYLD_INSERT_LIBRARIES=/usr/local/lib/libjpeg.8.dylib python
The error is the same ImportError: dlopen(/Users/HYF/anaconda/lib/python2.7/site-packages/ccplot/hdf.so, 2): Library not loaded: libjpeg.8.dylib Referenced from: /Users/HYF/anaconda/lib/python2.7/site-packages/ccplot/hdf.so Reason: image not found
With DYLD_LIBRARY_PATH=/usr/local/lib python
.
from ccplot.hdf import HDF
shows no errors.
But when I import matplotlib, there is another error shows
ImportError: dlopen(/Users/HYF/anaconda/lib/python2.7/site-packages/matplotlib/_path.so, 2): Symbol not found: ___emutls_get_address Referenced from: /usr/local/lib/libstdc++.6.dylib Expected in: /usr/local/lib/libgcc_s.1.dylib in /usr/local/lib/libstdc++.6.dylib