eodag icon indicating copy to clipboard operation
eodag copied to clipboard

build_index bug

Open zhudayong1987 opened this issue 1 year ago • 1 comments

build_index bug build_index fails when multiple threads are searching for landsat-c2ard-sr in the extension

Output [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Users\67185\.config\eodag\.index\_MAIN_1.toc' [Errno 2] No such file or directory: 'C:\Users\67185\.config\eodag\.index\MAIN_41feoch9twz5zn60.seg' [Errno 2] No such file or directory: 'C:\Users\67185\.config\eodag\.index\MAIN_41feoch9twz5zn60.seg' [Errno 2] No such file or directory: 'C:\Users\67185\.config\eodag\.index\MAIN_41feoch9twz5zn60.seg' [Errno 2] No such file or directory: 'C:\Users\67185\.config\eodag\.index\MAIN_41feoch9twz5zn60.seg' [Errno 2] No such file or directory: 'C:\Users\67185\.config\eodag\.index\MAIN_41feoch9twz5zn60.seg'

Environment:

  • Python version: 3.9
  • EODAG version: 2.12.1

zhudayong1987 avatar Sep 02 '24 08:09 zhudayong1987

Hello @zhudayong1987 , to avoid conflicts between threads while accessing index file, you may use multiprocessing instead with disctinct EODAG_CFG_DIR environment variable set for each process

sbrunato avatar Sep 06 '24 14:09 sbrunato

Please re-open issue with updated information if necessary

sbrunato avatar Apr 01 '25 13:04 sbrunato