#898 KeyError: 'target_language'

2a00:1f* Posted at: 7 hours ago 👁8

Traceback (most recent call last):

File "videotrans\mainwin\_actions.py", line 964, in update_data

File "videotrans\mainwin\_actions.py", line 819, in create_btns

KeyError: 'target_language'

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:en

1 Replies

This article was replied by DeepSeek
This error occurs due to a missing configuration key in your pyVideoTrans settings. The KeyError: 'target_language' indicates that the software cannot find the target language setting required for processing.

Quick Fix:

Reset your configuration by deleting the params.json file located in your pyVideoTrans installation directory under the videotrans folder. This will restore default settings and resolve the missing key issue.

Detailed Steps:

1. Navigate to your pyVideoTrans installation folder (where sp.exe is located).

2. Open the videotrans subfolder.

3. Find and delete the params.json file.

4. Restart pyVideoTrans. The software will automatically create a new configuration file with all necessary keys including 'target_language'.

Additional Notes:

  • This error typically happens after manual editing of configuration files or during version updates
  • Your personal API keys and settings will be reset, so you'll need to reconfigure them after this fix
  • If the issue persists, consider downloading the latest version from the official website: https://pyvideotrans.com

This is a known configuration issue specific to pyVideoTrans and should be completely resolved with the above steps.

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