Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 正在写入命名管道-仅Pycharm中的错误号22_Python_Pycharm_Pipe_Audacity - Fatal编程技术网

Python 正在写入命名管道-仅Pycharm中的错误号22

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

我试图使用命名管道向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/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