Anki does not start on Ubuntu 18.04 - html5lib.treebuilders error

Bug #1793083 reported by Erik
This bug report is a duplicate of:  Bug #1786631: anki 2.1.0: fails to start. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
anki (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I installed Anki today using the Software Center but I'm unable to start it.

When starting Anki via the terminal, I receive the following error:

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

Tags: bionic
Revision history for this message
Erik (errotu) wrote :

As it was asked in several other bug reports: python3-distutils (v3.6.5-3) is installed.

tags: added: bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in anki (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.