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

191.6* Posted at: 1 hour ago 👁7

'>' 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\_mult_video.py", line 39, 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:C:/win-pyvideotrans-v3.99-0508

1 Replies

This error is caused by a compatibility bug in the deepgram_captions Python library used by the Deepgram ASR channel. The library expects a string where an integer is being provided, triggering the '>' not supported between instances of 'int' and 'str' error.

Solutions:

  1. Switch to a different ASR channel (recommended):
    Use faster-whisper (local) or openai-whisper instead. These are more stable and do not have this dependency issue. Simply select it from the dropdown in the main interface.
  2. For source‑code users:
    Update the deepgram-captions package to the latest version:

    pip install --upgrade deepgram-captions
  3. For pre‑packaged Windows users:
    The bug is in the bundled deepgram_captions library. No manual fix is available in the current packaged version. Please use an alternative ASR channel until a new release addresses this.

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.

Related resource