#4013 TypeError: GEMINITTS._item_task() takes from 1 to 2 positional arguments but 3 were given

42.114* Posted at: 2 hours ago 👁9

GEMINITTS._item_task() takes from 1 to 2 positional arguments but 3 were given:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 380, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_base.py", line 211, in _local_mul_thread
TypeError: GEMINITTS._item_task() takes from 1 to 2 positional arguments but 3 were given


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:en
root_dir:D:/

1 Replies

This error is caused by a bug in the Gemini TTS module where the function signature does not match the expected number of arguments when called in a multi-threaded context.

Solution:

  1. Update the software: This bug is likely fixed in a newer version. Please download the latest version of pyVideoTrans from the official website and replace your current installation.
  2. Alternative TTS: If updating is not immediately possible, switch to a different TTS channel (e.g., Edge-TTS) for the time being to continue your work.

请查阅相关文档:

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