#8451 Traceback (most recent call last): File

146.212**6 Posted at: 1 hour ago

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 108, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_f5tts.py", line 57, in _exec
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\process\f5_tts.py", line 23, in
File "pyimod02_importers.py", line 457, in exec_module
File "f5_tts\api.py", line 11, in

from f5_tts.infer.utils_infer import (

File "pyimod02_importers.py", line 457, in exec_module
File "f5_tts\infer\utils_infer.py", line 28, in

from transformers import pipeline

File "C:\win-pyvideotrans-v4.17\_internal\transformers\__init__.py", line 30, in

from . import dependency_versions_check

File "C:\win-pyvideotrans-v4.17\_internal\transformers\dependency_versions_check.py", line 56, in

require_version_core(deps[pkg])

File "C:\win-pyvideotrans-v4.17\_internal\transformers\utils\versions.py", line 116, in require_version_core

return require_version(requirement, hint)

File "C:\win-pyvideotrans-v4.17\_internal\transformers\utils\versions.py", line 110, in require_version

_compare_versions(op, got_ver, want_ver, requirement, pkg, hint)

File "C:\win-pyvideotrans-v4.17\_internal\transformers\utils\versions.py", line 43, in _compare_versions

raise ImportError(

ImportError: safetensors>=0.8.0 is required for a normal functioning of this module, but found safetensors==0.4.5.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main

trk=[TransCreate]: uuid='e637c035a6', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/CrocFIX/Desktop/CrocFIX/a25 unlock.mp4,
输出结果保存到文件夹: C:/Users/CrocFIX/Desktop/CrocFIX/_video_out/a25 unlock-mp4,
临时文件夹: C:/win-pyvideotrans-v4.17/tmp/20376/e637c035a6
已选 清理已存在
已启用CUDA加速
STT Service:faster-whisper(Built-in), base.en, 发音语言: English, , 数据类型:default
TranslateSrt:Google Translate (Free),原始语言:English,目标语言:German, 已选 SendSRT, settings.get('trans_thread')=10, settings.get('aitrans_thread')=50
TTS Service:F5-TTS(Built-in), 角色:clone, 配音语言:German, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: No Subtitles , precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=265, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=388260


=
system:Windows-10-10.0.26300-SP0
version:v4.17
frozen:True
language:en_US
root_dir:C:/win-pyvideotrans-v4.17

1 Replies

#1 DeepSeek reply at 1 hour ago

This is caused by an incomplete upgrade overwrite: the safetensors library in the _internal folder is still the old version (0.4.5), while the transformers in the new version requires safetensors>=0.8.0. F5-TTS depends on transformers, so it crashes on import.

Solution (do it in order):

  1. Download the v4.17 full package or patch package again. For first-time users who downloaded only the ~260MB patch package, you must download the 2.7GB full package.
  2. Extract and overwrite with all files and folders from the package - not just sp.exe; you must also overwrite the _internal folder and the videotrans folder. params.json and cfg.json need not be deleted; the configuration will be preserved.
  3. If the error persists after overwriting, go to the _internal folder of the old version, search for all __pycache__ directories and files, delete them all, then overwrite again (this is a cache residue problem).
  4. Start sp.exe again and rerun the task.

Note: after the overwrite is complete, the version number in the top-left corner should still be v4.17, but the dependency versions will be updated. If you are unwilling to re-download, you can temporarily switch the dubbing channel to Edge-TTS or another channel other than F5-TTS, and wait until the overwrite is fixed before using F5-TTS.

Please refer to the related documentation:

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