Can't add note type

Hi there,

for some reason I can’t add a note type in the Note Types manager. Here’s the error message that I get:


Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.15 (442df9d6) Python 3.10.6 Qt 5.15.3 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=2

Caught exception:
File “/usr/share/anki/aqt/models.py”, line 83, in onAdd
m = AddModel(self.mw, self).get()
File “/usr/share/anki/aqt/models.py”, line 173, in init
if isinstance(name, collections.Callable):
<class ‘AttributeError’>: module ‘collections’ has no attribute ‘Callable’


And yes, I did the Tools > Check Database step. I also removed a recently added deck, did the database check again, closed it, etc. So far no luck. Any ideas?

Cheers,
Dennis

Figured out what the problem was: I recently had to reinstall Ubuntu, and for Anki I tried the lazy install via “Ubuntu Software” (Anki program found via ubuntu-jammy-universe (deb)). That apparently installs an old version, which has this bug.
To fix this, I deinstalled and then followed the steps in the Anki manual to get a fresh version of Anki desktop. This one works perfectly. :slightly_smiling_face:
Thanks for reading!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.