我apt-get dist-upgrade
昨天做了,現在當我嘗試運行時出現以下錯誤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
當我嘗試運行時calibre
:
Traceback (most recent call last):
File "/usr/bin/calibre", line 19, in <module>
from calibre.gui_launch import calibre
File "/usr/lib/calibre/calibre/__init__.py", line 22, in <module>
from calibre.startup import winutil, winutilerror
File "/usr/lib/calibre/calibre/startup.py", line 149, in <module>
from calibre.utils.icu import title_case, lower as icu_lower, upper as icu_upper
File "/usr/lib/calibre/calibre/utils/icu.py", line 28, in <module>
raise RuntimeError('Failed to load icu with error: %s' % err)
RuntimeError: Failed to load icu with error: No module named icu
/usr/lib/calibre/calibre/ptempfile.py:27: RuntimeWarning: Parent module 'calibre' not found while handling absolute import
import shutil
任何幫助將非常感激。
答案1
我可以透過安裝 Jessie 的 python-qt4 來解決我機器上 Anki 的問題。
- 去https://packages.debian.org/jessie/python-qt4
- 下載適合您的架構的軟體包(在頁面底部)
透過安裝它
sudo dpkg -i python-qt4_4.11.2+dfsg-1_<ARCHITECTURE>.deb
阻止此套件的更新
echo python-qt4 hold | sudo /usr/bin/dpkg --set-selections