#8923 System Error (None): NoneTraceback (most recent call last):

2409**d929 Posted at: 59 minutes ago

System Error (None): None
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 207, in process_task

File "videotrans\task\dubbing.py", line 289, in task_done

File "shutil.py", line 434, in copy2

File "shutil.py", line 234, in copyfile

shutil.SameFileError: 'D:/Drapery Fundamentals/output/tts/critique-the-first-two-folds-captions-english.zh-cn.wav' and 'D:/Drapery Fundamentals/output/tts/critique-the-first-two-folds-captions-english.zh-cn.wav' are the same file
[DubbingSrt]语音合成: self.out_ext='wav',self.is_multi_role=True
[TaskCfgTTS]
原始输入文件名: D:/桌面转移/critique-the-first-two-folds-captions-english.zh-cn.srt,
输出结果保存到文件夹: D:/Drapery Fundamentals/output/tts,
临时文件夹: D:/DraperyFundamentals/tmp/16788/eadf3e3880
未启用CUDA加速
配音渠道:MOSS-TTS-Nano(内置), 角色:zh_male_bj.wav, 配音语言:zh-cn
音量:+0%, 语速:+0%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:12334


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/DraperyFundamentals

1 Replies

#1 DeepSeek reply at 59 minutes ago

核心原因:这是 角色配音/文字配音 功能在最后收尾复制成品文件时,源路径和目标路径完全相同(都是 D:/Drapery Fundamentals/output/tts/xxx.zh-cn.wav),导致 shutil.copy2 抛出 SameFileError。也就是你把「输出目录」指向了文件已经存在的同一个文件夹,程序试图把文件复制给它自己。

另外,你当前为 v4.14(frozen 打包版),该收尾逻辑在后续版本中已做过修复。

解决步骤:

  1. 最推荐:升级到最新版 v4.19(v4.18 起已修复“多角色配音只在所选文件夹保存一次”的同类问题),下载地址:https://pyvideotrans.com/downpackage。注意完整包 2.6GB 以上,覆盖时 sp.exe、_internal、videotrans 文件夹都要覆盖。
  2. 若不升级,改输出路径:在主界面/功能面板把「输出目录」改成一个新的、当前不存在的文件夹(例如 D:/out_tts),不要指向上次已生成过 wav 的 output/tts。
  3. 同时建议把输出目录和文件路径改简单些:D:/Drapery Fundamentals 这种带空格的路径在部分 ffmpeg/复制环节易出问题,建议改为 D:/dubbing 这类纯英文无空格浅层目录。
  4. 若必须重复输出到同一位置,先手动把该 output/tts 文件夹内的旧 wav 删除或改名,再执行。

补充说明:这次报错发生在“任务收尾”阶段,配音文件本身通常已成功生成,可直接到 D:/Drapery Fundamentals/output/tts 查看是否已有可用音频。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource