#1399 运行时错误:Invalid Sign:Traceback (most recent call last): File "videotrans\translator\_base.py", line 81, in run File "vid

51.195* Posted at: 2 hours ago 👁8

运行时错误:Invalid Sign:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 81, in run
File "videotrans\translator\_base.py", line 99, 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 883, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_baidu.py", line 55, in _item_task
RuntimeError: Invalid Sign

1 Replies

这个 "Invalid Sign" 错误通常在使用百度翻译 API 时出现,原因是签名验证失败。

可能原因和解决方案:

  1. API 密钥配置错误

    • 请检查在 菜单 -> 翻译设置 -> 百度翻译 中填写的 appid密钥 是否正确。
    • 确保没有多余的空格或字符。
  2. 网络代理问题

    • 如果您使用了网络代理,请尝试在翻译时 取消勾选网络代理,因为百度翻译是国内服务,不需要代理。
  3. 账户配额或状态问题

    • 登录百度翻译开放平台,检查您的账户:

      • 是否还有免费的翻译字符额度。
      • 账户是否处于正常状态。
    • 如果免费额度已用完,需要充值。
  4. 临时切换翻译渠道

    • 作为临时解决方案,您可以先切换到其他翻译渠道(如 Google 翻译、腾讯翻译等)继续您的工作。

如果以上方法均无法解决,请提供完整的日志文件(位于软件根目录下的 videotrans/logs/ 文件夹内),以便进行更深入的分析。

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