Unable to connect Python script with mod-script-pipe on 3.4.2

Hello, I am trying to make a python script that automatically batch exports X number of selections in Audacity. This has been working perfectly for a very long time, with my code viewable here:
MartinBarker/vinyl2digital: Batch render an Audacity audio track into an entire album of mp3 files using a Discogs URL for metadata tagging. (github.com)

But after updating to 3.4.2, I am always getting a mod-script-pipe error:

C:\Users\marti\Documents\projects\vinyl2digital>python vinyl2digital\__init__.py
pipe-test.py, running on windows
-- Both pipes exist.  Good.
Traceback (most recent call last):
  File "C:\Users\marti\Documents\projects\vinyl2digital\vinyl2digital\__init__.py", line 31, in <module>
    TOFILE = open(TONAME, 'w')
             ^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '\\\\.\\pipe\\ToSrvPipe'

C:\Users\marti\Documents\projects\vinyl2digital>

pointing out this line “TOFILE = open(TONAME, ‘w’)”, which is line 31 here:

vinyl2digital/vinyl2digital/init.py at master · MartinBarker/vinyl2digital (github.com)

is there a new or different way to connect using mod-script-pipe?

It should work pretty much the same.

  1. Check that mod-scrip-pipe is enabled in “Preferences > Modules”.

  2. Check that “quick_test” works in pipe_test.py.

found working python example: GitHub - beattidp/audacity-py-multitone: Python-driven scripted multitone generator, uses mod-script-pipe and Jinja2 templates. Mixes multiple tones and writes output audio files. using this to base my script off, not blocked anymore

This topic was automatically closed after 30 days. New replies are no longer allowed.