I’ve managed to use mod-script-pipe to script Audacity (on Win 7 and 10) and it’s working fine, except that after launching a few times the script I seem to lose the connection from Python to Audacity and I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: ‘\\.\pipe\ToSrvPipe’
If I try to launch the script again I then get the following error:
Read (or Write) from “\.\pipe\FromSrvPipe”
…does not exist. Ensure Audacity is running with mod-script-pipe.
I’m using the pipe-test.py file (please see code below) to check the connection with Audacity before running my script. Sometimes if I close Audacity and re-open it the script will work again for a few times and then will give me the same error, sometimes re-opening Audacity doesn’t work. I don’t really understand what the pipe-test.py is trying to (what is path “'\\.\pipe\ToSrvPipe”?), is there anything I could do or add to the code to stabilize the connection between Python and Audacity? I
Thanks in advance for your response