Image Occlusion Enhanced [Official Support Thread]

Hello Glutanimate! I hope you can help me.

I have recently downloaded Anki Desktop and have added the Image Occlusion Enhanced add-on. When I go to make an Image Occlusion card I click on the right hand side of the toolbar to try and upload my image. When I click on the image icon an error appears with this:

Error: Image Occlusion note type not configured properly. Please make sure you did not manually delete or rename any of the default fields.

I have manually reset all the feilds that I could by following another thread. I went to Tools>manage note types> feilds and followed the instructions.

How can I fix this??

Thank you

Anyone else get an error when transitioning between dark and light mode on m1 mac? My addons are image occlusion enhanced and awesomeTTS. Been happening for almost a year now. Doesn’t seem to be ruining my deck so far, but felt like I should note it.

What does the error say?

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, repeating 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 to the add-on author.
Debug info:
Anki 2.1.63 (f356f177) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.3.1-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-09-28 13:57:38
Add-ons possibly involved: ⁨Image Occlusion Enhanced⁩

Caught exception:
Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.theme”, line 236, in apply_style
File “_aqt.hooks”, line 4889, in call
File “aqt.webview”, line 760, in on_theme_did_change
File “aqt.webview”, line 592, in eval
File “aqt.webview”, line 595, in evalWithCallback
File “aqt.webview”, line 612, in _queueAction
File “/Users/X/Library/Application Support/Anki2/addons21/1374772155/editor.py”, line 107, in _maybeRunActions
self._evalWithCallback(*args)
File “aqt.webview”, line 608, in _evalWithCallback
RuntimeError: wrapped C/C++ object of type ImgOccWebView has been deleted

1 Like

