Closed EugeneTarasenko closed 10 months ago
You can try installing PyQt6 to resolve this issue.
pip install PyQt6
After installing PyQt6, restart Anki and see if the issue is resolved.
OR:
Downgrade PyQt Version: If the add-on is not compatible with PyQt6, you may need to downgrade PyQt to a version that the add-on supports. You can uninstall PyQt6 and install an older version like PyQt5:
pip uninstall PyQt6
pip install PyQt5
@Lilneo786 How can I install the previous version of the addon? It was working perfectly.
Follow instructions here: https://changes.ankiweb.net/ to reinstall
Could you please share the files for the previous version of the Advanced Copy Fields to install it from computer?
https://apps.ankiweb.net/downloads/archive/ Has all the versions
I think this is the version you need: https://github.com/ankitects/anki/releases?q=2.1.23&expanded=true
I meant the previous version of the Advanced Copy Fields addon, not Anki. This one:
Sorry for the misunderstanding. They have a fork for that version that isnt working for you and the instructions to download it is here: https://ankiweb.net/shared/info/287110490
can find the code here: https://github.com/andkinnamon/Advanced-Copy-Fields-Qt6
Thank you for helping @EugeneTarasenko on this, @Lilneo786. I would have had to do some research since I've not been active on this project for a while. I'll update the documentation on my page to help others in the future.
Python is a pretty flexible language. I am thinking there should be a way to implement simultaneous QT5 and QT6 support, but I'd have to look at it when I get more free time unless someone beats me to it.
@Ambriel Thank you for providing the source files. However, could you please explain what steps I should take with these files to install them into Anki? None of the files can be selected after clicking the 'Install from file...' button.
You have to file compile the file, but I highly recommend reading the "README.MD" file first for accurate instructions.
@Lilneo786 There is no information inside the "README.MD" except these two lines of text:
Anki 2.1.x Plugin for performing various field copy/move operations
@EugeneTarasenko, Remove the contents (not the folder itself) of the Advanced Copy Fields already on your computer and then paste the unzipped contents of the old release into it.
Make sure you don't copy/cut any folder in which the old files are enclosed, just the files.
You will have to restart Anki for the changes to take place.
Note: If you need to find the folder where ACF is stored, you will click on the add-on name from within the Add-ons dialog, and click "View Files"
And you can remove the manifest file, I believe, to stop it from trying to update.
@EugeneTarasenko, Remove the contents (not the folder itself) of the Advanced Copy Fields already on your computer and then paste the unzipped contents of the old release into it.
Make sure you don't copy/cut any folder in which the old files are enclosed, just the files.
You will have to restart Anki for the changes to take place.
Note: If you need to find the folder where ACF is stored, you will click on the add-on name from within the Add-ons dialog, and click "View Files"
@Ambriel Unfortunately, Anki throws an error upon startup after following the steps you provided.:
@Ambriel, I downloaded the files exactly from the link you provided. This one:
How can I compile the source code to install it from a file myself? Could you please provide some information on this?
Yep, you're right. Somewhere along time I started to mix in the PyQT6 libraries that are not on Anki. The older advanced_copy_fields.py is using PyQT5. I need to delete my release because it's not right.
Here, try replacing the file on your computer with the one in this package.
@Ambriel Yes, it finally works correctly 🍾. Thank you very much for your help. I truly appreciate it.
@Ambriel Yes, it finally works correctly 🍾. Thank you very much for your help. I truly appreciate it.
You're welcome, and thank you! This, I'm sure, will also save some other people some drama. I'm working on creating the correct release for QT5
@Ambriel, Could you clarify the install instructions you provided? I am also trying to get the older release imported for my v2.1 Anki.
@MAJMAJ-med 1) Install the latest version of Advanced Copy Fields addon from AnkiWeb (1898445115) 2) Find the location of the files of the addon on your computer:
3) Replace the files with these ones: advanced_copy_fields-v0.3.0.zip 4) Restart Anki
Thank you @EugeneTarasenko this worked. The hang up was that I had to upgrade my Anki to v23 to install the addon from AnkiWeb then downgrade to Anki 2.1 and change the name of the folder to prevent the Anki version check.
Awesome! Thank you for that @EugeneTarasenko! You're awesome!
Closing this thread. If any issues with something in the future, please open a new concern!
Thank you.