After emerge @world to-day, when I start Anki it reports:
Error during startup:
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/aqt/main.py", line 50, in __init__
File "/usr/lib64/python3.6/site-packages/aqt/main.py", line 75, in setupUI
File "/usr/lib64/python3.6/site-packages/aqt/main.py", line 566, in setupMainWindow
tweb = self.toolbarWeb = aqt.webview.AnkiWebView()
File "/usr/lib64/python3.6/site-packages/aqt/webview.py", line 105, in __init__
AttributeError: 'NoneType' object has no attribute 'installEventFilter'
According to https://bbs.archlinux.org/viewtopic.php?id=237486 this is because Anki is incompatible with Qt 5.11.1
Your $summary is confusing.
Unfortunately, the latest version (Beta 42) is also not compatible with Qt-5.11.
Please also see:
Damien Elmes (Anki developer) said he probably won't work on Qt 5.11 support.
Instead, he will wait until Qt 5.12 is released in November.
I've set up a chroot environment just for Anki, until this is resolved.
Email me if you want more details.
(In reply to Francesco Turco from comment #3)
> Damien Elmes (Anki developer) said he probably won't work on Qt 5.11 support.
> Instead, he will wait until Qt 5.12 is released in November.
That's a bad decision.
I have found a workaround for this. If you go to the
official Anki download page, you can scroll to the
bottom and download an older version. It is currently
version 2.0.52 -- I have yet to run into any issues,
and I do not get any errors. It is not perfect because
we cannot use the latest version as of right now, but
this work around should be acceptable to users of
Anki who don't want to rely on the web version or a
downgraded version of qt5.
Michael Mounteney, does the 2.1.15 version of anki now in ::gentoo work for you now?
I don't know, sorry. I now use the downloaded tarball from the Anki site for now, whilst transitioning off Anki. The portage version is too old. If this bug affects only me, I propose it should be closed.