AttributeError: 'bool' object has no attribute 'text'


#1

I am trying to process at 10 m and I get this error:

Sentinel-2 Level 2A Processor (Sen2Cor), 2.4.0, created: 2017.06.05 started …
selected resolution is 10 m.
Progress[%]: 0.03 : PID-9228, 20 m resolution must be processed first, elapsed time[s]: 0.892
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\Users\deborah.mendes.snap\auxdata\Sen2Cor-2.4.0-win64\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Users\deborah.mendes.snap\auxdata\Sen2Cor-2.4.0-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 135, in run
if self.process_10() == False:
File “C:\Users\deborah.mendes.snap\auxdata\Sen2Cor-2.4.0-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 178, in process_10
if not self.process_20():
File “C:\Users\deborah.mendes.snap\auxdata\Sen2Cor-2.4.0-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 156, in process_20
self.tables = L2A_Tables(self.config)
File “C:\Users\deborah.mendes.snap\auxdata\Sen2Cor-2.4.0-win64\Lib\site-packages\sen2cor\L2A_Tables.py”, line 324, in init
if not ‘USER’ in tiOld.text:
AttributeError: ‘bool’ object has no attribute ‘text’


#2

did you consider upgrading to sen2cor version 2.5?


#3

Yes, I did it. And now it works. Thank you!


#4

No, in fact I have this error:

