Open ChrisTorng opened 9 months ago
Some troubleshooting with ChatGPT found the underlying issue:
NamedTemporaryFile: If you are using NamedTemporaryFile elsewhere in your code, be aware that this function works differently on Windows compared to Unix-based systems. On Unix, the file can be opened by another process immediately after creation, but on Windows, it cannot be opened by another name until it is closed.
The solution in my case was to inject simpleaudio
into the venv:
pipx inject ospeak simpleaudio
Pinging @simonw , maybe you could include that package (or pyaudio), at least for Windows targets? Otherwise we reliably run into the above issue.
Thanks for your job. I tried it on Windows, this is shown:
I've tested on the same Command Prompt, I can add a new file in the folder
C:\Users\CHRIST~1\AppData\Local\Temp
, without permission problem.