I’m trying to get Anki running on Ubuntu 20.04, and running into issues with every method I’ve tried.
I prefer to install via apt or snap since they automatically keep up-to-date with security issues, but the versions there are far out-of-date, so the volunteers managing those have not kept up. Yeah, I know, it’s a challenge!
i.e., apt has 2.1.15+dfsg-1
snap says version 2.1.35 will be the last stable version for snap, as the upstream was sometimes changing the whole build system to use Bazel)
pip install anki (using Python 3.8.10 and pip 22.1.2), but had several questions about that. It is pulling 2.1.49 rather than the latest (and pypi even advertises 2.1.54 which is the latest now it seems).
It also had failures along the way:
... Building wheels for collected packages: stringcase Building wheel for stringcase (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/neal/Envs/anki/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'/tmp/pip-install-_jin2wk_/stringcase/setup.py'"'"'; __file__='"'"'/tmp /pip-install-_jin2wk_/stringcase/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(c ode, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7f69ige6 cwd: /tmp/pip-install-_jin2wk_/stringcase/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for stringcase Running setup.py clean for stringcase Failed to build stringcase Installing collected packages: protobuf, stringcase, decorator, idna, charset-normalizer, urllib3, certifi, PySocks, requests, distro, orjson, soupsieve, beautifulsoup4, zipp, importlib-metadata, markdown, anki Running setup.py install for stringcase ... done Successfully installed PySocks-1.7.1 anki-2.1.49 beautifulsoup4-4.11.1 certifi-2022.6.15 charset-normalizer-2.0.12 decorator-5.1.1 distro-1.7.0 idna-3.3 importlib-metadata-4.1 2.0 markdown-3.3.7 orjson-3.7.5 protobuf-4.21.2 requests-2.28.0 soupsieve-2.3.2.post1 stringcase-1.2.0 urllib3-1.26.9 zipp-3.8.0
So it seems like it worked at the end, for the older version at least, but I end up with no
I tried downloading the .zst file from apps dot ankiweb dot net which is up-to-date, but it wants me to run
sudo install. Given generic advice about the insecurity of that, as well as all the the other packaging issues, I really don’t like that idea, at least without some compelling confidence-building explanations of how it is safe in this case. I fear both the basic insecurity of being asked to install via sudo, and I don’t want anki to screw around with my Python libraries or other system files.
I wish you would modify the binary install so it doesn’t need sudo, or at least clarify why you’ve chosen not to.
Fixing the pip install seems best offhand. Who can help with either the version issue or the missing