#3330 cannot import name 'GenerationMixin' from 'transformers.generation' (D:\pyvideotrans\win-pyvideotrans-v3.97\_internal\tr

162.211* Posted at: 4 months ago

cannot import name 'GenerationMixin' from 'transformers.generation' (D:\pyvideotrans\win-pyvideotrans-v3.97\_internal\transformers\generation\__init__.py)


=
system:Windows-10-10.0.20348-SP0
version:v3.97
frozen:True
language:en
root_dir:D:/pyvideotrans/win-pyvideotrans-v3.97

1 Replies

This error is caused by an incompatible version of the transformers library bundled within the pre-packaged Windows version of pyVideoTrans.

Solution:

  1. Download the latest full package: The issue has been fixed in the latest release. Go to the official download page and download the complete .7z package for v3.97, not just the patch.
  2. Replace the installation:

    • Close the pyVideoTrans software completely.
    • Delete or rename your current installation folder (D:\pyvideotrans\win-pyvideotrans-v3.97).
    • Extract the newly downloaded complete .7z package to a location like D:\pyVideoTrans. Ensure the path contains no Chinese characters or spaces.
    • Run the new sp.exe from the extracted folder.

Important: Do not run the software directly from within the compressed archive. Always extract it to a clean directory.

Please refer to the relevant 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. Dondate: ko-fi.com/jianchang512

Related resource