{"id":3841,"date":"2019-09-13T18:00:17","date_gmt":"2019-09-14T01:00:17","guid":{"rendered":"https:\/\/www.meehawl.com\/Blogfiles\/?p=3841"},"modified":"2019-09-13T18:00:19","modified_gmt":"2019-09-14T01:00:19","slug":"super-nerdy-anki-fedora-30","status":"publish","type":"post","link":"https:\/\/www.meehawl.com\/Blogfiles\/2019\/09\/13\/18\/00\/super-nerdy-anki-fedora-30\/","title":{"rendered":"Super Nerdy: Anki + Fedora 30"},"content":{"rendered":"\n<p>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:<\/p>\n\n\n\n<p><code>Traceback (most recent call last):<br \/>   File \"\/usr\/bin\/anki\", line 6, in <br \/>     import aqt<br \/>   File \"\/usr\/share\/anki\/aqt\/<\/code><strong><code>init<\/code><\/strong><code>.py\", line 57, in <br \/>     from aqt import addcards, browser, editcurrent, stats, about, \\<br \/>   File \"\/usr\/share\/anki\/aqt\/addcards.py\", line 13, in <br \/>     import aqt.editor, aqt.modelchooser, aqt.deckchooser<br \/>   File \"\/usr\/share\/anki\/aqt\/editor.py\", line 24, in <br \/>     from bs4 import BeautifulSoup<br \/>   File \"\/home\/mike\/.local\/lib\/python3.7\/site-packages\/bs4\/<\/code><strong><code>init<\/code><\/strong><code>.py\", line 30, in <br \/>     from .builder import builder_registry, ParserRejectedMarkup<br \/>   File \"\/home\/mike\/.local\/lib\/python3.7\/site-packages\/bs4\/builder\/<\/code><strong><code>init<\/code><\/strong><code>.py\", line 314, in <br \/>     from . import _html5lib<br \/>   File \"\/home\/mike\/.local\/lib\/python3.7\/site-packages\/bs4\/builder\/_html5lib.py\", line 70, in <br \/>     class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):<br \/> AttributeError: module 'html5lib.treebuilders' has no attribute '_base'<\/code><\/p>\n\n\n\n<p>The fix, after some searching, is weirdly specific, and relates to Python 3.7.4 (and not the simultaneously installed Python 2.7.16.<\/p>\n\n\n\n<p><code>pip3 install --upgrade html5lib==1.0b8<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;\/usr\/bin\/anki&#8221;, line 6, in import aqt File&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[1932,1483],"class_list":["post-3841","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora","tag-python"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/posts\/3841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/comments?post=3841"}],"version-history":[{"count":0,"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/posts\/3841\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/media?parent=3841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/categories?post=3841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meehawl.com\/Blogfiles\/wp-json\/wp\/v2\/tags?post=3841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}