Sen2cor problems

Trying to run Sen2Cor-02.05.05-win64. However i get the following error:

Product version: 14.5. Operation mode: PDGS. Processing baseline: 02.06.
Traceback (most recent call last):
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 354, in
sys.exit(main())
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 309, in main
L2A_TILES = updateTiles(config)
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 40, in updateTiles
L1C_TILES = config.createOrUpdateL2A_UserProduct()
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 3356, in createOrUpdateL2A_UserProduct
self.createAtmDataFilename()
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4572, in createAtmDataFilename
delta = self.assignOzoneContent()
File “E:\seo_dwarf\chl_scripts\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4620, in assignOzoneContent
self.ozoneContent = min(columns, key=columns.get)
AttributeError: ‘NoneType’ object has no attribute ‘get’

However when i rerun it does the job.

Why is that?

Also what is the meaning of the operation mode Toolbox or PDGS? Wil it make any difference in the result which one you are going to use?

some solutions related to this are provided here: Sen2Cor 2.5.5 failing for Product version: 14.5
One involves changes in the code, the other refers to temporary files which somehow prevent further successful executions of the scritps.

I used the correction proposed Sen2Cor 2.5.5 failing for Product version: 14.5

It makes the job.

Hoevewer i get thefollowing errors as syou see.

Progress[%]: 1.20 : PID-12932, L2A_ProcessTile: processing with resolution 60 m, elapsed time[s]: 3.390, total: 0:00:08.107000
Progress[%]: 1.20 : PID-12932, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.000, total: 0:00:08.107000
Syntax error in metadata, see report file for details.
[PERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-1C_Tile_Metadata.xsd
arsing error:[
ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-1C_Tile_Metadata.xsd
S[chema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-1C_Tile_Metadata.xsdERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1C_Tile_Metadata.xsd}Level-1C_Tile_ID’: No matching global declaration available for the validation root.

[DERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1C_Tile_Metadata.xsd}Level-1C_Tile_ID’: No matching global declaration available for the validation root.
etails: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-1C_Tile_Metadata.xsd}Level-1C_Tile_ID’: No matching global declaration available for the validation root.
Progress[%]: 1.26 : PID-12932, L2A_Tables: start import, elapsed time[s]: 0.172, total: 0:00:08.279000
Progress[%]: 1.49 : PID-12932, L2A_Tables: band B01 imported, elapsed time[s]: 0.656, total: 0:00:08.935000
Progress[%]: 7.43 : PID-12932, L2A_Tables: band B02 imported, elapsed time[s]: 16.804, total: 0:00:25.739000
Progress[%]: 13.46 : PID-12932, L2A_Tables: band B03 imported, elapsed time[s]: 17.046, total: 0:00:42.785000
Progress[%]: 19.58 : PID-12932, L2A_Tables: band B04 imported, elapsed time[s]: 17.308, total: 0:01:00.093000
Progress[%]: 21.37 : PID-12932, L2A_Tables: band B05 imported, elapsed time[s]: 5.077, total: 0:01:05.170000
Progress[%]: 23.17 : PID-12932, L2A_Tables: band B06 imported, elapsed time[s]: 5.093, total: 0:01:10.263000
Progress[%]: 24.95 : PID-12932, L2A_Tables: band B07 imported, elapsed time[s]: 5.030, total: 0:01:15.293000
Progress[%]: 26.76 : PID-12932, L2A_Tables: band B8A imported, elapsed time[s]: 5.124, total: 0:01:20.417000
Progress[%]: 26.98 : PID-12932, L2A_Tables: band B09 imported, elapsed time[s]: 0.625, total: 0:01:21.042000
Progress[%]: 27.12 : PID-12932, L2A_Tables: band B10 imported, elapsed time[s]: 0.390, total: 0:01:21.432000
Progress[%]: 28.84 : PID-12932, L2A_Tables: band B11 imported, elapsed time[s]: 4.874, total: 0:01:26.306000
Progress[%]: 30.54 : PID-12932, L2A_Tables: band B12 imported, elapsed time[s]: 4.796, total: 0:01:31.102000
Progress[%]: 30.55 : PID-12932, L2A_ProcessTile: start of Scene Classification, elapsed time[s]: 0.031, total: 0:01:31.133000
Progress[%]: 30.61 : PID-12932, Pre process , elapsed time[s]: 0.187, total: 0:01:31.320000
Progress[%]: 30.96 : PID-12932, L2A_SC init , elapsed time[s]: 0.985, total: 0:01:32.305000
Progress[%]: 31.05 : PID-12932, L2A_CSND_1_1 , elapsed time[s]: 0.250, total: 0:01:32.555000
Progress[%]: 31.14 : PID-12932, L2A_CSND_1_2 , elapsed time[s]: 0.265, total: 0:01:32.820000
Progress[%]: 31.55 : PID-12932, L2A_CSND_2_0 , elapsed time[s]: 1.140, total: 0:01:33.960000
Progress[%]: 31.65 : PID-12932, L2A_CSND_2_1 , elapsed time[s]: 0.282, total: 0:01:34.242000
Progress[%]: 31.72 : PID-12932, L2A_CSND_2_1_2, elapsed time[s]: 0.218, total: 0:01:34.460000
Progress[%]: 31.77 : PID-12932, L2A_CSND_2_2 , elapsed time[s]: 0.141, total: 0:01:34.601000
Progress[%]: 31.82 : PID-12932, L2A_CSND_2_3 , elapsed time[s]: 0.125, total: 0:01:34.726000
Progress[%]: 31.90 : PID-12932, L2A_CSND_2_4 , elapsed time[s]: 0.234, total: 0:01:34.960000
Progress[%]: 32.01 : PID-12932, L2A_CSND_2_5 , elapsed time[s]: 0.313, total: 0:01:35.273000
Progress[%]: 32.02 : PID-12932, L2A_SnowPostProcessingCCI , elapsed time[s]: 0.015, total: 0:01:35.288000
Progress[%]: 32.16 : PID-12932, L2A_CSND_3 , elapsed time[s]: 0.391, total: 0:01:35.679000
Progress[%]: 32.28 : PID-12932, L2A_CSND_5_1 , elapsed time[s]: 0.359, total: 0:01:36.038000
Progress[%]: 32.50 : PID-12932, L2A_CSND_5_2 , elapsed time[s]: 0.609, total: 0:01:36.647000
Progress[%]: 32.65 : PID-12932, L2A_CSND_6 , elapsed time[s]: 0.422, total: 0:01:37.069000
Progress[%]: 32.74 : PID-12932, L2A_CSND_6_2 , elapsed time[s]: 0.266, total: 0:01:37.335000
Progress[%]: 32.83 : PID-12932, L2A_CSND_7 , elapsed time[s]: 0.265, total: 0:01:37.600000
Progress[%]: 34.70 : PID-12932, L2A_SHD , elapsed time[s]: 5.273, total: 0:01:42.873000
Progress[%]: 34.83 : PID-12932, DV recovery , elapsed time[s]: 0.359, total: 0:01:43.232000
Progress[%]: 34.96 : PID-12932, WP recovery , elapsed time[s]: 0.375, total: 0:01:43.607000
Progress[%]: 34.96 : PID-12932, WP recovery with CCI Water Bodies at 150m , elapsed time[s]: 0.000, total: 0:01:43.607000
Progress[%]: 35.09 : PID-12932, Snow recovery , elapsed time[s]: 0.360, total: 0:01:43.967000
Progress[%]: 35.15 : PID-12932, Soil recovery , elapsed time[s]: 0.187, total: 0:01:44.154000
Progress[%]: 35.16 : PID-12932, Land recovery with B10, B09 and B8A , elapsed time[s]: 0.016, total: 0:01:44.170000
Progress[%]: 35.16 : PID-12932, Cirrus recovery with B10 , elapsed time[s]: 0.000, total: 0:01:44.170000
Progress[%]: 35.16 : PID-12932, Urban and Bare pixel recovery with CCI Land Cover Map at 300 m , elapsed time[s]: 0.015, total: 0:01:44.185000
Progress[%]: 35.85 : PID-12932, Post process , elapsed time[s]: 1.937, total: 0:01:46.122000
Progress[%]: 35.85 : PID-12932, L2A_ProcessTile: start of Atmospheric Correction, elapsed time[s]: 0.016, total: 0:01:46.138000
Progress[%]: 35.97 : PID-12932, L2A_AtmCorr: end of calculation terrain maps, elapsed time[s]: 0.328, total: 0:01:46.466000
Progress[%]: 37.40 : PID-12932, L2A_AtmCorr: start of AOT retrieval at 550nm, elapsed time[s]: 4.046, total: 0:01:50.512000
Progress[%]: 41.04 : PID-12932, L2A_AtmCorr: end of internal classification, elapsed time[s]: 10.294, total: 0:02:00.806000
Progress[%]: 41.27 : PID-12932, L2A_AtmCorr: end of interpolation LUTs, elapsed time[s]: 0.656, total: 0:02:01.462000
Progress[%]: 41.28 : PID-12932, L2A_AtmCorr: end retrieving reference pixels for dark areas, elapsed time[s]: 0.016, total: 0:02:01.478000
Progress[%]: 42.89 : PID-12932, L2A_AtmCorr: end of check for dense bright vegetation pixels, elapsed time[s]: 4.577, total: 0:02:06.055000
Progress[%]: 43.36 : PID-12932, L2A_AtmCorr: end of receiving atmospheric functions for all altitudes and visibilities, elapsed time[s]: 1.328, total: 0:02:07.383000
Progress[%]: 43.37 : PID-12932, L2A_AtmCorr: end of AOT retrieval at 550nm, elapsed time[s]: 0.016, total: 0:02:07.399000
Progress[%]: 43.37 : PID-12932, L2A_AtmCorr: start of water vapour retrieval, elapsed time[s]: 0.000, total: 0:02:07.399000
Progress[%]: 43.70 : PID-12932, L2A_AtmCorr: end of water vapour retrieval preparation, elapsed time[s]: 0.937, total: 0:02:08.336000
Progress[%]: 51.12 : PID-12932, L2A_AtmCorr: end of water vapour retrieval, elapsed time[s]: 20.995, total: 0:02:29.331000
Progress[%]: 51.12 : PID-12932, L2A_AtmCorr: preparation of surface reflectance retrieval, elapsed time[s]: 0.000, total: 0:02:29.331000
Progress[%]: 53.10 : PID-12932, L2A_AtmCorr: end of surface reflectance retrieval preparation, elapsed time[s]: 5.608, total: 0:02:34.939000
Progress[%]: 58.15 : PID-12932, L2A_AtmCorr: end of surface reflectance retrieval, elapsed time[s]: 14.278, total: 0:02:49.217000
Progress[%]: 60.79 : PID-12932, L2A_AtmCorr: end of rho retrieval step 2, elapsed time[s]: 7.467, total: 0:02:56.684000
Progress[%]: 60.80 : PID-12932, L2A_ProcessTile: start of post processing, elapsed time[s]: 0.031, total: 0:02:56.715000
Progress[%]: 60.80 : PID-12932, L2A_Tables: start export, elapsed time[s]: 0.000, total: 0:02:56.715000
Progress[%]: 61.05 : PID-12932, L2A_Tables: band B01 exported, elapsed time[s]: 0.687, total: 0:02:57.402000
Progress[%]: 61.30 : PID-12932, L2A_Tables: band B02 exported, elapsed time[s]: 0.735, total: 0:02:58.137000
Progress[%]: 61.58 : PID-12932, L2A_Tables: band B03 exported, elapsed time[s]: 0.765, total: 0:02:58.902000
Progress[%]: 61.84 : PID-12932, L2A_Tables: band B04 exported, elapsed time[s]: 0.750, total: 0:02:59.652000
Progress[%]: 62.11 : PID-12932, L2A_Tables: band B05 exported, elapsed time[s]: 0.750, total: 0:03:00.402000
Progress[%]: 62.38 : PID-12932, L2A_Tables: band B06 exported, elapsed time[s]: 0.765, total: 0:03:01.167000
Progress[%]: 62.64 : PID-12932, L2A_Tables: band B07 exported, elapsed time[s]: 0.750, total: 0:03:01.917000
Progress[%]: 62.91 : PID-12932, L2A_Tables: band B8A exported, elapsed time[s]: 0.750, total: 0:03:02.667000
Progress[%]: 63.15 : PID-12932, L2A_Tables: band B09 exported, elapsed time[s]: 0.703, total: 0:03:03.370000
Progress[%]: 63.41 : PID-12932, L2A_Tables: band B11 exported, elapsed time[s]: 0.734, total: 0:03:04.104000
Progress[%]: 63.67 : PID-12932, L2A_Tables: band B12 exported, elapsed time[s]: 0.734, total: 0:03:04.838000
Progress[%]: 63.75 : PID-12932, L2A_Tables: band SCL exported, elapsed time[s]: 0.203, total: 0:03:05.041000
Progress[%]: 63.80 : PID-12932, L2A_Tables: band SNW exported, elapsed time[s]: 0.156, total: 0:03:05.197000
Progress[%]: 63.91 : PID-12932, L2A_Tables: band CLD exported, elapsed time[s]: 0.297, total: 0:03:05.494000
Progress[%]: 63.98 : PID-12932, L2A_Tables: band AOT exported, elapsed time[s]: 0.219, total: 0:03:05.713000
Progress[%]: 64.09 : PID-12932, L2A_Tables: band WVP exported, elapsed time[s]: 0.297, total: 0:03:06.010000
Progress[%]: 64.23 : PID-12932, L2A_Tables: band PVI exported, elapsed time[s]: 0.390, total: 0:03:06.400000
Progress[%]: 64.81 : PID-12932, L2A_Tables: band TCI exported, elapsed time[s]: 1.640, total: 0:03:08.040000
Progress[%]: 64.81 : PID-12932, L2A_Tables: stop export, elapsed time[s]: 0.016, total: 0:03:08.056000
Syntax error in metadata, see report file for details.
[PERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
arsing error:[
ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
S[chema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Tile_Metadata.xsdERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Tile_Metadata.xsd}Level-2A_Tile_ID’: No matching global declaration available for the validation root.

[DERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Tile_Metadata.xsd}Level-2A_Tile_ID’: No matching global declaration available for the validation root.
etails: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Tile_Metadata.xsd}Level-2A_Tile_ID’: No matching global declaration available for the validation root.
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘GRI_List’: This element is not expected. Expected is ( GRI_FILENAME ).
[ERROR] L2A_XmlParse: 121 Details: Element ‘GRI_List’: This element is not expected. Expected is ( GRI_FILENAME ).
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘GRI_List’: This element is not expected. Expected is ( GRI_FILENAME ).
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Datastrip_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Datastrip_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Datastrip_Metadata.xsd}Level-2A_DataStrip_ID’: No matching global declaration available for the validation root.
[ERROR] L2A_XmlParse: 121 Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Datastrip_Metadata.xsd}Level-2A_DataStrip_ID’: No matching global declaration available for the validation root.
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Datastrip_Metadata.xsd
Details: Element ‘{https://psd-14.sentinel2.eo.esa.int/PSD/S2_PDI_Level-2A_Datastrip_Metadata.xsd}Level-2A_DataStrip_ID’: No matching global declaration available for the validation root.
Progress[%]: 100.00 : Application terminated successfully.

Any ideas?