Hello,
I am facing a problem getting sen2cor to work using OSX Terminal. I installed Anaconda and sen2cor as described in the Manual, but when I type
L2A_Process --help
i receive the following:
Leons-MacBook-Pro:~ leonnill$ L2A_Process --help
Traceback (most recent call last):
File “/Users/leonnill/anaconda/bin/L2A_Process”, line 11, in
load_entry_point(‘sen2cor==2.3.1’, ‘console_scripts’, ‘L2A_Process’)()
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/init.py”, line 565, in load_entry_point
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/init.py”, line 2598, in load_entry_point
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/init.py”, line 2258, in load
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/init.py”, line 2264, in resolve
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/L2A_Process.py”, line 14, in
from L2A_Schedule import L2A_Schedule
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/L2A_Schedule.py”, line 11, in
from L2A_ProcessTile import L2A_ProcessTile, SUCCESS, FAILURE
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 12, in
from L2A_Tables import L2A_Tables
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/L2A_Tables.py”, line 26, in
from osgeo.gdal_array import BandReadAsArray
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/osgeo/init.py”, line 21, in
_gdal = swig_import_helper()
File “/Users/leonnill/anaconda/lib/python2.7/site-packages/osgeo/init.py”, line 17, in swig_import_helper
_mod = imp.load_module(’_gdal’, fp, pathname, description)
ImportError: dlopen(/Users/leonnill/anaconda/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: @rpath/libjpeg.8.dylib
Referenced from: /Users/leonnill/anaconda/lib/libgdal.20.dylib
Reason: image not found
I appreciate any idea on how to fix this. Thanks!
Cheers,
Leon