我尝试使用“sudo apt install anki”安装 anki,但无法启动。我收到“NameError:名称‘QWebEngineView’未定义”。我还安装了 python3-distutils。
还尝试从他们的网站安装 Anki。运行“sudo make install”后,Anki 成功运行,但随后我遇到了这个错误。
Error during startup:
Traceback (most recent call last):
File "aqt/main.py", line 45, in _init__
File "aqt/main.py", line 67, in setupUI
File "aqt/main.py", line 1374, in setupCrashLog
PermissionError: [Errno 13] Permission denied:'home/ivan/.local/share/Anki2/crash.log'
答案1
遇到了同样的错误,以下补丁修复了它:
打开/usr/share/anki/aqt/qt.py
,并将第 13 行从:
from PyQt5.QtWebEngineWidgets import QWebEnginePage
到:
from PyQt5.QtWebEngineWidgets import *
然后保存文件就可以了。
来源:https://bugs.launchpad.net/ubuntu/+source/anki/+bug/1825722