You are not logged in.
Pages: 1
I'm using anki 2.1.23-1, this is an older version released around 2020 march. I'm doing this because certain addons crucial to my use case don't yet support more recent versions. As of my last pacman -Syu, I get the following error when starting anki.
Traceback (most recent call last):
File "/usr/bin/anki", line 3, in <module>
import aqt
ModuleNotFoundError: No module named 'aqt'I believe the python module "aqt" is supposed to be a part of the anki package, not a dependency, so the problem must be something more indirect. There's probably a python library I updated last time that I'm supposed to downgrade now, but I don't know how to find out which one.
The most recent version of anki (2.1.35-3) works just fine, except without my addons of course.
Any ideas on how to find the correct package to downgrade?
Offline
You need to rebuild your anki version against the newest python, at the very least.
Offline
Here's a list of all the python packages I upgraded last time, from pacman.log. Doesn't look like it narrows down choices too much.
[2020-12-05T18:20:59+0100] [ALPM] upgraded python (3.8.6-1 -> 3.9.0-1)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-urllib3 (1.25.10-2 -> 1.25.10-4)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-appdirs (1.4.4-1 -> 1.4.4-3)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-pyparsing (2.4.7-1 -> 2.4.7-3)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-six (1.15.0-1 -> 1.15.0-3)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-packaging (20.4-1 -> 20.7-1)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-ordered-set (4.0.2-1 -> 4.0.2-3)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-setuptools (1:50.3.2-1 -> 1:50.3.2-4)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-chardet (3.0.4-5 -> 3.0.4-7)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-idna (2.10-1 -> 2.10-3)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-requests (2.24.0-1 -> 2.25.0-1)
[2020-12-05T18:21:00+0100] [ALPM] upgraded python-gobject (3.38.0-1 -> 3.38.0-3)
[2020-12-05T18:21:04+0100] [ALPM] upgraded python-cairo (1.20.0-1 -> 1.20.0-3)
[2020-12-05T18:21:04+0100] [ALPM] upgraded python-markupsafe (1.1.1-4 -> 1.1.1-6)
[2020-12-05T18:21:08+0100] [ALPM] upgraded libvirt-python (1:6.4.0-1 -> 1:6.4.0-3)
[2020-12-05T18:21:04+0100] [ALPM] upgraded python-beaker (1.11.0-4 -> 1.11.0-6)
[2020-12-05T18:21:04+0100] [ALPM] upgraded python-mako (1.1.3-1 -> 1.1.3-3)
[2020-12-05T18:21:04+0100] [ALPM] upgraded python-markdown (3.3.3-1 -> 3.3.3-2)
[2020-12-05T18:21:17+0100] [ALPM] upgraded python-yaml (5.3.1-2 -> 5.3.1-4)
[2020-12-05T18:21:17+0100] [ALPM] upgraded python-evdev (1.3.0-1 -> 1.3.0-3)
[2020-12-05T18:21:17+0100] [ALPM] upgraded python-pillow (7.2.0-1 -> 8.0.1-3)
[2020-12-05T18:21:18+0100] [ALPM] upgraded python-dbus-common (1.2.16-1 -> 1.2.16-3)
[2020-12-05T18:21:18+0100] [ALPM] upgraded python-dbus (1.2.16-1 -> 1.2.16-3)
[2020-12-05T18:21:18+0100] [ALPM] upgraded python-distro (1.5.0-1 -> 1.5.0-3)
[2020-12-05T18:21:26+0100] [ALPM] upgraded python-atspi (2.38.0-1 -> 2.38.0-3)
[2020-12-05T18:21:26+0100] [ALPM] upgraded python-pyxdg (0.26-6 -> 0.26-8)
[2020-12-05T18:21:28+0100] [ALPM] upgraded python-lxml (4.6.1-1 -> 4.6.2-1)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-anytree (2.8.0-1 -> 2.8.0-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-asn1crypto (1.4.0-1 -> 1.4.0-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-attrs (20.3.0-1 -> 20.3.0-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-soupsieve (2.0.1-1 -> 2.0.1-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-beautifulsoup4 (4.9.3-1 -> 4.9.3-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-msgpack (1.0.0-1 -> 1.0.0-3)
[2020-12-05T18:21:29+0100] [ALPM] upgraded python-cachecontrol (0.12.6-1 -> 0.12.6-3)
[2020-12-05T18:21:30+0100] [ALPM] upgraded python-ply (3.11-5 -> 3.11-7)
[2020-12-05T18:21:30+0100] [ALPM] upgraded python-pycparser (2.20-1 -> 2.20-3)
[2020-12-05T18:21:30+0100] [ALPM] upgraded python-cffi (1.14.3-1 -> 1.14.4-1)
[2020-12-05T18:21:30+0100] [ALPM] upgraded python-colorama (0.4.4-1 -> 0.4.4-3)
[2020-12-05T18:21:30+0100] [ALPM] upgraded python-contextlib2 (0.6.0.post1-1 -> 0.6.0.post1-3)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-cryptography (3.2.1-1 -> 3.2.1-3)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-decorator (4.4.2-1 -> 4.4.2-3)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-distlib (0.3.1-1 -> 0.3.1-2)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-distutils-extra (2.39-5 -> 2.39-8)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-docopt (0.6.2-7 -> 0.6.2-9)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-gpgme (1.15.0-1 -> 1.15.0-2)
[2020-12-05T18:21:31+0100] [ALPM] upgraded python-webencodings (0.5.1-4 -> 0.5.1-6)
[2020-12-05T18:21:32+0100] [ALPM] upgraded python-html5lib (1.1-4 -> 1.1-5)
[2020-12-05T18:21:32+0100] [ALPM] upgraded python-xlib (0.28-1 -> 0.29-1)
[2020-12-05T18:21:32+0100] [ALPM] upgraded python-i3ipc (2.2.1-1 -> 2.2.1-2)
[2020-12-05T18:21:32+0100] [ALPM] upgraded python-zipp (3.4.0-1 -> 3.4.0-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-importlib-metadata (2.0.0-1 -> 2.0.0-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-pyrsistent (0.17.3-1 -> 0.17.3-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-jsonschema (3.2.0-2 -> 3.2.0-4)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-keyutils (0.6-4 -> 0.6-6)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-lockfile (0.12.2-6 -> 0.12.2-8)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-toml (0.10.2-1 -> 0.10.2-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-pep517 (0.9.1-1 -> 0.9.1-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-progress (1.5-3 -> 1.5-5)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-retrying (1.3.3-7 -> 1.3.3-9)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-resolvelib (0.5.1-1 -> 0.5.3-1)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-pyopenssl (19.1.0-2 -> 20.0.0-1)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-pip (20.2-1 -> 20.2.1-1)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-protobuf (3.12.4-1 -> 3.12.4-3)
[2020-12-05T18:21:33+0100] [ALPM] upgraded python-pyaudio (0.2.11-4 -> 0.2.11-6)
[2020-12-05T18:21:34+0100] [ALPM] upgraded python-pygments (2.7.2-1 -> 2.7.2-3)
[2020-12-05T18:21:34+0100] [ALPM] upgraded python-pyqt5-sip (12.8.1-1 -> 12.8.1-3)
[2020-12-05T18:21:36+0100] [ALPM] upgraded python-pyqt5 (5.15.1-2 -> 5.15.2-2)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python-pyqtwebengine (5.15.1-2 -> 5.15.2-2)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python-pysocks (1.7.1-1 -> 1.7.1-3)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python-send2trash (1.5.0-4 -> 1.5.0-6)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python-wheel (0.35.1-2 -> 0.36.1-1)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-appdirs (1.4.4-1 -> 1.4.4-3)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-beautifulsoup4 (4.9.3-1 -> 4.9.3-3)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-cssselect (1.1.0-4 -> 1.1.0-6)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-lxml (4.6.1-1 -> 4.6.2-1)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-pyparsing (2.4.7-1 -> 2.4.7-3)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-six (1.15.0-1 -> 1.15.0-3)
[2020-12-05T18:21:37+0100] [ALPM] upgraded python2-packaging (20.4-1 -> 20.7-1)Offline
There's not much to narrow down. Python 3.9 was released and broke ABI compatibility. You use an application that is still linked against python 3.8 which does not exist anymore. You need to recompile your old anki version against the new python libraries (... and maintain and patch incompatibilities if you're unlucky).
The approach of "finding packages to downgrade" should be your absolute last resort. Which in this case would be "all of them". Which will lead to issues further down the line.
Last edited by V1del (2020-12-06 12:22:29)
Offline
Can I download source code for older packages from some arch related source? I only managed to find a PKGBUILD for the most recent anki version.
Offline
In general read: https://wiki.archlinux.org/index.php/Arch_Build_System especially the acquiring using git parts.
Alternatively via the view changes link which will bring you to a github mirror, which would lead you to https://github.com/archlinux/svntogit-c … 43df/trunk for this particular case
Last edited by V1del (2020-12-06 12:36:41)
Offline
Thanks, I got the source with asp and checked out the commit that corresponds to version 2.1.23. Whey I try to do a makepkg the compilation part seems to finish, and then I get this error:
? maturin failed
Caused by: Failed to ensure manylinux compliance
Caused by: Your library is not manylinux compliant because it links the following forbidden libraries: ["libbz2.so.1.0"]
make: *** [Makefile:55: build] Error 1
==> ERROR: A failure occurred in build().
Aborting...I have no idea what manylinux compilance or maturin is, but apparently, it doesn't like my version of the bzip2 package. Just bruteforce removing libbz2.so.1.0 from my library path doesn't work, because it is needed for building. I can't downgrade it either because many packages depend on it being up to date.
Any suggestions on what to do now? I'm afraid that this question is starting to get too anki specific for this forum.
Offline
I got it to compile and run by using the 2.1.23 release from anki's official git repo, idk what was the problem with the arch version. I'll be using this until my addons finally update. Thanks for the help.
Offline
Pages: 1