Preferences can not be set

I see an error when I select Tools > Preferences.

The message says to check the database. No errors are reported & it does not fix the problem.

The database is an SQLite3 db in /home//.local/share/anki2.

I have read/write permission on this folder & on the database. Don’t know what permissions the database itself may have on its tables etc.

Exited Anki, renamed the databsse & restarted Anki. As expected, it created a new database with default settings. The error on Tools > Preferences continued.
Running Ubuntu 22.04. Installed Anki from Ubuntu’s Discover package manager.

The message follows.

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=1

Caught exception:
File “/usr/share/anki/aqt/”, line 882, in onPrefs“Preferences”, self)
File “/usr/share/anki/aqt/”, line 82, in open
instance = creator(*args)
File “/usr/share/anki/aqt/”, line 25, in init
File “/usr/share/anki/aqt/”, line 80, in setupCollection
<class ‘TypeError’>: setValue(self, int): argument 1 has unexpected type ‘float’

Please update to a more recent version from the website. Anki 2.1.15 is several years old.


Updated to the Ubuntu Snap package, which is version 2.1.54. Problem fixed.

There’s a problem with that version also, but only 1 and it’s minor. I’ll start a new topic for it if I don’t find one already open.

Many thanks, topic closed.

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