Sen2Cor doesn't run from command line

Hi, I have installed Sen2Cor and all the dependencies.

I’m trying to run it on an image to test it out but I return this error:

/Documents/cloudmask/Untitled$ L2A_Process S2A_MSIL1C_20170923T105021_N0205_R051_T31UEQ_20170923T105022.SAFE/
Traceback (most recent call last):
File “/home/william/miniconda3/envs/sen2cor/bin/L2A_Process”, line 11, in
load_entry_point(‘sen2cor==2.3.0’, ‘console_scripts’, ‘L2A_Process’)()
File “/home/william/miniconda3/envs/sen2cor/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Process.py”, line 169, in main
config.setSchemes()
File “/home/william/miniconda3/envs/sen2cor/lib/python2.7/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’

Thanks for the help!

Have you tried the new standalone version of sen2cor?

Thank you I had been following this documentation. Have got it to work now though.

I think my mistake was using bash and adding ./ in front of the installer which caused things to go awry!