Possible Solutions

  1. update to latest version of anki, 2.1.66
    The latest beta versions bring Image occlusion add-on natively to Anki, try out and give feedback (:
  2. Reinstall the add-on

Source for info below

@glutanimate Hi, I have been using image occlusion enhanced on my mac laptop, and no matter what I seem to do, all of the tags/occlusions I put on an image always end up offset from the picture itself. When editing/adding tags, I place the tags right over the words I want to obscure, but when I go to use the cards, all of the tags are shifted upwards significantly. I read other similar threads, and have tried re-installing the add on, as well as copying and pasting the default formatting for front of card, back of card, and styling, none of which helped. Is there anyway I can fix this? Thanks so much!


Hello!

Thank you for this great addon. I’ve used some version of it for years :pray:

On the desktop app it appears to work fine. On Ankiweb and Ankidroid I have the following (image included).

I tried installing the “universal” Android beta from GitHub. I received an error with something like “content error [insert long line of characters].svg”

I could try to reproduce the error code by reinstalling anki if that is helpful?

Anki version: 2.1.66
Image Occlusion: just downloaded it yesterday
Ankidroid: 2.16.5

I downloaded the imageocclution addon, but it doesnt work. when i click this button i get ERROR under i have copypasted the error message i received. What should i do?

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, repeating 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 to the add-on author.
Debug info:
Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-14 15:14:27
Add-ons possibly involved: ⁨Image Occlusion Enhanced⁩

Caught exception:
Traceback (most recent call last):
File “anki.config”, line 43, in get_immutable
File “anki._backend_generated”, line 470, in get_config_json
File “anki._backend”, line 151, in _run_command
anki.errors.NotFoundError: Your database appears to be in an inconsistent state. Please use the Check Database action.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “aqt.webview”, line 46, in cmd
File “aqt.webview”, line 153, in _onCmd
File “aqt.webview”, line 665, in _onBridgeCmd
File “aqt.editor”, line 477, in onBridgeCmd
File “C:\Users\johan\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 130, in
lambda editor=editor: onImgOccButton(editor),
File “C:\Users\johan\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 85, in on_image_occlusion_button
io_model = getOrCreateModel()
File “C:\Users\johan\AppData\Roaming\Anki2\addons21\1374772155\config.py”, line 142, in getOrCreateModel
model_version = mw.col.conf[“imgocc”][“version”]
File “anki.config”, line 62, in getitem
File “anki.config”, line 45, in get_immutable
KeyError

Have you tested this?

1 Like

@helpmelearnplease Could you post your error msg that you are receiving? Similar to the msg above.

Some suggestions

hi,
minor bug not sure if reported before.

i just upgraded fm 2.1.54 qt6 to 2.1.60 qt6 on win10.

IOE seems work fine.

however if i click on an existing IOE card,
click IOE icon, then modify the existing IOE card e.g. add a mask,
and use “edit cards” to save the changes.

then, the browser could not be closed, and everything below the browser’s list will be empty.
one have to close this browser AND the anki.exe by killing the process in win10’s task manager.

i tried to disable all addons and only allow IOE but this still happen.

relatively quite minor as one can click on main windows’ deck and open another browser but this just uses up a lot of RAM i think.

thanks

as seen here,
even a card is highlighted, there is nothing in the browser.

compare to this:

1 Like

discussed with author on reddit,
that he got a fix in hand.

i tested and it worked,
looks like a fix will be soon.

for those who interested, may search reddit for it,
i am not sure the author would like me to show the link (and ankiweb forum wont allow?)

thanks

1 Like

@krstoevan thanks for giving the build a try! Glad to hear that the fix works for you :slight_smile:

To other readers: This was about testing a fix for the IOE editor freezing up while editing notes in some scenarios.

If you’re using a recent version of Anki and are affected by this, you can help test the fix by downloading the latest test build here (install by double-clicking the downloaded file or dragging an dropping it onto Anki’s add-on window under ToolsAdd-ons).

Please note that this fix still has some issues with refreshing modified cards when you are editing them from the reviewer (which is why I have not pushed it to AnkiWeb, yet). A workaround to force a refresh can be to quickly switch to your deck list and then back into the deck.

Hoping to push a better fix soon, it’s just been slightly less of a priority while I’ve shifted focus towards supporting native IO.

2 Likes

Hi, glutanimate. I just started learning anki today, and there seems to be a glitch when I try to use the image occlusion feature. This is the error message that it told me to copy and paste here:
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, repeating 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 to the add-on author.

Debug info:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-01-01 22:41:29

Caught exception:
Traceback (most recent call last):
File “aqt.utils”, line 916, in send_to_trash
File “send2trash.plat_win_legacy”, line 147, in send2trash
OSError: [Errno 124] The system call level is not correct.: [‘C:\Users\kojie\AppData\Roaming\Anki2\addons21\137477~1’]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “aqt.main”, line 1732, in onAppMsg
File “aqt.main”, line 1300, in installAddon
File “aqt.addons”, line 1678, in installAddonPackages
File “aqt.addons”, line 494, in processPackages
File “aqt.addons”, line 430, in install
File “aqt.addons”, line 456, in _install
File “aqt.addons”, line 476, in deleteAddon
File “aqt.utils”, line 921, in send_to_trash
File “shutil”, line 759, in rmtree
File “shutil”, line 624, in _rmtree_unsafe
File “shutil”, line 629, in _rmtree_unsafe
File “shutil”, line 627, in _rmtree_unsafe
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\kojie\AppData\Roaming\Anki2\addons21\1374772155\icons\loader.gif’

Let me know if I can be of more help towards resolving this issue.

Thank you so much!

Thanks for the report @kojie0516! I haven’t seen this issue before, so I appreciate the share.

Is this something you’ve encountered repeatedly, or was it a one-time thing? In particular, if you restart your PC and then launch Anki again, repeating the steps that caused the error to appear, does it pop up again?

I want anki to show all of the occlusions for a single card before moving to the next one (using hide all), however it only shows me a single occlusion before moving to the next card. Please assist me

Currently, you are using Hide All, Reveal one, try switching to Hide All, Reveal all

1 Like

Hi!!!
So, the boxes to my occlusions were misalighned. i reset the card type to its default. then tried redownloading the addon when that didnt work. my cards were then aligned for the most part but now the system is saying its addon startup failed and i cant add more io cards anymore. please, help! thanks in advance! --B :slight_smile:

this is the Debug info:

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

When loading Image Occlusion Enhanced:
Traceback (most recent call last):
File “aqt.addons”, line 245, in loadAddons
File “C:\Users\bmhts\AppData\Roaming\Anki2\addons21\1374772155_init_.py”, line 37, in
from .main import setup_main
File “C:\Users\bmhts\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 50, in
from .add import ImgOccAdd
ModuleNotFoundError: No module named ‘1374772155.add’

Never mind! i pressed shift while starting the app, deleted and redownloaded the addon, then restarted anki and my computer and that did the trick. Thank you anway!

1 Like

我自己覺得,
native IO 現在的發展比這個 addon 更有未來.
旧的听說可能會有convertor,

能轉用新的就轉新吧.
我指, 旧的依旧用旧的addon.
新的IO card 就用新的 native IO 來造.

I natively speak chinese.
this is not a spasm.
thank you.

1 Like