Im on Version 2.1.52 (ab1c2395) Python 3.9.10 Qt 6.3.0 PyQt 6.3.0
Im getting this error when i have my addon installed next to nbspRemover
When loading '<U+2068>nbspRemover<U+2069>':
<U+2068>Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/home/whatchu/.local/share/Anki2/addons21/1676672391/__init__.py", line 14, in <module>
init_addcards()
File "/home/whatchu/.local/share/Anki2/addons21/1676672391/addcards.py", line 33, in init_addcards
add_cards_did_init(store_addcards)
File "aqt.hooks_gen", line 133, in __call__
File "/home/whatchu/.local/share/Anki2/addons21/1181864101/__init__.py", line 42, in insertButtonInAddWindow
bb = mw.form.buttonBox
AttributeError: 'function' object has no attribute 'form'
But only when is installed from ankiweb
My local copy where i do the development doesnt give any error
$ diff -q 1181864101/ myaddon/
Files 1181864101/meta.json and myaddon/meta.json differ
Common subdirectories: 1181864101/__pycache__ and myaddon/__pycache__
$ diff -u 1181864101/meta.json myaddon/meta.json
--- 1181864101/meta.json 2022-08-02 11:10:47.573092342 +0200
+++ myaddon/meta.json 2022-08-02 11:10:45.765115775 +0200
@@ -1 +1 @@
-{"name": "Insert new notes on top", "mod": 1659389448, "min_point_version": 0, "max_point_version": 52, "branch_index": 0, "disabled": false, "conflicts": [], "update_enabled": true}
\ No newline at end of file
+{"disabled": true, "mod": 0, "conflicts": [], "max_point_version": 0, "min_point_version": 0, "branch_index": 0, "update_enabled": true}
\ No newline at end of file
Common subdirectories: 1181864101/__pycache__ and myaddon/__pycache__
I disable myaddon
and enable 1181864101
. Restart anki, i get the error
I disable 1181864101
and enable myaddon
. Restart anki, i dont get the error
Does anybody know what could be happening (or why the addons are conflicting)?