L2A_Process ImportError: DLL load failed

My PC reboot with the clasic blue window and then the L2A_Process doesn’t work anymore, i try reinstall sen2cor but is the same thing. ¿Any idea?

I Have 64 bit OS Windows 10.

Traceback (most recent call last):
File “C:\Anaconda2\Scripts\L2A_Process-script.py”, line 11, in
load_entry_point(‘sen2cor==2.3.1’, ‘console_scripts’, ‘L2A_Process’)()
File “C:\Anaconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\pkg_resources_init_.py”, line 565, in load_entry_point
File “C:\Anaconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\pkg_resources_init_.py”, line 2598, in load_entry_point
File “C:\Anaconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\pkg_resources_init_.py”, line 2258, in load
File “C:\Anaconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\pkg_resources_init_.py”, line 2264, in resolve
File “C:\Anaconda2\lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_Process.py”, line 14, in
from L2A_Schedule import L2A_Schedule
File “C:\Anaconda2\lib\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 “C:\Anaconda2\lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 12, in
from L2A_Tables import L2A_Tables
File “C:\Anaconda2\lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_Tables.py”, line 26, in
from osgeo.gdal_array import BandReadAsArray
File “C:\Anaconda2\lib\site-packages\osgeo_init_.py”, line 25, in
gdal = swig_import_helper()
File "C:\Anaconda2\lib\site-packages\osgeo_init
.py", line 21, in swig_import_helper
_mod = imp.load_module(’_gdal’, fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

Thanks for read.

1 Like


Try creating a conda environment:
conda create -n sen2cor python=2.7
activate sen2cor
Install following packages:
conda install gdal==2.0.0
conda install numpy==1.11.3
conda install pytables==3.3.0
conda install psutil==5.2.2
conda install xlml==3.8.0
conda install scipy==0.19.0
conda install scikit-image==0.13.0
Finally install sen2cor 2.3.1. by running python setup.py install from conda’s sen2cor environment