mod-script-pipe

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Mon May 20, 2019 11:13 am

Are you launching Audacity and mod-script-pipe from different directories?
How exactly are you launching Audacity and Python?

Try launching Audacity from the command line, then (without changing directories), launch pipeclient.py
What happens then?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Mon May 20, 2019 12:32 pm

Gibbz wrote:
Fri May 17, 2019 1:02 am
When I run pipe client on my windows 10 machine I get the error

Code: Select all

FileNotFoundError: [Errno 2] No such file or directory: '\\\\.\\pipe\\ToSrvPipe'
Which exact version of Audacity are you using?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Mon May 20, 2019 8:47 pm

I've discovered some peculiarities in the behaviour of mod-script-pipe in recent versions of Audacity, but I'm not able to progress further diagnosing the problem that you describe Gibbz without further information about what you are using and what you are doing.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Tue May 21, 2019 1:41 pm

There's an error in pipeclient.py (it appears that someone "corrected" my original script and introduced a bug).
Line 211 should be:

Code: Select all

while line != '\n':
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gibbz
Posts: 40
Joined: Tue Jul 11, 2017 8:36 am
Operating System: Linux Debian

Re: mod-script-pipe

Post by Gibbz » Mon May 27, 2019 4:00 am

I am using audacity version 2.3.2 python 3.7
I have tried disabling the mod-pipe, restart, enable, restart, then run the script.
Tried executing the script from the desktop, and also the audacity folder (C:\Program Files (x86)\Audacity).

I'm still getting the same error each time...

steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Mon May 27, 2019 10:28 am

Have you had previous versions of mod-script-pipe installed? If so, there could be a conflict causing this problem.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gibbz
Posts: 40
Joined: Tue Jul 11, 2017 8:36 am
Operating System: Linux Debian

Re: mod-script-pipe

Post by Gibbz » Tue May 28, 2019 11:56 pm

No other version. Ive just grabbed the new audacity, installed over the old, and thought to enable it to see if its useful for something I want to do.
Would an uninstall - reinstall be likley to fix the issue? Or are there some config files around in my user directory?

Im on windows 10

James Crook
Posts: 34
Joined: Thu May 28, 2015 7:35 pm
Operating System: Please select

Re: mod-script-pipe

Post by James Crook » Wed May 29, 2019 6:11 am

An uninstall/reinstall won't help.

You say you are on Win10, but are you perhaps running python in a MinGW environment or Audacity in a Linux VM?

I don't know how to diagnose this. There may be a way to see creation of named pipes, e.g. using system internals program, but I have not tried this.

Another thought is that you might have a security or group policy setting on your machine.

James Crook
Posts: 34
Joined: Thu May 28, 2015 7:35 pm
Operating System: Please select

Re: mod-script-pipe

Post by James Crook » Wed May 29, 2019 6:12 am

... my message got cut off.

I was thinking this setting or something similar...

https://docs.microsoft.com/en-us/window ... and-shares

steve
Site Admin
Posts: 81375
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: mod-script-pipe

Post by steve » Mon Jun 03, 2019 3:16 pm

There's a free command line tool called "PipeList" available (32 and 64-bit versions available) from https://live.sysinternals.com/

If you run this tool before launching Audacity, you should see a list similar to this:

Code: Select all

Pipe Name                                    Instances       Max Instances
---------                                    ---------       -------------
InitShutdown                                      3               -1
lsass                                             4               -1
ntsvcs                                            3               -1
scerpc                                            3               -1
Winsock2\CatalogChangeListener-3b8-0              1                1
epmapper                                          3               -1
Winsock2\CatalogChangeListener-210-0              1                1
...
Note that there should be no mention of "ToSrvPipe" or "FromSrvPipe".

Then launch Audacity and run PipeList again. You should now see these items added at the bottom of the list.

Code: Select all

ToSrvPipe                                         1               -1
FromSrvPipe                                       1               -1
Does that happen?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply