anki missing dependencies

You think you have found a bug? Let us know about it.
Post Reply
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

anki missing dependencies

Post by mimosa »

I just installed anki, and needed to add the following:

Code: Select all

mimosa[~]$ sudo twapake -s
python-Jinja2-3.0.3-x86_64-1
python-MarkupSafe-2.0.1-x86_64-1
PyQt5-5.15.2-x86_64-5
qt5-webkit-5.212.0_alpha4-x86_64-7
qgnomeplatform-0.5-x86_64-1salix15.0
python-idna-3.3-x86_64-2
python-certifi-2021.10.8-x86_64-2
python-urllib3-1.26.8-x86_64-1
python-requests-2.26.0-x86_64-3
python-markdown-3.3.4-x86_64-3
perl-Curses-1.28-x86_64-2salix15.0
perl-File-Remove-1.60-x86_64-1gv
perl-inc-latest-0.500-x86_64-2gv
perl-Module-Build-0.4231-x86_64-1gv
perl-Test-Requires-0.11-x86_64-1gv
perl-Module-ScanDeps-1.29-x86_64-1gv
perl-YAML-Tiny-1.73-x86_64-1gv
perl-Module-Install-1.19-x86_64-gv
perl-Curses-UI-0.9609-x86_64-1salix15.0
twapake-0.5.1-noarch-1salix15.0
python3-itsdangerous-0.24-x86_64-1salix15.0
python3-Flask-Cors-3.0.10-x86_64-1salix15.0
BeautifulSoup4-4.10.0-x86_64-1salix15.0
python3-soupsieve-2.3.1-x86_64-2salix15.0
werkzeug-2.1.2-x86_64-1salix15.0
click-8.1.3-x86_64-1salix15.0
Flask-2.1.2-x86_64-1salix15.0
python3-waitress-2.1.1-x86_64-1salix15.0
anki-2.1.51-x86_64-2salix15.0
python-importlib_metadata-4.10.1-x86_64-1salix15.0
python3-jsonschema-3.2.0-x86_64-1salix15.0
python3-pyrsistent-0.18.1-x86_64-1salix15.0
python3-attrs-19.3.0-x86_64-1salix15.0
send2trash-1.8.0-x86_64-1salix15.0
decorator-5.1.1-x86_64-1salix15.0
python-zipp-3.7.0-x86_64-2salix15.0
python3-PyQtWebEngine-5.15.3-x86_64-1salix15.0
This could be a .sug, though I haven't noticed any lag:

Code: Select all

mimosa[~]$ anki
orjson is missing; DB operations will be slower
EDIT Actually, those perl libraries were probably from when I installed twapake itelf ...
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: anki missing dependencies

Post by gapan »

Thanks, I had missed this post somehow. I just tried it and it seems these are needed in addition to the deps already there:

Code: Select all

python-markdown
python-urllib3
python-certifi
PyQt5
python-MarkupSafe
python-Jinja2
Adding them now...
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: anki missing dependencies

Post by mimosa »

It seems to need even more stuff ... I'm not sure which of these it actually needs, but it was once I'd installed python-idna that it started working. So here is what I installed (having installed anki fresh from the repositories, with all the dependencies noted so far) in reverse order:

Code: Select all

python-idna
python-audiotools #this one was a long shot and I don't think it can be needed
python-requests
python-geventhttpclient
It still won't start from the menu entry, I have to run it from xterm, but I don't really mind.
User avatar
ibka
Posts: 158
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

Re: anki missing dependencies

Post by ibka »

Hi
remove the QT_AUTO_SCREEN_SCALE_FACTOR=1 part in /usr/share/applications/anki.desktop and it will start from the menu
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: anki missing dependencies

Post by mimosa »

Thanks ibka, that indeed makes it work from there too.

Did you also find you needed to install any extra python bits and pieces to get it to work?
User avatar
ibka
Posts: 158
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

Re: anki missing dependencies

Post by ibka »

mimosa wrote: 1. Jan 2023, 19:43 Thanks ibka, that indeed makes it work from there too.

Did you also find you needed to install any extra python bits and pieces to get it to work?
I actually don't remember, it's been a while since I installed anki
Image
Post Reply