Can't get scripting to work on Lubuntu 13.10

Building and customizing Audacity from the source code.
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
Post Reply
d.t.
Posts: 4
Joined: Tue May 20, 2014 4:03 am
Operating System: Please select

Can't get scripting to work on Lubuntu 13.10

Post by d.t. » Tue May 20, 2014 4:25 am

I am using Lubuntu 13.10.

I have downloaded and compiled Audacity 2.0.6 as of today.

I have successfully compiled Audacity and it runs fine.
I also followed the directions for compiling mod-script-pipe, it compiles fine and copies the mod-script-pipe.so file to the modules directory.

Both Audacity and mod-script-pipe.so were built today within minutes of one another.

But when I launch Audacity it doesn't seem to pick up the scripting module. This is what I get when I try running the test script

Code: Select all

   ~/audacity-read-only/scripts$ ./pipe-test.pl
   Could not open /tmp/audacity_script_pipe.to.1000 at ./pipe-test.pl line 46.
I check the modules directory and see the .so file is there

Code: Select all

   [email protected]:~/audacity-read-only/modules$ ls -al
   total 36
   drwxr-xr-x  2 browser browser  4096 May 19 09:01 .
   drwxr-xr-x 20 browser browser  4096 May 19 19:50 ..
   -rwxr-xr-x  1 browser browser 25101 May 19 20:01 mod-script-pipe.so
I look in the /tmp/ directory and neither pipe is there even though Audactiy is running.

What's a good way to debug this?

Thanks!

--DT

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

Re: Can't get scripting to work on Lubuntu 13.10

Post by steve » Tue May 20, 2014 8:41 am

I presume that you read the bit where it says that Mod Script Pipe is experimental and not supported ;)

Try creating a folder:

Code: Select all

~/.audacity-files/modules/
Put the mod-script-pipe.so file into that folder, then restart Audacity.

Any better?

There is a test perl script included in the SVN tree: "/scripts/pipe-test.pl"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

d.t.
Posts: 4
Joined: Tue May 20, 2014 4:03 am
Operating System: Please select

Re: Can't get scripting to work on Lubuntu 13.10

Post by d.t. » Tue May 20, 2014 3:56 pm

Funny -- the make puts the mod-script-pipe.so file in ~/audacity-read-only/modules -- I didn't see any reference to ~/.audacity-files.

The documentation says, and I quote:
"Under GCC, move into the lib-src/mod-script-pipe directory and type "make". This will build the module and copy the ".so" to the modules directory."
The implication is that everything is ready to roll.

Thank you for the pointer about ~/.audacity-files. I copied mod-script-pipe.so to that directory and now when Audacity starts up it sees the module.

I'll change my local version so make puts the file in the right place.

Time to go try it out!

--DT

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

Re: Can't get scripting to work on Lubuntu 13.10

Post by steve » Tue May 20, 2014 4:27 pm

What should happen, if this were part of the Audacity release, is that building would create the module .SO, then installing would copy it to a modules folder in the installation directory. Mod-script-pipe is not part of the official release, so it does not get "installed".

By default, building from source and installing would put plug-ins into:
/usr/local/share/audacity/plugins/
and modules into:
/usr/local/share/audacity/modules/

By default these folders are owned by root, which is not very convenient for installing optional plug-ins or modules, but fortunately you can also use:
~/.audacity-files/plugins/
and
~/.audacity-files/modules/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Can't get scripting to work on Lubuntu 13.10

Post by Gale Andrews » Fri May 23, 2014 8:58 pm

d.t. wrote:The documentation says, and I quote:
"Under GCC, move into the lib-src/mod-script-pipe directory and type "make". This will build the module and copy the ".so" to the modules directory."
The implication is that everything is ready to roll.
I have clarified the Manual for the next release.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

ariakan
Posts: 2
Joined: Thu Dec 17, 2015 4:47 pm
Operating System: Please select

Re: Can't get scripting to work on Lubuntu 13.10

Post by ariakan » Thu Dec 17, 2015 4:51 pm

Hi
im facing the same problem (with ubuntu 15.10)
I downloaded audacity from git
configure the project
compiling mod-script-pipe
then I compiled audacity
no error
i execute audacity
then i runned the test script in ./script
but it return me
<code>
Could not open /tmp/audacity_script_pipe.to.1000 at pipe-test.pl line 46
</code>

any one can help me?

Post Reply