# Error when addon is downloaded from ankiweb but not in local

**URL:** <https://forums.ankiweb.net/t/error-when-addon-is-downloaded-from-ankiweb-but-not-in-local/21956>\
**Category:** Add-ons\
**Created:** [August 2, 2022, 9:26am UTC](https://forums.ankiweb.net/t/error-when-addon-is-downloaded-from-ankiweb-but-not-in-local/21956 "2022-08-02T09:26:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/whatchu/32/10663_2.png) [@whatchu](https://forums.ankiweb.net/u/whatchu)\
**Post date:** [August 2, 2022, 9:26am UTC](https://forums.ankiweb.net/t/error-when-addon-is-downloaded-from-ankiweb-but-not-in-local/21956/1 "2022-08-02T09:26:19Z")

</div>

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](https://ankiweb.net/shared/info/1181864101) installed next to [nbspRemover](https://ankiweb.net/shared/info/1676672391)

```auto
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

```auto
$ 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)?
