Open gerhard4 opened 10 months ago
Here is an announcement I put together to tackle this issue.
Please confirm if it worked for you.
Thanks for getting back to me.
The announcement talks about two things:
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
AIUI, there isn't anything I can do -- my installation already conforms to what the announcement says.
So it seems that this is a different issue.
Hey all,
I know you do this for the love of the community, so I want to thank you for all your work building this add-on! I'm merely adding some info in the hope it helps the project.
I think I came across the same error. I'm using Anki for Mac, and my version data is below. I believe I'm in compliance with your suggestion above, just like @gerhard4. I also reinstalled the add-on, and tried various troubleshooting steps.
Version:
Bug screenshot:
Debug code: `Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: macOS-14.2.1-arm64-arm-64bit
Traceback (most recent call last): File "/Users/jaredcampbell/Library/Application Support/Anki2/addons21/1898445115/advanced_copy_fields.py", line 433, in onActionIndexChange self.onCustom() File "/Users/jaredcampbell/Library/Application Support/Anki2/addons21/1898445115/advanced_copy_fields.py", line 419, in onCustom cursor.movePosition(QtGui.QTextCursor.End) AttributeError: type object 'QTextCursor' has no attribute 'End'
===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) Advanced Copy Fields ['1898445115', 2023-12-21T03:38, 'v1.4', ''] Advanced Review Bottom Bar ['1136455830', 2023-11-17T04:57, 'None', mod] Anki Simulator ['817108664', 2023-11-06T10:26, 'None', ''] Custom Background Image and Gear Icon ['1210908941', 2023-04-18T19:19, 'None', mod] FSRS4Anki Helper ['759844606', 2023-12-31T03:46, 'None', ''] Image Occlusion Enhanced ['1374772155', 2022-04-09T01:15, 'None', ''] Review Heatmap ['1771074083', 2022-06-29T19:43, 'None', '']
===IDs of active AnkiWeb add-ons=== 1136455830 1210908941 1374772155 1771074083 1898445115 759844606 817108664
===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) Puppy Reinforcement ['1722658993', 2023-11-16T05:59, 'None', ''] `
Hi there. I will upload the update soon. However, I have reason to believe there is some kind of breakdown going on with the addon you have installed because advanced_copy_fields.py the latest version does not have any reference to advanced_copy_fields.py. The new files are only advanced_copy_fields_qt5.py and advanced_copy_fields_qt6.py. So based on that, it's reading from a prior version. Not sure if the pycache folder needs to be emptied or not.
That said, the error will still happen just based on the code for qt6 so I'll make that adjustment and try to have that uploaded by EOD.
Hey Ambriel!
Impressed you replied so soon. I tried both deleting and redownloaded the add-on, and emptying the pycache folder. It still references the advanced_copy_fields.py file like you pointed out. Not sure why.
Appreciate any fix if you push it out!
It may be possible that you have two different versions with different names in your addon folder. Have you tried restarting ANKI after you deleted the folder to ensure there are no more references to the addon in the addons folder?
@JaredBCampbell Can you please give me feedback on the latest release to see if it the issue has been resolved?
Hey @Ambriel!
Apologies for not replying back in January; I've been recently working on some things in Anki and remembered our conversation.
I redownloaded Advanced Copy and now see that the issue has been resolved with your update. It looks great! Thanks for your hard work.
Sorry for not getting back earlier. My issue seems to be resolved; I don't see it happening anymore. As far as I'm concerned, this issue can be closed. (I just don't close it because I don't know what your process is with this.)
I get the error below when I do the following:
The actual copy functionality doesn't seem to be affected, but the "Source Field" and the "Template" of the dialog don't look quite right: