2nd time it won't work because the tool tries to remove the old one which is still "checked in".
File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\fastapi\routing.py", line 301, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GITHUB\mpcforces-extractor\mpcforces_extractor\api\routes\file_upload.py", line 20, in upload_chunk
os.remove(file_path)
PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'D:\GITHUB\mpcforces-extractor\data\uploads\db.db'
When importing a db file:
2nd time it won't work because the tool tries to remove the old one which is still "checked in".
File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\GITHUB\mpcforces-extractor.venv\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\GITHUB\mpcforces-extractor\mpcforces_extractor\api\routes\file_upload.py", line 20, in upload_chunk os.remove(file_path) PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'D:\GITHUB\mpcforces-extractor\data\uploads\db.db'