Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO one by one anki qt5 #107

Open
cwmschmidty opened this issue Aug 20, 2022 · 2 comments
Open

IO one by one anki qt5 #107

cwmschmidty opened this issue Aug 20, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cwmschmidty
Copy link

Describe the bug
Hi,

Have tried editing an existing card to IO one by one and also creating new one. I receive this error when I hit add new card. When I close the error I can add the card but there is no IO on the card in preview or if I set the card to due. Also, the IO one by one example card also doesn't work. I also noticed I can't add any new cards now without receiving the same error.

Debug information

Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-08-20 02:20:17

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "aqt.editor", line 561, in
File "aqt.addcards", line 259, in _add_current_note
File "aqt.addcards", line 294, in _note_can_be_added
File "aqt.hooks_gen", line 172, in call
File "C:\Users\J\AppData\Roaming\Anki2\addons21\272311064\src\addcards.py", line 18, in check_if_occlusion_editor_open
if addcards.editor.occlusion_editor_active
AttributeError: 'NoneType' object has no attribute 'editor'

Method 1 (preferred method)

  1. You put the cards which do not work (however many you like), and put them into a new Anki Deck.
  2. You export it by finding it on the main screen, clicking on the small right cog (wheel) next to it, and choose "Export"
  3. As Export format choose "Anki Deck Package", uncheck "Include scheduling information", check "Include media".
  4. You will get a file with the ending ".apkg". Upload this file here.
@cwmschmidty cwmschmidty added the bug Something isn't working label Aug 20, 2022
@cwmschmidty
Copy link
Author

Default.zip
1 - allowing me to cloze
2 - accept
3 - inputted IO field
4 - error
5 - hit add again and card adds
6 - backside of card has no clozes
)

@ccchan234
Copy link

hi,
the closet gave me same error whenever i add new cards.
however, everything works except showing this same error.
so i am using closet at the moment.

i asked gpt4 it say the error is:
The error message you're encountering in Anki after installing the Closet add-on indicates a conflict or a bug within the add-on or its interaction with Anki. The specific error is an AttributeError in the addcards.py file of the Closet add-on, suggesting that it's trying to access an 'editor' attribute of a 'NoneType' object, which means the object it's trying to access doesn't exist or hasn't been initialized properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants