Can't import with Anki 2.1.33 on Mac

When try to import, I got the error :
Import failed. Debugging info:
Traceback (most recent call last):
File “aqt/”, line 203, in on_done
File “concurrent/futures/”, line 432, in result
File “concurrent/futures/”, line 388, in __get_result
File “concurrent/futures/”, line 57, in run
File “anki/importing/”, line 82, in run
File “/Users/cma/Library/Application Support/Anki2/addons21/46741504/”, line 56, in importNotes
n.fields[c] = html.escape(n.fields[c])
NameError: name ‘html’ is not defined

Seems to be missing a python module in the package ?


This is caused by this add-on.

I can import the html module without problems on Anki 2.1.33 on Windows. It could be missing on Mac though.

Enter the following in the debug console and see what you get:

import html


If that works, maybe just put import html at the top of the file of the offending add-on?

Also see

1 Like