mod-script-pipe

What is happening here?

pipe-test.py, running on windows
Traceback (most recent call last):
Write to “\.\pipe\ToSrvPipe”
Read from “\.\pipe\FromSrvPipe”
– Both pipes exist. Good.
File “C:\Users\lia7952\PycharmProjects\AudacityTest\pipe-test.py”, line 44, in
TOFILE = open(TONAME, ‘w’)
OSError: [Errno 22] Invalid argument: ‘\\.\pipe\ToSrvPipe’

Which version of Audacity, which version of Windows, and which version of Python?

I was getting this error:

Traceback (most recent call last):
File “E:/Documents/Programming/Python/audacity/pipe_test.py”, line 44, in
TOFILE = open(TONAME, ‘w’)
OSError: [Errno 22] Invalid argument: ‘\\.\pipe\ToSrvPipe’
pipe-test.py, running on windows
Write to “\.\pipe\ToSrvPipe”
Read from “\.\pipe\FromSrvPipe”
– Both pipes exist. Good.

When I pasted on Google, this is the first page that poped up, so I’m writting my solution here just in case someone is as lost as I was. I solved it by sleeping just before the open statement, like this:

print("-- Both pipes exist.  Good.")
sleep(0.01)
TOFILE = open(TONAME, 'w')

Remember to import the function:

from time import sleep

commenting out the os.path.exists lines so that it goes straight to open worked for me. I think os.path.esists has a bug in it or something when dealing with pipes. python3.8

Yes i am having the same issue. I also feel os.pth certainly has a bug

Which Python script are you referring to?