#660 videotrans.configure._except.StopRetry: Invalid API-key provided.

*345:4606* Posted at: 4 hours ago 👁5

Invalid API-key provided. :Traceback (most recent call last):

File "videotrans\util\TestSrtTrans.py", line 17, in run

File "videotrans\translator\__init__.py", line 800, in run

File "videotrans\translator\_base.py", line 79, in run

File "videotrans\translator\_base.py", line 97, 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 400, in

File "concurrent\futures\_base.py", line 439, in result

File "concurrent\futures\_base.py", line 391, in __get_result

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_qwenmt.py", line 93, in _item_task

videotrans.configure._except.StopRetry: Invalid API-key provided.

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
问题原因:提供的阿里百炼翻译API密钥无效或配置错误。

这是一个典型的 pyVideoTrans 配置问题。错误信息 Invalid API-key provided. 明确指出软件在调用阿里百炼翻译API时,检测到您输入的API密钥无效。

解决方案:

1. 检查API密钥

  • 登录阿里百炼控制台,确认您的API密钥是否仍然有效且未被停用。
  • 仔细核对您在 pyVideoTrans 软件“翻译设置”中为“阿里百炼翻译”填写的API密钥,确保没有多余的空格、字符错误或遗漏。

2. 检查配置步骤

  • 确保您已在阿里百炼平台开通了相应的机器翻译服务。
  • pyVideoTrans 的翻译设置中,除了API密钥,通常还需要正确填写其他必填项,如 API Base URL 等。请参照阿里百炼官方文档或 pyVideoTrans 的配置说明进行完整配置。

3. 重新填写并保存

  • 在软件界面中修正API密钥和其他相关配置后,务必点击“保存”或“应用”按钮。配置信息会保存在您电脑本地的 videotrans/params.json 文件中。

4. 重新测试

  • 配置保存后,建议使用软件内的“测试”功能(如果提供)来验证配置是否正确、API是否可连通。

如果问题依旧,请确认您的阿里百炼账户是否有足够的余额或调用额度。您也可以尝试在软件中暂时切换至其他翻译服务(如Google翻译或百度翻译)来确认是否是阿里百炼服务端的问题。

关于阿里百炼API的具体申请和使用方法,请参考其官方文档。pyVideoTrans 的通用配置指南可在其官网 pyvideotrans.com 找到。

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