# Image Occlusion enhanced not working

**URL:** <https://forums.ankiweb.net/t/image-occlusion-enhanced-not-working/24763>\
**Category:** Add-ons\
**Created:** [November 18, 2022, 3:55pm UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-not-working/24763 "2022-11-18T15:55:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hashim0609](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hashim0609](https://forums.ankiweb.net/u/hashim0609)\
**Post date:** [November 18, 2022, 3:55pm UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-not-working/24763/1 "2022-11-18T15:55:42Z")

</div>

I’m try to create a ‘hide all, guess one’ flashcard, but as soon as I click the button to create the cards, it says an error has occurred, and says the following :  
Error  
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.  
If the issue only occurs when add-ons are enabled, please use the Tools\>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.  
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.  
Debug info:  
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1  
Platform: Mac 11.6  
Flags: frz=True ao=True sv=2  
Add-ons, last update check: 2022-11-17 16:35:17  
Add-ons possibly involved: ⁨Image Occlusion Enhanced⁩

Caught exception:  
Traceback (most recent call last):  
File “aqt.webview”, line 568, in handler  
File “/Users/hashimmehmood/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 324, in   
lambda val, choice=choice, close=close: self.\_onAddNotesButton(  
File “/Users/hashimmehmood/Library/Application Support/Anki2/addons21/1374772155/add.py”, line 343, in \_onAddNotesButton  
r = gen.generateNotes()  
File “/Users/hashimmehmood/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 99, in generateNotes  
(svg\_node, layer\_node) = self.\_getMnodesAndSetIds()  
File “/Users/hashimmehmood/Library/Application Support/Anki2/addons21/1374772155/ngen.py”, line 226, in \_getMnodesAndSetIds  
mask\_doc = minidom.parseString(self.new\_svg.encode(“utf-8”))  
AttributeError: ‘NoneType’ object has no attribute ‘encode’  
Is there anything I can do to resolve this issue ?

Thanks

ps every other flashcard I use is working as normal. It is just this one I am having a problem with

---

<div class="post-metadata">

**Author:** ![glutanimate](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/glutanimate/32/97_2.png) [@glutanimate](https://forums.ankiweb.net/u/glutanimate)\
**Post date:** [December 1, 2022, 10:40am UTC](https://forums.ankiweb.net/t/image-occlusion-enhanced-not-working/24763/2 "2022-12-01T10:40:20Z")

</div>

Hi there, this comment should help: [Image Occlusion Enhanced [Official Support Thread] - #70 by glutanimate](https://forums.ankiweb.net/t/image-occlusion-enhanced-official-support-thread/924/70)
