Public bug reported: Trying to start Anki version 2.1.8+dfsg-1 from Ubuntu 19.04 fails with 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 32, in <module> import aqt.forms File "/usr/share/anki/aqt/forms/__init__.py", line 44, in <module> from . import about File "/usr/share/anki/aqt/forms/about.py", line 42, in <module> from aqt.webview import AnkiWebView File "/usr/share/anki/aqt/webview.py", line 90, in <module> class AnkiWebView(QWebEngineView): NameError: name 'QWebEngineView' is not defined This appears to be due to changes in the PyQt, as described in this Arch bug report: https://bugs.archlinux.org/task/61710 The patch suggested there by Antonio Rojas works on my Ubuntu 19.04 system, too: --- /usr/share/anki/aqt/qt.py.orig 2019-02-10 22:41:21.648827256 +0100 +++ /usr/share/anki/aqt/qt.py 2019-02-10 22:38:17.798020886 +0100 @@ -13,7 +13,7 @@ from PyQt5.Qt import * # trigger explicit message in case of missing libraries # instead of silently failing to import -from PyQt5.QtWebEngineWidgets import QWebEnginePage +from PyQt5.QtWebEngineWidgets import * try: from PyQt5 import sip except ImportError: ** Affects: anki (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1825722 Title: Anki fails to start because QWebEngineView is not defined (missing import) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/anki/+bug/1825722/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs