Python 正在写入命名管道-仅Pycharm中的错误号22
我试图使用命名管道向Audacity发送命令,可以使用:(由Audacity提供)对其进行测试 第一次运行时,打开Audacity,这将产生:Python 正在写入命名管道-仅Pycharm中的错误号22,python,pycharm,pipe,audacity,Python,Pycharm,Pipe,Audacity,我试图使用命名管道向Audacity发送命令,可以使用:(由Audacity提供)对其进行测试 第一次运行时,打开Audacity,这将产生: pipe-test.py, running on windows Traceback (most recent call last): Write to "\\.\pipe\ToSrvPipe" Read from "\\.\pipe\FromSrvPipe" File "C:/Users/chri
pipe-test.py, running on windows
Traceback (most recent call last):
Write to "\\.\pipe\ToSrvPipe"
Read from "\\.\pipe\FromSrvPipe"
File "C:/Users/chris/PycharmProjects/Youtube-Spotify-DL/pipe_test3.py", line 44, in <module>
-- Both pipes exist. Good.
TOFILE = open(TONAME, 'w')
OSError: [Errno 22] Invalid argument: '\\\\.\\pipe\\ToSrvPipe'
Process finished with exit code 1
pipe-test.py,在windows上运行
回溯(最近一次呼叫最后一次):
写入“\\.\pipe\ToServPipe”
从“\\.\pipe\FromSrvPipe”读取
文件“C:/Users/chris/PycharmProjects/Youtube Spotify DL/pipe_test3.py”,第44行,在
--两条管道都存在。好。
TOFILE=open(音调名称“w”)
OSError:[Errno 22]无效参数:'\.\\pipe\\ToSrvPipe'
进程已完成,退出代码为1
第二次运行时:
Traceback (most recent call last):
File "C:/Users/chris/PycharmProjects/Youtube-Spotify-DL/pipe_test3.py", line 44, in <module>
pipe-test.py, running on windows
TOFILE = open(TONAME, 'w')
FileNotFoundError: [Errno 2] No such file or directory: '\\\\.\\pipe\\ToSrvPipe'
Write to "\\.\pipe\ToSrvPipe"
Read from "\\.\pipe\FromSrvPipe"
-- Both pipes exist. Good.
Process finished with exit code 1
回溯(最近一次呼叫最后一次):
文件“C:/Users/chris/PycharmProjects/Youtube Spotify DL/pipe_test3.py”,第44行,在
pipe-test.py,在windows上运行
TOFILE=open(音调名称“w”)
FileNotFoundError:[Errno 2]没有这样的文件或目录:'\\\.\\pipe\\ToSrvPipe'
写入“\\.\pipe\ToServPipe”
从“\\.\pipe\FromSrvPipe”读取
--两条管道都存在。好。
进程已完成,退出代码为1
因此,管道似乎无法写入和/或关闭。但是,当在空闲状态下运行此脚本时,它运行得很好。那么,Pycharm以何种方式阻止写入此命名管道,以及如何修复它?
谢谢
Traceback (most recent call last):
File "C:/Users/chris/PycharmProjects/Youtube-Spotify-DL/pipe_test3.py", line 44, in <module>
pipe-test.py, running on windows
TOFILE = open(TONAME, 'w')
FileNotFoundError: [Errno 2] No such file or directory: '\\\\.\\pipe\\ToSrvPipe'
Write to "\\.\pipe\ToSrvPipe"
Read from "\\.\pipe\FromSrvPipe"
-- Both pipes exist. Good.
Process finished with exit code 1