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

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

Open
rabbit07072 opened this issue Oct 20, 2024 · 4 comments
Open

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

rabbit07072 opened this issue Oct 20, 2024 · 4 comments

Comments

@rabbit07072
Copy link

音频文件正确的。路径正确的。但是提示错误

ComfyUI Error Report

Error Details

  • Node Type: HalloPreImgAndAudio
  • Exception Type: FileNotFoundError
  • Exception Message: [WinError 2] 系统找不到指定的文件。

Stack Trace

  File "E:\ComfyUI-aki-v1.3\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI-aki-v1.3\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "E:\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "E:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Hallo2\Hallo_node.py", line 318, in loader_main
    audio_embs, audio_length = load_audio(use_cut, driving_audio_file, save_path, sample_rate, fps,

  File "E:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Hallo2\Hallo_node.py", line 110, in load_audio
    audio_list = cut_audio(driving_audio_file,save_path)

  File "E:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Hallo2\scripts\inference_long.py", line 143, in cut_audio
    audio = AudioSegment.from_wav(audio_path)

  File "E:\ComfyUI-aki-v1.3\python\lib\site-packages\pydub\audio_segment.py", line 808, in from_wav
    return cls.from_file(file, 'wav', parameters=parameters)

  File "E:\ComfyUI-aki-v1.3\python\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)

  File "E:\ComfyUI-aki-v1.3\python\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)

  File "E:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File "E:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
@smthemex
Copy link
Owner

smthemex commented Oct 21, 2024

不应该啊,音频这里我还没来得及去看内部的文件,特意用了转存一个的笨法子,你看一下input是否有含有temp的audio文件
代码有点问题,请迟点测试推送的新版本

@mufenglyf
Copy link

同样的问题

@smthemex
Copy link
Owner

如果无法加载音频,请确认ffmpeg以及ffmpeg-python,包括是否正确安装或者ffmpeg是否能被正确调用.秋叶包遇到这样的问题较多.

@jiafw
Copy link

jiafw commented Oct 31, 2024

确实是因为ffmpeg的问题,秋叶启动器需要去“高级选项”,“环境维护”,“原生组件”管理中把ffmpeg安装一下

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