AttributeError: 'NoneType' object has no attribute 'fatal' (Ubuntu 16.04)

Hello, I installed sen2cor with the following steps:

1 - installed anaconda2
2 - I created a virtual environment (virtualenv)
3 - I installed glymur and the other libraries
4 - I installed sen2cor in virtual environment
5 - I have informed in SNAP:
SEN2COR_BIN: /root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor
PYTHON_BIN: /root/anaconda2/envs/CAV/bin/python

I return the following error:

File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 352, in
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 169, in main
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 3072, in setSchemes
self.logger.fatal('wrong identifier for xml structure: ’ + product)
AttributeError: ‘NoneType’ object has no attribute ‘fatal’

This has been asked before. Have you seen these threads?


  • I added: export SEN2COR_HOME = / root / sen2cor
  • Pasted the sentinel image into / root / sen2cor
  • Rodei in the terminal: L2A_Process S2A_MSIL1C_20161206T132232_N0204_R038_T22JEN_20161206T132255.SAFE --resolution 10
    The process was up to 20% and stopped, now returns the same error, I am thinking of installing sen2cor again

I have this problem now
I updated numpy to 1.11

Progress[%]: 90.13 : PID-5221, L2A_CSND_7 , elapsed time[s]: 0.125
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “/root/anaconda2/lib/python2.7/multiprocessing/”, line 258, in _bootstrap
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 129, in run
if self.process_60() == False:
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 147, in process_60
return self.process()
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 205, in process
if(sc.process() == False):
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 856, in process
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 446, in L2A_SHD
csd1 = self.L2A_CSHD_1()
File “/root/anaconda2/envs/CAV/lib/python2.7/site-packages/sen2cor-2.3.1-py2.7.egg/sen2cor/”, line 497, in L2A_CSHD_1
filt_b = zeros([y_aa,x_aa], float32)
TypeError: ‘float’ object cannot be interpreted as an index

thank you