#7212 翻译字幕阶段出错 [Hy-MT2-1.8B(内置)] Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git ma

104.28**3 Posted at: 1 hour ago

翻译字幕阶段出错 [Hy-MT2-1.8B(内置)] Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
Traceback (most recent call last):

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

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

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 67, in run

File "videotrans\translator\_base.py", line 62, in run

File "videotrans\translator\_hymt2.py", line 33, in _download

File "H:\pyvideotrans-new\_internal\transformers\__init__.py", line 30, in

from . import dependency_versions_check

File "H:\pyvideotrans-new\_internal\transformers\dependency_versions_check.py", line 56, in

require_version_core(deps[pkg])

File "H:\pyvideotrans-new\_internal\transformers\utils\versions.py", line 116, in require_version_core

return require_version(requirement, hint)

File "H:\pyvideotrans-new\_internal\transformers\utils\versions.py", line 110, in require_version

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

File "H:\pyvideotrans-new\_internal\transformers\utils\versions.py", line 43, in _compare_versions

raise ImportError(

ImportError: regex>=2025.10.22 is required for a normal functioning of this module, but found regex==2023.10.3.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
[TransCreate]翻译视频: self.is_copy_video=True,self.video_codec_num=265,self.is_audio_trans=False,self.video_info={'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1920, 'height': 1080, 'time': 6986879, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: I:/迅雷云盘/[email protected]4,
输出结果保存到文件夹: I:/迅雷云盘/_video_out/489155.com@SSNI-392-U-mp4,
临时文件夹: H:/pyvideotrans-new/tmp/21404/bb4e1f7109
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Dolphin亚洲语言(内置), , 发音语言: 日语, 断句方式:默认断句
翻译渠道:Hy-MT2-1.8B(内置),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:10809


=
system:Windows-10-10.0.22621-SP0
version:v4.12
frozen:True
language:zh
root_dir:H:/pyvideotrans-new

1 Replies

#1 DeepSeek reply at 1 hour ago

这是因为 transformers 库与 regex 库存在依赖版本冲突,导致 Hy-MT2-1.8B(内置) 翻译渠道加载失败。

解决方案

  1. 升级到最新版本的 v4.12(若已是最新版本,请重新下载补丁包覆盖)。
  2. 如果升级后仍然报错,这通常是预打包版中依赖包版本不一致导致的,建议下载完整版压缩包覆盖安装。
  3. 如果仍希望使用该渠道,可尝试改用其他翻译渠道,例如 DeepSeekGoogle(免费)M2M100(内置)

请查阅相关文档:

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