Build Audacity with mod-script-pipe on Raspberry Pi [SOLVED]

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: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Wed Mar 21, 2018 10:28 am

Launch Audacity from your normal log-in account, then look in "Help > Diagnostics > Show Log". Anything in there related to the module?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ixnay
Posts: 5
Joined: Wed Mar 21, 2018 2:11 pm
Operating System: Linux Mint

Re: mod-script-pipe.so won't load

Post by Ixnay » Wed Mar 21, 2018 2:37 pm

Hello,
I have a quite similar issue. I have mod-script-pipe recognized in Preferences > Modules, and enabled, but it doesn't seem to be loaded. The pipes are not created. Though it worked the first time after installation, it did not work anymore after the computer restarts.

Do you have an idea of what is going on ? :?:

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

Re: mod-script-pipe.so won't load

Post by steve » Wed Mar 21, 2018 3:05 pm

Ixnay wrote:The pipes are not created
Are you looking in "/tmp"?
On Linux, if mod-script-pipe is enabled (as can be seen in "Edit > Preferences > Modules", but only after restarting Audacity), then you should see two files in "/tmp":

Code: Select all

/tmp/audacity_script_pipe.from.1000
/tmp/audacity_script_pipe.to.1000
The number at the end may be different (that depends on the logged-in user ID).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ixnay
Posts: 5
Joined: Wed Mar 21, 2018 2:11 pm
Operating System: Linux Mint

Re: mod-script-pipe.so won't load

Post by Ixnay » Wed Mar 21, 2018 4:15 pm

steve wrote:
Ixnay wrote:The pipes are not created
Are you looking in "/tmp"?
On Linux, if mod-script-pipe is enabled (as can be seen in "Edit > Preferences > Modules", but only after restarting Audacity), then you should see two files in "/tmp":

Code: Select all

/tmp/audacity_script_pipe.from.1000
/tmp/audacity_script_pipe.to.1000
The number at the end may be different (that depends on the logged-in user ID).
Yes, that is where I look for the pipes. I have this issue on two computers (Ubuntu & Linux Mint). No specific message related to mod-script-pipe in the logs. If I choose 'ask' for the module nothing shows up when Audacity starts.

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

Re: mod-script-pipe.so won't load

Post by steve » Wed Mar 21, 2018 4:20 pm

Ixnay, If you launch Audacity and then open the Preference page for modules, does it say that the module "mod-script-pipe" is "Enabled"?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ixnay
Posts: 5
Joined: Wed Mar 21, 2018 2:11 pm
Operating System: Linux Mint

Re: mod-script-pipe.so won't load

Post by Ixnay » Wed Mar 21, 2018 4:33 pm

Yes, it does. (if I choose "Ask", then if I start again I can read "Ask" in the preferences but actually it asks for nothing)

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

Re: mod-script-pipe.so won't load

Post by steve » Wed Mar 21, 2018 4:49 pm

Like this?
ask.png
ask.png (22.08 KiB) Viewed 589 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ixnay
Posts: 5
Joined: Wed Mar 21, 2018 2:11 pm
Operating System: Linux Mint

Re: mod-script-pipe.so won't load

Post by Ixnay » Wed Mar 21, 2018 5:25 pm

Oh I got the thing... It's a problem of PATH too, it does not find the module but as the first time I started audacity from the installation folder, he found it the first time and saved it in the preferences. It works again when I start audacity from the installation folder. But now I fall into the same issue as the author of the thread...

Ixnay
Posts: 5
Joined: Wed Mar 21, 2018 2:11 pm
Operating System: Linux Mint

Re: mod-script-pipe.so won't load

Post by Ixnay » Wed Mar 21, 2018 5:39 pm

Ok I put the module in ~/.audacity-files/modules/ and now it seems to work ! (I didn't figure out why it does not work in the same folder as plugins) thnk you

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

Re: mod-script-pipe.so won't load

Post by steve » Wed Mar 21, 2018 6:24 pm

Ixnay wrote:I didn't figure out why it does not work in the same folder as plugins
"Modules" and "Plug-ins" are different. "Plug-ins" have to go in the plug-ins path, and "modules" have to go in the modules path.
If Audacity is properly installed at:

Code: Select all

/usr/local/share/audacity
then Audacity should be able to find files that are in:

Code: Select all

/usr/local/share/audacity/modules/<name-of-module>.so
However, I would recommend putting the module into:

Code: Select all

~/.audacity-files/modules/<name-of-module>.so
as this is a "per user" installation and is independent of the installation path of Audacity.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked