(SOLVED) FileNotFoundError: [WinError 2] The system cannot find the file specified #55
quantuan125
started this conversation in
General
Replies: 1 comment
-
SOLVED: It is a rookie mistake that I did not install ffmpeg on my whole system (through choco) but only in vscode(python). The application is now doing great! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I tried to follow the installation and got some success to get the webui started.
However, as I tried to upload and transcribe an uploaded video with default settings. I'm getting this error.
Before clicking on the transcribe button, my video comes up fine, which suggests that the video file path has been found, so perhaps the file not found in this case is the directory of the transcription text??
Do you have any idea how to fix this issue? This is the full error:
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback:
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\webui.py", line 523, in
run()
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\webui.py", line 516, in run
webui()
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\webui.py", line 316, in webui
subs = _transcribe(file_path, stt_model_name, model_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 194, in wrapper
return cached_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 223, in call
return self._get_or_create_cached_value(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 248, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 302, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\webui.py", line 190, in _transcribe
subs = subs_ai.transcribe(media_file=file_path, model=model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\main.py", line 114, in transcribe
return stt_model.transcribe(media_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\models\whisper_model.py", line 207, in transcribe
audio = whisper.load_audio(media_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\whisper\audio.py", line 44, in load_audio
.run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_run.py", line 313, in run
process = run_async(
^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_run.py", line 284, in run_async
return subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\quant\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions