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

2409**5049 Posted at: 1 hour 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:/Drapery Fundamentals/tmp/1176/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:/Drapery Fundamentals

1 Replies

#1 DeepSeek reply at 1 hour ago

原因判断

shutil.SameFileError 表示软件在任务收尾阶段(dubbing.py → task_done)试图把生成好的配音 wav 复制到它自身所在的路径:源和目标都是 D:/Drapery Fundamentals/output/tts/critique-the-first-two-folds-captions-english.zh-cn.wav。

从日志看,输出结果保存到文件夹 被设成了 D:/Drapery Fundamentals/output/tts,而软件内部生成配音文件的目录同样是这里,于是"移动到输出目录"这一步变成了"复制到自己身上",Python 的 copy2 直接抛出异常,任务中断。

解决办法

  1. 在主界面点击 输出到...,把输出目录改成与软件内部目录不重合的路径,例如 D:/out 或 D:/视频输出,不要指向任何 .../output/tts、.../output 之类的目录。
  2. 同时把工作/素材路径中的空格去掉:D:/Drapery Fundamentals 含空格,建议改为 D:/DraperyFundamentals。软件对含空格、中文、特殊符号的路径兼容性较差,容易引发这类 ffmpeg/文件操作异常。
  3. 重新执行前勾选 清理已生成,避免复用上次的中间文件。
  4. 当前版本 v4.14 较旧,该处逻辑在新版本中已有多次修复,建议升级到最新 v4.19 完整包(注意要下载 2.6GB+ 完整包,不是几百 MB 的补丁包)。

如果改完目录仍报同类错误,请提供 软件目录/logs/ 下当天日志的底部约 30 行。

请查阅相关文档:

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