Anki error on Ubuntu 16.10

1.1k views Asked by At

Here's what I'm getting when I try to run anki from the command line: `

Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    import aqt
  File "/usr/share/anki/aqt/__init__.py", line 12, in <module>
    from aqt.qt import *
  File "/usr/share/anki/aqt/qt.py", line 22, in <module>
    from PyQt4.QtWebKit import QWebPage, QWebView, QWebSettings
ImportError: No module named QtWebKit
“anki &” has ended`

Looking at my system I do notice I have a PyQt5.QtWebKit installed ( or something like that ) while here's asking for PyQt4. How do I reconcile ?

2

There are 2 answers

0
Sorin Ghinescu On

I finally managed to properly install PyQt4 based on these instructions : https://blog.qtibia.ro/2016/06/21/build-python-qt4-on-debian-testing/ And now I got anki running properly.

0
Ayooluwa Isaiah On

I also ran into this issue on Ubuntu MATE 17.04. The best solution I've found is to install the compiled version of Anki from their website -> https://apps.ankiweb.net/#linux since it bundles all the required libraries.