I (seemingly) installed Anaconda and Sen2cor 2.3.0 on a Windows machine without any problems, but when I try to process a product or granule, I run into the following error:
C:>L2A_Process C:\S2A_OPER_PRD_MSIL1C_PDMC_20161008T183126_R051_V20161008T105022_20161008T105022.SAFE
Traceback (most recent call last):
File “C:\Program Files\Anaconda2\Scripts\L2A_Process-script.py”, line 11, in
load_entry_point(‘sen2cor==2.3.0’, ‘console_scripts’, ‘L2A_Process’)()
File “C:\Program Files\Anaconda2\lib\site-packages\sen2cor-2.3.0-py2.7.egg\sen2cor\L2A_Process.py”, line 169, in main
config.setSchemes()
File “C:\Program Files\Anaconda2\lib\site-packages\sen2cor-2.3.0-py2.7.egg\sen2cor\L2A_Config.py”, line 3072, in setSchemes
self.logger.fatal('wrong identifier for xml structure: ’ + product)
AttributeError: ‘NoneType’ object has no attribute ‘fatal’
The problem is that sen2cor looks for config and other data in the root of the sen2cor package, in a subdirectory called cfg… actually that folder is inside another directory called sen2cor in the package, so you have to copy-paste it. In your case:
After a fresh install of Sen2Cor on Windows, you need to close your cmd window and open a new one so that all the environment variables are correctly set.