#2776 KeyError: 'target_dir'

191.6* Posted at: 6 days ago 👁22

Traceback (most recent call last):
File "videotrans\mainwin\_actions.py", line 842, in update_data
File "videotrans\mainwin\_actions.py", line 678, in create_btns
KeyError: 'target_dir'


=
system:Windows-10-10.0.22631-SP0
version:v3.83
frozen:True
language:en
root_dir:D:/win-videotrans-v3.83

1 Replies

This error indicates a missing configuration key 'target_dir' when the software tries to create processing buttons. This is likely caused by a corrupted or incomplete configuration file.

Please follow these steps to resolve the issue:

  1. Close the pyVideoTrans application completely.
  2. Navigate to the folder where you extracted the software (e.g., D:/win-videotrans-v3.83).
  3. Locate and delete the configuration file named config.json.
  4. Restart the software by double-clicking sp.exe.

The application will create a new, default config.json file upon startup. You will need to reconfigure your settings (like API keys, proxy, etc.) after this step.

If the error persists, please provide the complete log file from the videotrans/logs/ directory within your software folder.

Reference Documentation:

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.

Related resource