You are not logged in.
Hi!
I tried to build a package from https://aur.archlinux.org/packages/anki, everything went fine, but instead of a start I receive that error:
$ anki
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Caught exception:
Traceback (most recent call last):
File "/usr/bin/anki", line 5, in <module>
from aqt import run
File "/usr/lib/python3.11/site-packages/aqt/__init__.py", line 76, in <module>
from aqt.main import AnkiQt # isort:skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/aqt/main.py", line 21, in <module>
import aqt.mediasrv
File "/usr/lib/python3.11/site-packages/aqt/mediasrv.py", line 501, in <module>
} | {
^
File "/usr/lib/python3.11/site-packages/aqt/mediasrv.py", line 502, in <dictcomp>
stringcase.camelcase(handler): raw_backend_request(handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/aqt/mediasrv.py", line 493, in raw_backend_request
assert hasattr(RustBackend, f"{endpoint}_raw")
AssertionError
The message is too cryptic for me. I am using arch current and there are no dependencies
on aur packages which could be outdated. DISABLE_QT5_COMPAT=1 dies not help and
Google isn't my friend today. I have no Python or Rust stuff in my homedir (as far as I know,
I am no programmer, so I didn't put them there…)
The old version 2.1.61-1 works like charm, but I really would like to stay up to date.
Any ideas? Thanks in advance!
Last edited by Murray_B (2023-08-09 15:36:48)
Offline
Works for me when building in a clean chroot (using extra-x86_64_build ) and pacman -U to install it.
See https://wiki.archlinux.org/title/Develo … ean_chroot for details how to setup that.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Okay, that works, thank you. But I don't understand it, I have a simple arch current, without testing stuff (okay, some AUR apps like anki, but nothing special), so what makes the difference between my installation and the clean chroot ? The dependencies are complete and from the normal repos and I compile Anki on the computer where I use it.
I have to admit that I am no developper, so maybe somebody could explain me the difference, thanks in advance.
Offline
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Looking at the deps for anki, the version of nodejs installed would be prime candidate for causing such an issue.
However, looking up aqt/mediasrv.py leads to https://github.com/ankitects/anki/tree/main/qt/aqt .
aqt is part of anki and has to do with qt .
aur also has an anki-qt5 package and the biggest difference between anki & anki-qt5 appears to be the "force_qt5.patch" .
Also there's "Running with temporary Qt5 compatibility shims." on a system with both qt5 and qt6 present .
Combined it seems anki may have trouble with systems having qt5 AND qt6 installed.
In a clean chroot build with the anki package only qt6 is present.
Note that this is just "an educated guess" from me and could very well be wrong.
Someone who understands how ankis build system (yarn ? ) combines & configures code from 3 programming languages (python, rust, javascript ) and 2 toolkits ( nodejs and qt ) may be able to verify that guess.
Sidenote : I list nodejs as toolkit because in my opinion it's not a programming language but a utility layer for the javascript programming language,
Last edited by Lone_Wolf (2023-08-08 11:22:11)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Ah, okay, so generally spoken programs can get confused during compilation if there are unexpected programs on the computer, e.g. two different versions of a library. Sounds a bit like a bad build script. And you are right, I have both: qt5 + qt6.
I am using arch for a lot of years but never had this problem before, but I understand that it is sensefull to build (especially anki…) from a clean root. Thank you!
Offline