Sentinel-2 Level 2A Processor (Sen2Cor), 2.4.0, created: 2017.06.05 started …
no resolution specified, will process all resolutions.
Progress[%]: 0.03 : PID-9044, L2A_ProcessTile: processing with resolution 60 m, elapsed time[s]: 0.861
Progress[%]: 0.03 : PID-9044, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.000
Syntax error in metadata, see report file for details.
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-1C_Tile_Metadata.xsd
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.
Progress[%]: 0.03 : PID-9044, L2A_Tables: start import, elapsed time[s]: 0.080
Progress[%]: 0.05 : PID-9044, L2A_Tables: band B01 imported, elapsed time[s]: 0.692
Progress[%]: 0.67 : PID-9044, L2A_Tables: band B02 imported, elapsed time[s]: 19.720
Progress[%]: 1.29 : PID-9044, L2A_Tables: band B03 imported, elapsed time[s]: 20.105
Progress[%]: 1.95 : PID-9044, L2A_Tables: band B04 imported, elapsed time[s]: 21.016
Progress[%]: 2.13 : PID-9044, L2A_Tables: band B05 imported, elapsed time[s]: 5.761
Progress[%]: 2.33 : PID-9044, L2A_Tables: band B06 imported, elapsed time[s]: 6.498
Progress[%]: 2.53 : PID-9044, L2A_Tables: band B07 imported, elapsed time[s]: 6.632
Progress[%]: 2.75 : PID-9044, L2A_Tables: band B8A imported, elapsed time[s]: 6.903
Progress[%]: 2.77 : PID-9044, L2A_Tables: band B09 imported, elapsed time[s]: 0.818
Progress[%]: 2.79 : PID-9044, L2A_Tables: band B10 imported, elapsed time[s]: 0.429
Progress[%]: 2.97 : PID-9044, L2A_Tables: band B11 imported, elapsed time[s]: 5.941
Progress[%]: 3.15 : PID-9044, L2A_Tables: band B12 imported, elapsed time[s]: 5.683
Progress[%]: 3.15 : PID-9044, L2A_ProcessTile: start of Scene Classification, elapsed time[s]: 0.000
Progress[%]: 3.16 : PID-9044, Pre process , elapsed time[s]: 0.190
Progress[%]: 3.19 : PID-9044, L2A_SC init , elapsed time[s]: 0.989
Progress[%]: 3.19 : PID-9044, L2A_CSND_1_1 , elapsed time[s]: 0.237
Progress[%]: 3.20 : PID-9044, L2A_CSND_1_2 , elapsed time[s]: 0.266
Progress[%]: 3.23 : PID-9044, L2A_CSND_3 , elapsed time[s]: 0.834
Progress[%]: 3.24 : PID-9044, L2A_CSND_5_1 , elapsed time[s]: 0.270
Progress[%]: 3.25 : PID-9044, L2A_CSND_5_2 , elapsed time[s]: 0.551
Progress[%]: 3.27 : PID-9044, L2A_CSND_6 , elapsed time[s]: 0.377
Progress[%]: 3.27 : PID-9044, L2A_CSND_6_2 , elapsed time[s]: 0.242
Progress[%]: 3.28 : PID-9044, L2A_CSND_7 , elapsed time[s]: 0.235
Progress[%]: 3.39 : PID-9044, L2A_SHD , elapsed time[s]: 3.608
Progress[%]: 3.40 : PID-9044, DV recovery , elapsed time[s]: 0.327
Progress[%]: 3.41 : PID-9044, WP recovery , elapsed time[s]: 0.349
Progress[%]: 3.43 : PID-9044, Snow recovery , elapsed time[s]: 0.352
Progress[%]: 3.43 : PID-9044, Soil recovery , elapsed time[s]: 0.177
Progress[%]: 3.43 : PID-9044, Post process , elapsed time[s]: 0.130
Progress[%]: 3.43 : PID-9044, L2A_ProcessTile: start of Atmospheric Correction, elapsed time[s]: 0.000
Progress[%]: 3.44 : PID-9044, L2A_AtmCorr: end of calculation terrain maps, elapsed time[s]: 0.200
Progress[%]: 3.44 : PID-9044, L2A_AtmCorr: start of AOT retrieval at 550nm, elapsed time[s]: 0.010
Progress[%]: 3.50 : PID-9044, L2A_AtmCorr: end of internal classification, elapsed time[s]: 1.739
Progress[%]: 3.51 : PID-9044, L2A_AtmCorr: end of interpolation LUTs, elapsed time[s]: 0.590
Progress[%]: 3.59 : PID-9044, L2A_AtmCorr: end retrieving reference pixels for dark areas, elapsed time[s]: 2.475
Progress[%]: 3.70 : PID-9044, L2A_AtmCorr: end of check for negative reflectance pixels, elapsed time[s]: 3.651
Progress[%]: 3.74 : PID-9044, The rescaling factor is clipped as it exceeds +/- 10 % variation, elapsed time[s]: 1.129
Progress[%]: 3.76 : PID-9044, L2A_AtmCorr: end of visibility index calculation, elapsed time[s]: 0.615
Progress[%]: 3.76 : PID-9044, L2A_AtmCorr: end of AOT retrieval at 550nm, elapsed time[s]: 0.003
Progress[%]: 3.76 : PID-9044, L2A_AtmCorr: start of water vapour retrieval, elapsed time[s]: 0.001
Progress[%]: 3.79 : PID-9044, L2A_AtmCorr: end of water vapour retrieval preparation, elapsed time[s]: 0.952
Progress[%]: 4.46 : PID-9044, L2A_AtmCorr: end of water vapour retrieval, elapsed time[s]: 21.704
Progress[%]: 4.46 : PID-9044, L2A_AtmCorr: preparation of surface reflectance retrieval, elapsed time[s]: 0.010
Progress[%]: 4.63 : PID-9044, L2A_AtmCorr: end of surface reflectance retrieval preparation, elapsed time[s]: 5.335
Progress[%]: 5.60 : PID-9044, L2A_AtmCorr: end of surface reflectance retrieval, elapsed time[s]: 31.104
Progress[%]: 5.85 : PID-9044, L2A_AtmCorr: end of rho retrieval step 2, elapsed time[s]: 7.908
Progress[%]: 5.85 : PID-9044, L2A_ProcessTile: start of post processing, elapsed time[s]: 0.017
Progress[%]: 5.85 : PID-9044, L2A_Tables: start export, elapsed time[s]: 0.001
Progress[%]: 5.87 : PID-9044, L2A_Tables: band B01 exported, elapsed time[s]: 0.754
Progress[%]: 5.89 : PID-9044, L2A_Tables: band B02 exported, elapsed time[s]: 0.775
Progress[%]: 5.92 : PID-9044, L2A_Tables: band B03 exported, elapsed time[s]: 0.781
Progress[%]: 5.95 : PID-9044, L2A_Tables: band B04 exported, elapsed time[s]: 0.904
Progress[%]: 5.97 : PID-9044, L2A_Tables: band B05 exported, elapsed time[s]: 0.807
Progress[%]: 6.00 : PID-9044, L2A_Tables: band B06 exported, elapsed time[s]: 0.947
Progress[%]: 6.03 : PID-9044, L2A_Tables: band B07 exported, elapsed time[s]: 0.936
Progress[%]: 6.06 : PID-9044, L2A_Tables: band B8A exported, elapsed time[s]: 0.942
Progress[%]: 6.09 : PID-9044, L2A_Tables: band B09 exported, elapsed time[s]: 0.925
Progress[%]: 6.12 : PID-9044, L2A_Tables: band B11 exported, elapsed time[s]: 0.874
Progress[%]: 6.14 : PID-9044, L2A_Tables: band B12 exported, elapsed time[s]: 0.842
Progress[%]: 6.15 : PID-9044, L2A_Tables: band SCL exported, elapsed time[s]: 0.113
Progress[%]: 6.15 : PID-9044, L2A_Tables: band SNW exported, elapsed time[s]: 0.080
Progress[%]: 6.15 : PID-9044, L2A_Tables: band CLD exported, elapsed time[s]: 0.094
Progress[%]: 6.16 : PID-9044, L2A_Tables: band AOT exported, elapsed time[s]: 0.204
Progress[%]: 6.18 : PID-9044, L2A_Tables: band WVP exported, elapsed time[s]: 0.641
Progress[%]: 6.23 : PID-9044, L2A_Tables: band TCI exported, elapsed time[s]: 1.571
Progress[%]: 6.23 : PID-9044, L2A_Tables: stop export, elapsed time[s]: 0.020
Syntax error in metadata, see report file for details.
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
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.
Progress[%]: 6.23 : PID-9044, L2A_ProcessTile: resolution 20m already processed, elapsed time[s]: 0.225
Progress[%]: 6.24 : PID-9044, L2A_ProcessTile: resolution 10m already processed, elapsed time[s]: 0.160
Syntax error in metadata, see report file for details.
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘L2A_Scene_Classification_List’: This element is not expected. Expected is ( REFERENCE_BAND ).
Progress[%]: 100.00 : Application terminated successfully.
Finished tool execution in 208 seconds

I don’t know what I do. If you can help me, please!
Thank you.