#6156 File not found: C:\Users\Admin\Downloads\win-pyvideotrans-v4.06-0718\videotrans\prompts\srt\openrouter.txt:Traceback (mo

175.100* Posted at: 14 hours ago

File not found: C:\Users\Admin\Downloads\win-pyvideotrans-v4.06-0718\videotrans\prompts\srt\openrouter.txt:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 63, in run
File "", line 21, in init
File "videotrans\translator\_openrouter.py", line 18, in post_init
File "videotrans\translator\_openaicompat.py", line 33, in post_init
File "videotrans\util\help_misc.py", line 182, in get_prompt
File "pathlib.py", line 1134, in read_text
File "pathlib.py", line 1119, in open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Admin\Downloads\win-pyvideotrans-v4.06-0718\videotrans\prompts\srt\openrouter.txt'


=
system:Windows-10-10.0.22631-SP0
version:v4.06
frozen:True
language:en
root_dir:C:/Users/Admin/Downloads/win-pyvideotrans-v4.06-0718

1 Replies

Cause

You are running the update patch (approximately 260 MB) of pyVideoTrans v4.06, which does not include the full prompts/srt/ directory structure. This specific file (openrouter.txt) is only present in the 2.6 GB full package.

Solution

  1. Download the full package from the official source:

  2. Extract the archive into an English-only path (e.g., D:\pyVideoTrans).
  3. Overlay the patch on top of it (if you need v4.06‑0718), then launch sp.exe.

Why this happened

The prompts/srt/ folder contains translation‑channel‑specific prompt templates (e.g., openrouter.txt, localllm.txt). The patch only updates executables and core modules — it does not ship these template files. Running the patch alone causes the FileNotFoundError.

Please refer to the documentation


If the issue persists after re‑extracting the full package, share the latest log from logs/ folder (at least the last 30 lines).

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource