#1314 paraformer-zh is not registered

158.179* Posted at: 3 hours ago 👁5

paraformer-zh is not registered


=
system:macOS-15.6.1-arm64-arm-64bit
version:v3.84
frozen:False
language:zh
root_dir:/Users/tools/git/pyvideotrans-main
Python: 3.10.17 (main, Apr 8 2025, 12:10:59) [Clang 17.0.0 (clang-1700.0.13.3)]

1 Replies

这是源码部署时遇到的 modelscope 模块兼容性问题。根据核心知识库,解决方案如下:

  1. 找到 modelscope 的源码文件。通常位于 Python 环境下的 site-packages/modelscope/utils/lazy_import.py
  2. 打开该文件,找到 LazyImportModule 类中的 __getattr__ 方法。
  3. 在该方法开头添加以下代码:

    def __getattr__(self, name):
     # 新增的代码开始
     if name == '__wrapped__':
         return None
     # 新增的代码结束
     if name in self._repositories:
         # ... 原有代码
  4. 保存文件并重启软件。

这个修改可以解决 paraformer-zh is not registered 的错误。如果问题仍然存在,请提供完整的错误日志。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions