#5000 TypeError: '>' not supported between instances of 'int' and 'str'

191.6* Posted at: 23 hours ago

'>' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 143, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 50, in run
File "videotrans\task\trans_create.py", line 390, in recogn
File "videotrans\recognition\__init__.py", line 265, in run
File "videotrans\recognition\_base.py", line 180, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_deepgram.py", line 98, in _exec
File "deepgram_captions\srt.py", line 10, in srt
File "deepgram_captions\converters.py", line 18, in get_lines
TypeError: '>' not supported between instances of 'int' and 'str'


=
system:Windows-10-10.0.22631-SP0
version:v3.99
frozen:True
language:en
root_dir:F:/win-pyvideotrans-v3.99-0508

1 Replies

This error indicates a type mismatch in the Deepgram API response, likely because the deepgram_captions library expected an integer but received a string (e.g., a timestamp value).

Possible causes and solutions:

  1. Outdated API response format – Deepgram may have changed its response structure. Try updating the software to the latest version (v4.01) which may contain fixes.
  2. Incorrect API key or endpoint – Verify that your Deepgram API key is correctly entered in Menu → ASR Settings → Deepgram and that the API endpoint is not overridden.
  3. Audio format issue – Ensure your input file is a supported audio/video format (WAV, MP3, MP4, etc.) and is not corrupted.
  4. Temporary server-side issue – Retry the task after a few minutes, or switch to a different ASR channel (e.g., faster-whisper (local)) to isolate the problem.

Recommended immediate steps:

  • Go to Menu → Tools/Options → Advanced Options and set Deepgram API Key and region correctly.
  • If the problem persists, share the full log file from logs/ folder (last 30 lines) for a more precise analysis.

Please check related documentation:

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist