Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #872

Open
SuperN0va opened this issue Jan 10, 2025 · 3 comments
Open

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #872

SuperN0va opened this issue Jan 10, 2025 · 3 comments

Comments

@SuperN0va
Copy link

C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\transformers\models\qwen2\modeling_qwen2.py:693: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:455.)
attn_output = torch.nn.functional.scaled_dot_product_attention(
2025-01-11 00:54:26,739 INFO yield speech len 11.08, rtf 1.091904782216041
C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\processing_utils.py:738: UserWarning: Trying to convert audio automatically from float32 to 16-bit int format.
warnings.warn(warning.format(data.dtype))
C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last):
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\blocks.py", line 2043, in process_api
data = await self.handle_streaming_outputs(
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\blocks.py", line 1870, in handle_streaming_outputs
binary_data, output_data = await block.stream_output(
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\components\audio.py", line 361, in stream_output
value, duration = await self.covert_to_adts(binary_data)
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\components\audio.py", line 330, in covert_to_adts
return await anyio.to_thread.run_sync(Audio._convert_to_adts, data)
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\anyio_backends_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\anyio_backends_asyncio.py", line 962, in run
result = context.run(func, *args)
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\gradio\components\audio.py", line 321, in _convert_to_adts
segment = AudioSegment.from_file(io.BytesIO(data))
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\enigm\miniconda3\envs\cosyvoice\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
部署成功之后在生成环节提示找不到指定文件

@imshuhao
Copy link

安装ffmpeg

@cndxflwb
Copy link

我也是同样的问题,ffmpeg也安装了,在conda环境中也可以看到ffmpeg版本信息。但还是不行

@Mouseminar
Copy link

我也是这个问题,后来看这个贴子解决啦!!!
https://blog.csdn.net/qq_72632426/article/details/129389383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants