Error thrown when trying to encode audio. Running this
import flacthis
ft = flacthis.main(['--input_codec', 'flac', '--output_codec', 'mp3', source, output])
ERROR:audio_converter:Could not encode
Traceback (most recent call last):
File "C:\Users\technically-speaking\Python\flacthis\flacthis.py", line 325, in convert_to_lossy
p1 = subprocess.Popen(src_args, stdout=subprocess.PIPE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
Encoder exe files are in in the /flacthis directory and test detects them.