image-occlusion-enhanced icon indicating copy to clipboard operation
image-occlusion-enhanced copied to clipboard

Image occlusion cards won't create

Open jrduffy16 opened this issue 2 years ago • 0 comments

Image occlusion cards won't create

Add > Select Type: Image Occlusion Enhanced > Select Picture > Create Masks > Click "Hide all, guess one" or "Hide one, guess one" and receive error below:

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 on the add-on support site. Debug info: Anki 2.1.47 (dc156f34) 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-12 10:25:43 Add-ons possibly involved: ⁨Image Occlusion Enhanced for Anki 21 alpha⁩

Caught exception: Traceback (most recent call last): File "aqt/webview.py", line 541, in handler File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/add.py", line 278, in lambda val, choice=choice, close=close: self._onAddNotesButton(choice, close, val)) File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/add.py", line 293, in _onAddNotesButton r = gen.generateNotes() File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/ngen.py", line 96, in generateNotes self._saveMaskAndReturnNote(omask_path, qmasks[nr], amasks[nr], File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/ngen.py", line 446, in _saveMaskAndReturnNote mw.col.addNote(note) File "anki/collection.py", line 1140, in addNote File "anki/collection.py", line 373, in add_note File "anki/_backend/generated.py", line 301, in add_note TypeError: '1628269998420' has type str, but expected one of: int, long

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [X] I've restarted Anki to see if it helps
  • [X] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [X] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [X] I've tried to disable other add-ons to see if there are any interactions present
  • [NA] My issue disappears when I hold shift while starting Anki.
  • [X] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

    
    Anki 2.1.47 (dc156f34) 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-12 10:25:43
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-27T21:21, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1374772155
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

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 on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) 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-12 10:25:43
Add-ons possibly involved: ⁨Image Occlusion Enhanced for Anki 21 alpha⁩

Caught exception:
Traceback (most recent call last):
  File "aqt/webview.py", line 541, in handler
  File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/add.py", line 278, in <lambda>
    lambda val, choice=choice, close=close: self._onAddNotesButton(choice, close, val))
  File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/add.py", line 293, in _onAddNotesButton
    r = gen.generateNotes()
  File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/ngen.py", line 96, in generateNotes
    self._saveMaskAndReturnNote(omask_path, qmasks[nr], amasks[nr],
  File "/Users/jessicaduffy/Library/Application Support/Anki2/addons21/1374772155/ngen.py", line 446, in _saveMaskAndReturnNote
    mw.col.addNote(note)
  File "anki/collection.py", line 1140, in addNote
  File "anki/collection.py", line 373, in add_note
  File "anki/_backend/generated.py", line 301, in add_note
TypeError: '1628269998420' has type str, but expected one of: int, long

jrduffy16 avatar Sep 13 '21 02:09 jrduffy16