#3433 Pillow version: 12.1.1

119.1* Posted at: 2 hours ago 👁3

:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 246, in _process_worker
File "videotrans\process\tts_fun.py", line 34, in qwen3tts_fun
File "E:\01testtt\pyVideoTrans\_internal\qwen_tts\__init__.py", line 21, in

from .inference.qwen3_tts_model import Qwen3TTSModel, VoiceClonePromptItem

File "E:\01testtt\pyVideoTrans\_internal\qwen_tts\inference\qwen3_tts_model.py", line 27, in

from transformers import AutoConfig, AutoModel, AutoProcessor

File "pyimod02_importers.py", line 457, in exec_module
File "transformers\__init__.py", line 27, in

from . import dependency_versions_check

File "pyimod02_importers.py", line 457, in exec_module
File "transformers\dependency_versions_check.py", line 16, in

from .utils.versions import require_version, require_version_core

File "pyimod02_importers.py", line 457, in exec_module
File "transformers\utils\__init__.py", line 37, in

from .chat_template_utils import DocstringParsingException, TypeHintParsingException, get_json_schema

File "pyimod02_importers.py", line 457, in exec_module
File "transformers\utils\chat_template_utils.py", line 51, in

from PIL.Image import Image

File "pyimod02_importers.py", line 457, in exec_module
File "PIL\Image.py", line 103, in
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: 12.1.0
Pillow version: 12.1.1
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 341, in run
File "videotrans\tts\_base.py", line 139, in run
File "videotrans\tts\_qwenttslocal.py", line 60, in _exec
File "videotrans\configure\_base.py", line 286, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: 12.1.0
Pillow version: 12.1.1


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:E:/01testtt/pyVideoTrans

1 Replies

这是由于软件内部依赖的 Pillow (PIL) 库版本不匹配导致的。具体表现为 _imaging 扩展模块是为 Pillow 12.1.0 编译的,但当前环境中检测到的 Pillow 版本是 12.1.1。

  1. 重新下载完整包:您使用的是 Windows 预打包版 (frozen:True)。此错误通常出现在使用“补丁包”升级或文件损坏时。请从官方网站下载 v3.97 的完整 .7z 压缩包
  2. 彻底清理并重新安装

    • 关闭 pyVideoTrans 软件。
    • 将当前有问题的 E:\01testtt\pyVideoTrans 文件夹整个删除
    • 将新下载的完整 .7z 压缩包解压到一个全新的、不含中文和特殊字符的路径(例如 D:\pyVideoTrans)。
    • 运行新解压目录中的 sp.exe

重要提示:请勿在旧目录上直接覆盖文件,务必先删除旧版本再安装新版本,以确保所有依赖文件正确。

请查阅相关文档:

Post Your Reply
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.

Related resource