# Image occlusion enhanced add-on error

**URL:** <https://forums.ankiweb.net/t/image-occlusion-enhanced-add-on-error/12900>\
**Category:** Add-ons\
**Created:** [September 2, 2021, 8:47pm UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-add-on-error/12900 "2021-09-02T20:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grace123](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@grace123](https://forums.ankiweb.net/u/grace123)\
**Post date:** [September 2, 2021, 8:47pm UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-add-on-error/12900/1 "2021-09-02T20:47:19Z")

</div>

Whenever I try to save an image with the add on image occlusion enhanced I receive the following error message. Does anyone have any experience troubleshooting?

Debug info:  
Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
Platform: Mac 10.16  
Flags: frz=True ao=True sv=2  
Add-ons, last update check: 2021-09-02 13:41:03  
Add-ons possibly involved: ⁨Image Occlusion Enhanced for Anki 21 alpha⁩

Caught exception:  
Traceback (most recent call last):  
File “aqt/webview.py”, line 538, in handler  
File “/Users/gracen/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 278, in   
lambda val, choice=choice, close=close: self.\_onAddNotesButton(choice, close, val))  
File “/Users/gracen/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 293, in \_onAddNotesButton  
r = gen.generateNotes()  
File “/Users/gracen/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 80, in generateNotes  
(svg\_node, layer\_node) = self.\_getMnodesAndSetIds()  
File “/Users/gracen/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 190, in \_getMnodesAndSetIds  
mask\_doc = minidom.parseString(self.new\_svg.encode(‘utf-8’))  
AttributeError: ‘NoneType’ object has no attribute ‘encode’

---

<div class="post-metadata">

**Author:** ![01101](https://avatars.discourse-cdn.com/v4/letter/0/f9ae1b/32.png) [@01101](https://forums.ankiweb.net/u/01101)\
**Post date:** [September 3, 2021, 1:53pm UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-add-on-error/12900/2 "2021-09-03T13:53:04Z")

</div>

**Report the issue here:**

> **[Issues · glutanimate/image-occlusion-enhanced](https://github.com/glutanimate/image-occlusion-enhanced/issues)**
>
> Anki add-on that transforms images into cloze tests - Issues · glutanimate/image-occlusion-enhanced
