Skip to content

[WinError 2] The system cannot find the file specified #6

@technically-speaking

Description

@technically-speaking

Error thrown when trying to encode audio. Running this

import flacthis

ft = flacthis.main(['--input_codec', 'flac', '--output_codec', 'mp3', source, output])

Throws this

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions