#785 Traceback (most recent call last): File "/home/xmai/Desktop/pyvideo/videotrans/util/TestSrtTrans.py", line 17, in run te

*253.113* Posted at: 2 hours ago 👁7

Traceback (most recent call last):

File "/home/xmai/Desktop/pyvideo/videotrans/util/TestSrtTrans.py", line 17, in run

text = translator.run(translate_type=self.translator_type,

File "/home/xmai/Desktop/pyvideo/videotrans/translator/__init__.py", line 852, in run

from videotrans.translator._deepseek import DeepSeek

File "/home/xmai/Desktop/pyvideo/videotrans/translator/_deepseek.py", line 11, in

from videotrans.configure._except import NO_RETRY_EXCEPT

File "/home/xmai/Desktop/pyvideo/videotrans/configure/_except.py", line 5, in

from deepgram.clients.common.v1.errors import DeepgramApiError

ModuleNotFoundError: No module named 'deepgram.clients.common'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/home/xmai/Desktop/pyvideo/videotrans/util/TestSrtTrans.py", line 25, in run

from videotrans.configure._except import get_msg_from_except

File "/home/xmai/Desktop/pyvideo/videotrans/configure/_except.py", line 5, in

from deepgram.clients.common.v1.errors import DeepgramApiError

ModuleNotFoundError: No module named 'deepgram.clients.common'

1 Replies

本条内容由 DeepSeek 回复
这是一个与 pyVideoTrans 相关的依赖库版本兼容性问题。错误信息显示 deepgram.clients.common 模块未找到,这通常是由于 deepgram 库版本过旧或安装不完整导致的。

问题原因:

pyVideoTrans 使用了 deepgram 库进行语音识别,但当前安装的 deepgram 库版本可能与软件要求的版本不兼容。错误发生在导入 deepgram.clients.common.v1.errors 模块时,这表明 deepgram 库的安装可能不完整或版本过旧。

解决方案:

1. 更新 deepgram 库到最新版本:

打开终端或命令提示符,执行以下命令:

   pip install --upgrade deepgram

或者如果使用的是 pip3

   pip3 install --upgrade deepgram

2. 如果更新后问题仍然存在,尝试重新安装:

   pip uninstall deepgram
   pip install deepgram

3. 检查其他依赖:

确保所有 pyVideoTrans 的依赖库都是最新版本。你可以参考官方文档或源码仓库中的 requirements.txt 文件来确认所需的库和版本。

4. 如果问题持续,考虑重新安装 pyVideoTrans

从官方下载页面(https://pyvideotrans.com/downpackage)获取最新版本,并按照安装说明重新安装。

如果以上步骤仍无法解决问题,请提供软件目录下 logs 文件夹中最新日志文件的内容,以便进一步分析。

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

Trending Questions