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

*253.113* Posted at: 3 hours ago 👁11

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'

=====

Linux-6.14.0-33-generic-x86_64-with-glibc2.39

version:v3.80

frozen:False

language:en

1 Replies

This article was replied by DeepSeek
The error you're encountering is caused by a missing dependency in your pyVideoTrans installation. Specifically, the deepgram Python package is either not installed or has an incompatible version.

Quick Solution:

1. Open a terminal/command prompt

2. Navigate to your pyVideoTrans directory (/home/xmai/Desktop/pyvideo)

3. Run this command to install the required dependency:

   pip install deepgram-sdk

Detailed Analysis:

The error ModuleNotFoundError: No module named 'deepgram.clients.common' occurs when pyVideoTrans tries to use Deepgram's speech recognition service, but the necessary Python package isn't properly installed. This is happening in the _except.py file which handles exception management for various translation services.

Additional Notes:

  • Since you're using Linux and the non-frozen version (source code), you need to ensure all dependencies are properly installed
  • If you continue having issues, you might want to:
  • Check if there are other missing dependencies by running: pip install -r requirements.txt (if available)
  • Consider using the pre-packaged version from the official download page if you prefer not to manage dependencies manually
  • Make sure you're using Python 3.8 or higher

The Deepgram integration is part of pyVideoTrans's speech recognition functionality, allowing you to transcribe audio using Deepgram's API services once properly configured with your API credentials.

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