Super Nerdy: Anki + Fedora 30

This is super nerdy, but Anki 2.1.15-1.fc30 simply would not run on my Fedora 30 machine. It kept crashing out with:

Traceback (most recent call last):
File "/usr/bin/anki", line 6, in
import aqt
File "/usr/share/anki/aqt/
init.py", line 57, in
from aqt import addcards, browser, editcurrent, stats, about, \
File "/usr/share/anki/aqt/addcards.py", line 13, in
import aqt.editor, aqt.modelchooser, aqt.deckchooser
File "/usr/share/anki/aqt/editor.py", line 24, in
from bs4 import BeautifulSoup
File "/home/mike/.local/lib/python3.7/site-packages/bs4/
init.py", line 30, in
from .builder import builder_registry, ParserRejectedMarkup
File "/home/mike/.local/lib/python3.7/site-packages/bs4/builder/
init.py", line 314, in
from . import _html5lib
File "/home/mike/.local/lib/python3.7/site-packages/bs4/builder/_html5lib.py", line 70, in
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: module 'html5lib.treebuilders' has no attribute '_base'

The fix, after some searching, is weirdly specific, and relates to Python 3.7.4 (and not the simultaneously installed Python 2.7.16.

pip3 install --upgrade html5lib==1.0b8

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.