ObsidianAnkiBridge icon indicating copy to clipboard operation
ObsidianAnkiBridge copied to clipboard

Error: model was not found: Basic

Open jakeoung opened this issue 3 years ago • 12 comments

Hi, thanks for this amazing plugin! I have a problem and I couldn't sync with Anki. I got the following error. I use the basic codeblock and any code doesn't work. This is the error I got:

deck: aa
---  
front1
===  
back1
image

Sanity checks

  • [v] I am using the latest version of the plugin
  • [v] I am using the latest version of Obsidian
  • [v] I have read the README

Diagnositics

Component Version
Obsidian 13.21
AnkiBridge 0.6
Anki 2.1.49
AnkiConnect I don't know how to check, but it is the latest version

Description

A clear and concise description of what the bug is.

Reproduce

  • Steps to reproduce the behavior:
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

jakeoung avatar Jan 20 '22 17:01 jakeoung

Thank you for taking the time to report the issue and help me to make the project better! 🙂

Please be mindful that this is a hobby project and any support I am able to offer is done at the expense of my (often hard to come by) spare time.

github-actions[bot] avatar Jan 20 '22 17:01 github-actions[bot]

This is very strange. Have you renamed the default Anki model?

AnkiBridge assumes that you use standard Anki models. This is what my Note Types in Anki look like - please share a screenshot of yours.

Additionally it would be very helpful if you fill in the versions in the diagnostics section above.

JeppeKlitgaard avatar Jan 20 '22 22:01 JeppeKlitgaard

I've updated the versions. I don't know how to rename the Anki model. (Sorry, I actually don't know what is Anki model;) Which screenshot will be helpful for you? This is from my setting:

image image

jakeoung avatar Jan 20 '22 23:01 jakeoung

The same screenshot that I supplied would be good. You find it in Anki under "Note Types"

JeppeKlitgaard avatar Jan 21 '22 00:01 JeppeKlitgaard

I couldn't see any screenshot here. I'm sorry I'm not sure what is the screenshot you supplied. After making a new account in Anki, I succeeded in syncing! I probably messed up with my Anki account. So I will close it.

jakeoung avatar Jan 21 '22 08:01 jakeoung

I am glad you got it working! I hope you enjoy AnkiBridge!

JeppeKlitgaard avatar Jan 21 '22 16:01 JeppeKlitgaard

I'm getting the same error message as jakeoung described but for me is creating an new anki account no option because i already have over 1000 cards in multiple decks, so what exactly do you mean with "Have you renamed the default Anki model" is there a way to check it?

MilchiDE avatar Jan 31 '22 06:01 MilchiDE

Hey @MilchiDE

Could you attach a screenshot of the modal you get when opening Manage Note Types under Tools → Manage Note Types in Anki?

Mine looks like this:

image

JeppeKlitgaard avatar Feb 01 '22 11:02 JeppeKlitgaard

Ah, okay I see, I had no note Type with the name Basic, now I created one, and it's working fine, thank you! I don't know if it's hard to implement, but it could be a cool option to set it your self in the settings menu.

MilchiDE avatar Feb 02 '22 03:02 MilchiDE

@MilchiDE @jakeoung

I will add documentation outlining this along with a setting in Obsidian.

@MilchiDE could you please tell me what the note type you already had was? I am curious to learn why people are running into this problem and how best to fix it going forward.

JeppeKlitgaard avatar Feb 02 '22 10:02 JeppeKlitgaard

I probably just deleted all other card types while I set up anki for my first time, I have 3 card types all with names I defined my self for certain decks. Anyway thank you for the quick reply and the Plugin itself ^^

MilchiDE avatar Feb 02 '22 10:02 MilchiDE

I had the same issue:

plugin:obsidian-ankibridge:71 Uncaught (in promise) model was not found: Basic
Capture d’écran 2023-01-09 à 14 20 55

Anki type notes are in french:

Capture d’écran 2023-01-09 à 14 22 03

I renamed it in english and not it works 👍

kevinpolisano avatar Jan 09 '23 13:01 kevinpolisano