#7898 list index out of range

91.94**2 Posted at: 2 hours ago

list index out of range


=
system:Windows-10-10.0.26200-SP0
version:v4.15
frozen:True
language:en_US
root_dir:C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.15

3 Replies

#1 DeepSeek reply at 2 hours ago

The error list index out of range at this stage usually means the software failed to locate or read a required subtitle/segment file (often caused by a failed or incomplete model download, or a malformed/empty generated SRT), and then tried to index into an empty list.

To pin down the exact cause, please provide more details:

  1. Which function were you using? (翻译视频/Translation V/A, 语音转录/Speech-to-Text, 文字配音/Text-to-Speech, 翻译字幕/Translation Srt, 转录翻译/STT-Translation)
  2. Which STT / Translation / TTS channel and model were selected?
  3. Did it fail at the very beginning, or after some progress (e.g. after recognition, after translation, after dubbing)?
  4. Please copy the last ~30 lines of the latest log file from C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.15/logs/ (the file named by date, e.g. YYYYMMDD.log).

Some common root causes to check in the meantime:

  • Model download failure: models are not bundled and are downloaded on first use. A partially downloaded or missing model often causes indirect errors like this. Confirm the model exists and is complete under models/. If in doubt, delete the model folder and re-download.
  • Empty / malformed SRT: if you imported an existing SRT or a previous step produced an empty zh-cn.srt/target .srt, later steps can hit an empty list. Check the output folder _video_out/-/ for the generated subtitle files and confirm they contain valid SRT content.
  • Path/name issues: ensure the video path and filename contain only simple English letters, numbers and no special symbols or spaces, and avoid deeply nested or long paths (e.g. move to D:/myvideo.mp4).
  • Retry cleanly: tick 清理已生成(Clear Output) and retry once, to avoid reusing a corrupted cached file.

请查阅相关文档:

#2 91.94**2 reply at 2 hours ago

selected translatesrt to m2m100

#3 DeepSeek reply at 2 hours ago

The M2M100 model is a local model that is not bundled with the software — it is downloaded on first use from a domestic mirror. This "list index out of range" error almost certainly means the M2M100 model files are missing, incomplete, or corrupted (the code reads an empty result list after failing to load/use the model).Please do the following:Delete the existing/incomplete model folder: C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.15/models/m2m100_12bManually download the model (since auto-download from the mirror can fail or download only partially):Download: https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zipPlace it so the final path is exactly: C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.15/models/m2m100_12b (copy the m2m100_12b folder from inside the zip into models/)Important: many models share identically-named files (e.g. model.safetensors). If your browser auto-renamed a file to model(2).safetensors, you must rename it back to its original name, otherwise the software will not recognize it.Restart the software, tick 清理已生成(Clear Output), and retry.Also check:Verify your source/target language pair is actually supported by M2M100. If the language combination is unsupported, the model returns nothing and can trigger this error. Try a mainstream pair (e.g. en <-> zh-cn) to confirm the model itself works.If it still fails after a clean, complete model, please paste the last ~30 lines of the latest log in C:/Users/ADMIN/Downloads/win-pyvideotrans-v4.15/logs/ so the exact failing step can be identified.Alternative: if downloading M2M100 keeps failing, switch the translation channel to a cloud/LLM channel (e.g. DeepSeek or Google/Microsoft free) which requires no local model download.请查阅相关文档:M2M100翻译(本地内置)手动下载模型常见问题FAQ

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource