I am trying out using dagger with python on windows 10 but running into a puzzling error:
File "C:\Users\winuser\.virtualenvs\dgrpy-7tEWe_Su\Lib\site-packages\dagger\engine\docker.py", line 120, in start_sync
engine_session_bin_path = tmp_bin_path.rename(engine_session_bin_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\winuser\scoop\apps\python311\current\Lib\pathlib.py", line 1175, in rename
os.rename(self, target)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\winuser\\.cache\\dagger\\temp-dagger-engine-session-6r7_6_n7' -> 'C:\\Users\\winuser\\.cache\\dagger\\dagger-engine-session-9ad18aca71b1b1ba.exe'
I found if I go and rename that file myself, dagger is working.
What's odd is that there's no problem creating the ~/.cache/dagger directory, or creating the initial file.
Permissions in windows appear fine.
I've tried with and without Pipenv creating the venv, and Python 3.10.9 and 3.11.1 - same issue.
I tried adding a retry to the file rename code, but it doesn't appear to do anything, it'll just fail the renaming in a loop.
So my workaround at the moment is to manually rename that file to the .exe and things are working.
This is using v0.2.1 of the SDK