recently I’ve been getting an error when running sen2cor on a Sentinel-2 scene, I’m just post the last part of it:
File "..\Anaconda\Lib\distutils\file_util.py", line 41, in _copy_file_contents
"could not delete '%s': %s" % (dst, errstr))
distutils.errors.DistutilsFileError: could not delete '[S2A_USER_Granule].xml' [Because it is used by another process]
The important part is “used by another process” (rough translation).
I can restart sen2cor and continue the processing until the next error pops up.