#1190 运行时错误:CherryNio·AI.Dev#root,body,html{margin:0;padding:0;width:100%;height:100%}#index-loading{margin:0;padding:0;width:

45.62* Posted at: 4 days ago 👁29

运行时错误:CherryNio·AI.Dev#root,body,html{margin:0;padding:0;width:100%;height:100%}#index-loading{margin:0;padding:0;width:100%;height:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}@media (prefers-color-scheme:dark){html[data-theme=system] #index-loading{background-color:#000}}html[data-theme=dark] #index-loading{background-color:#000}.loading-icon{width:48px;height:48px;background-image:url('https://new.cherrychat.org/logo-dark.png');background-size:contain;background-repeat:no-repeat}@media (min-width:768px){.loading-icon{width:80px;height:80px}}.loading-bar{width:200px;height:4px;background:rgba(255,255,255,.1);border-radius:2px;overflow:hidden;position:relative}.loading-bar::after{content:'';position:absolute;left:0;top:0;height:100%;width:40%;background:#eee;animation:loading 1.5s infinite ease-in-out;border-radius:2px}@keyframes loading{0%{left:-40%}100%{left:100%}}// Set theme based on localStorage and system preference

    const theme = localStorage.getItem('theme') || 'system';
    document.documentElement.setAttribute('data-theme', theme);You need to enable JavaScript to run this app.: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 899, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 160, in _item_task
RuntimeError: CherryNio·AI.Dev#root,body,html{margin:0;padding:0;width:100%;height:100%}#index-loading{margin:0;padding:0;width:100%;height:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}@media (prefers-color-scheme:dark){html[data-theme=system] #index-loading{background-color:#000}}html[data-theme=dark] #index-loading{background-color:#000}.loading-icon{width:48px;height:48px;background-image:url('https://new.cherrychat.org/logo-dark.png');background-size:contain;background-repeat:no-repeat}@media (min-width:768px){.loading-icon{width:80px;height:80px}}.loading-bar{width:200px;height:4px;background:rgba(255,255,255,.1);border-radius:2px;overflow:hidden;position:relative}.loading-bar::after{content:'';position:absolute;left:0;top:0;height:100%;width:40%;background:#eee;animation:loading 1.5s infinite ease-in-out;border-radius:2px}@keyframes loading{0%{left:-40%}100%{left:100%}}// Set theme based on localStorage and system preference

    const theme = localStorage.getItem('theme') || 'system';
    document.documentElement.setAttribute('data-theme', theme);You need to enable JavaScript to run this app.



=
system:Windows-10-10.0.26100-SP0
version:v3.82
frozen:True
language:zh
root_dir:C:/Users/Administrator/Downloads

1 Replies

您遇到的错误是由于翻译渠道配置问题导致的。从错误信息可以看出,软件尝试通过 CherryNio AI 进行翻译,但返回了 HTML 页面而非正常的 API 响应。

请按以下步骤检查和解决:

  1. 检查翻译渠道配置

    • 在菜单栏选择 翻译设置
    • 确认您选择的翻译渠道是否为 CherryNio AI
    • 检查 API Key、Base URL 等配置是否正确
  2. 验证 API 服务状态

    • 确认 CherryNio AI 服务当前是否可用
    • 检查网络连接是否正常
    • 确认 API Key 是否有效且未过期
  3. 临时解决方案

    • 切换到其他翻译渠道,如 Google、Microsoft 或 OpenAI 等
    • 翻译设置 中选择一个备用翻译服务
  4. 检查网络代理

    • 如果您使用了网络代理,请在 翻译设置 中正确配置代理地址

如果问题持续存在,请提供完整的日志文件(位于 C:/Users/Administrator/Downloads/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