Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_index bug #1309

Open
zhudayong1987 opened this issue Sep 2, 2024 · 1 comment
Open

build_index bug #1309

zhudayong1987 opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zhudayong1987
Copy link

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 zhudayong1987 added the bug Something isn't working label Sep 2, 2024
@sbrunato
Copy link
Collaborator

sbrunato commented Sep 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants