Results 1 to 4 of 4

Thread: Anki doesn't work

  1. #1
    Join Date
    Aug 2011
    Location
    Russia
    Posts
    233

    Default Anki doesn't work

    Trying to open Anki desktop application. But it doesn't work.
    This message is from command line:
    Code:
    aar@linux:~> anki
    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
    Something wrong with PyQt4.QtWebKit
    libQtWebKit4 and python2-qt4 are installed:
    Code:
    Information for package python2-qt4:                                                  
    ------------------------------------                                                      
    Repository     : openSUSE-Tumbleweed-Oss                                                 
    Name           : python2-qt4                                                              
    Version        : 4.12.1-2.1                                                               
    Arch           : x86_64                                                                   
    Vendor         : openSUSE                                                                 
    Installed Size : 15.2 MiB                                                                 
    Installed      : Yes (automatically)                                                      
    Status         : up-to-date                                                               
    Source package : python-qt4-4.12.1-2.1.src                                                
    Summary        : PyQt - python bindings for Qt 4                                          
    Description    :                                                                          
        PyQt is a set of Python bindings for Trolltech's Qt application                      
        framework and runs on all platforms supported by Qt including Windows,               
        MacOS/X and Linux. There are two sets of bindings: PyQt v4 supports Qt               
        v4; and the older PyQt v3 supports Qt v3 and earlier. The bindings are                
        implemented as a set of Python modules and contain over 300 classes and         
        nearly 6,000 functions and methods.
    Code:
    Information for package libQtWebKit4:                                                     
    -------------------------------------                                                   
    Repository     : openSUSE-Tumbleweed-Oss                                               
    Name           : libQtWebKit4                                                             
    Version        : 4.8.7+2.3.4-4.1                                                          
    Arch           : x86_64                                                                   
    Vendor         : openSUSE                                                                 
    Installed Size : 41.8 MiB                                                                 
    Installed      : Yes                                                                      
    Status         : up-to-date                                                               
    Source package : libQtWebKit4-4.8.7+2.3.4-4.1.src                                        
    Summary        : Open source Web Browser engine based on Qt4                             
    Description    :                                                                          
        WebKit is an open source web browser engine. WebKit's HTML and JavaScript code     
        began as a branch of the KHTML and KJS libraries from KDE. As part of KDE            
        framework KHTML was based on Qt but during their porting efforts Apple's              
        engineers made WebKit toolkit independent. QtWebKit is a project aiming at            
        porting this fabulous engine back to Qt.
    Which lib or package should I install?
    openSUSE Tumbleweed (x86_64) 64-bit
    Xfce

  2. #2
    Join Date
    Jun 2008
    Location
    Saint-Petersburg, Russia
    Posts
    69

    Default Re: Anki doesn't work

    The missing QtWebKit module is not longer a part of the newer python-qt4 packages. For the time being I use precompiled Anki 2.1 Beta from https://apps.ankiweb.net/docs/beta.html

  3. #3
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: Anki doesn't work

    In case you didn't know, Python2 and Qt4 will not change:
    Their developers are now focused on Python3 and Qt5.

    Webkit was replaced by QtWebEngine:
    https://blog.qt.io/blog/2013/09/12/i...-qt-webengine/

  4. #4
    Join Date
    Jun 2008
    Location
    Saint-Petersburg, Russia
    Posts
    69

    Default Re: Anki doesn't work

    And Python3 and Qt5 are exactly what Anki 2.1 Beta is based on.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •