#2516 AttributeError: 'NoneType' object has no attribute 'lower'

149.34* Posted at: 1 day ago 👁15

翻译字幕阶段出错:程序内部错误:试图访问不存在的属性[Google(免费)]:
Traceback (most recent call last):
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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 129, in run
File "videotrans\task\_translate_srt.py", line 48, in trans
File "videotrans\translator\__init__.py", line 792, in run
File "videotrans\translator\_base.py", line 81, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 41, in _item_task
AttributeError: 'NoneType' object has no attribute 'lower'


=
Windows-10-10.0.19042-SP0
version:v3.80
frozen:True
language:zh

1 Replies

翻译阶段出错,核心原因是 Google 翻译渠道返回了异常数据(None),导致程序无法处理。

请按以下步骤排查解决:

  1. 检查网络连接:确保你的网络可以正常访问 Google 翻译服务。如果在中国大陆,需要配置代理。

    • 在软件主界面第5行“网络代理”处,填写你的代理地址(例如 http://127.0.0.1:10809)。
  2. 更换翻译渠道

    • 这是最直接有效的解决方法。Google 翻译服务有时不稳定。
    • 在主界面第3行“翻译渠道”中,尝试切换到其他免费渠道,例如 Microsoft(微软)DeepLX
  3. 重试并清理缓存

    • 如果仍需使用 Google 翻译,请先勾选主界面第1行的“清理已生成”选项,然后重新运行任务。

如果以上方法均无效,可能是当前版本的 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.

Donate: https://ko-fi.com/jianchang512

Trending Questions