Traceback (most recent call last): File "run.py", line 231, in <module> start() File "run.py", line 217, in start add_audio(output_dir, target_path, args['keep_frames'], args['output_file']) File "/home/reason/Downloads/roop-main/core/utils.py", line 54, in add_audio shutil.move(output_dir + f"/output.mp4", save_to) File "/home/reason/anaconda3/envs/deepfake-roop/lib/python3.8/shutil.py", line 811, in move copy_function(src, real_dst) File "/home/reason/anaconda3/envs/deepfake-roop/lib/python3.8/shutil.py", line 435, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "/home/reason/anaconda3/envs/deepfake-roop/lib/python3.8/shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: '/home/reason/Documents/MJ/output.mp4'
时间: 2023-12-31 10:06:22 浏览: 217
浅谈Python traceback的优雅处理
这个错误提示说明程序无法在指定路径找到文件 "/home/reason/Documents/MJ/output.mp4",可能是因为文件不存在或者路径不正确。请检查文件是否存在,并且确认路径是否正确。如果文件不存在,请确保程序生成了输出文件并且输出文件名正确。如果路径不正确,则需要更改路径以指向正确的文件位置。
阅读全文