#4596 Invalid SignTraceback (most recent call last): File "videotrans\translator\_base.py", line 98, in run File "videotrans

119.248* Posted at: 1 hour ago 👁8

Invalid Sign
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 98, in run
File "videotrans\translator\_base.py", line 119, in _run_text
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 71, in run
File "videotrans\task\trans_create.py", line 689, in trans
File "videotrans\translator\__init__.py", line 999, in run
File "videotrans\translator\_base.py", line 100, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_baidu.py", line 53, in _item_task
RuntimeError: Invalid Sign

3 Replies

这是由于百度翻译渠道的签名验证失败导致的,通常是因为您配置的AppID或密钥不正确,或系统时间与服务器时间偏差较大。

解决方案:

  1. 检查软件顶部菜单 → 翻译设置百度翻译,确认填写的 APP ID密钥 是否正确(注意大小写和空格)。
  2. 确保电脑系统时间已自动同步(百度翻译签名依赖时间戳,偏差过大会导致签名无效)。
  3. 如果密钥有变动,请重新生成并更新配置。
  4. 短期内可临时切换为其他翻译渠道(如免费的微软翻译或Google翻译)继续使用。

请查阅相关文档:

Insufficient Balance:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 1040, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_deepseek.py", line 49, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

这是由于DeepSeek API账户余额不足导致的。请在DeepSeek官网检查账户余额并充值,或暂时切换为其他翻译渠道(如微软翻译、Google翻译等)。

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