Installing the latest Anki version will fix the issue.
Otherwise, edit /usr/share/anki/aqt/reviewer.py and replace
/usr/share/anki/aqt/reviewer.py
with