You are not logged in.

#1 2017-02-19 13:15:10

catnap
Member
Registered: 2016-10-03
Posts: 131

[SOLVED] Anki refuses to start

The Anki flash card program (anki 2.0.39-1), designed for spaced repetition learning, refuses to start. It complains with the following error message:

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

The problem persist after I installed the package qt5-webkit 5.8.0-1 and updated the system with

pacman -Syu

  as instructed in Arch Wiki.

Last edited by catnap (2017-02-19 18:16:36)

Offline

#2 2017-02-19 14:04:00

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: [SOLVED] Anki refuses to start

I can't find Anki in the repository any longer. Seems like it was removed due to packaging issues (dependencies and Anki itself). There have been a couple of threads about it lately. Check this one out: https://bbs.archlinux.org/viewtopic.php?id=222945

There's a package in the AUR, but it requires that you also use older versions of some dependencies. Your best bet is to just download the compiled package from the Anki website for now, put it somewhere in /opt (or create a proper PKGBUILD to install the package) and use it until Anki 2.1 comes out and hopefully hits the official repository.

Last edited by justasug (2017-02-19 14:06:29)

Offline

#3 2017-02-19 18:16:07

catnap
Member
Registered: 2016-10-03
Posts: 131

Re: [SOLVED] Anki refuses to start

After I downgraded Anki to anki-2.0.38-1 and Qt to python2-pyqt4-4.12-1 the problem resolved.

Offline

#4 2017-03-12 06:52:00

danielcnorris
Member
Registered: 2017-03-12
Posts: 1

Re: [SOLVED] Anki refuses to start

I've had a similar issue. I'm trying to downgrade these two packages. I have anki-2.0.38-1 in my /var/cache/pacman/pkg, but I don't have python2-pyqt4-4.12-1. Do you know how I can find an archived version of python2-pyqt4-4.12-1?

Offline

#5 2017-03-12 11:03:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Anki refuses to start

ALA


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB