# Addon Creation bug

**URL:** <https://forums.ankiweb.net/t/addon-creation-bug/34104>\
**Category:** Add-ons\
**Created:** [September 9, 2023, 7:55pm UTC](https://forums.ankiweb.net/t/addon-creation-bug/34104 "2023-09-09T19:55:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phamloc122k](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@phamloc122k](https://forums.ankiweb.net/u/phamloc122k)\
**Post date:** [September 9, 2023, 7:55pm UTC](https://forums.ankiweb.net/t/addon-creation-bug/34104/1 "2023-09-09T19:55:47Z")

</div>

Hello everyone. I’ve recently joined the Anki community. Lately, I’ve been working on a personal addon. Everything was going well until I tried importing some libraries like spacy and nltk. When I opened Anki, I encountered an error message saying “No module named ‘spacy’,” even though I had previously installed these libraries using pip install. Does anyone familiar with this issue know how to resolve it?Thanks

This is the error notification screen.  
Error  
An add-on you installed failed to load. If problems persist, please go to the Tools\>Add-ons menu, and disable or delete the add-on.

When loading ‘⁨demo⁩’:  
⁨Traceback (most recent call last):  
File “aqt.addons”, line 247, in loadAddons  
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\demo\__init_\_.py”, line 7, in   
import nltk  
ModuleNotFoundError: No module named ‘spacy’  
⁩  
⁩

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [September 9, 2023, 11:19pm UTC](https://forums.ankiweb.net/t/addon-creation-bug/34104/2 "2023-09-09T23:19:47Z")

</div>

You have to copy the necessary libraries to your add-on folder and add them to Python’s module search path to be able to import them. Please see [Add support for dependencies in addons - #3 by abdo](https://forums.ankiweb.net/t/add-support-for-dependencies-in-addons/24302/3)
