I opened an issue on the canorus github, because I think that it is related to canorus itself. But if you have ideas, that help me, I would appreciate them very much. Here are the details from the issue:
I just built canorus from AUR and had no issues building it.
When calling canorus it crashed. When I call canorus from a terminal it crashes with this error message:
Fatal Python error: PyThreadState_Get: the function must be called with the GIL held, after Python initialization and before Python finalization, but the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized
Current thread 0x00007f3e37ef39c0 [canorus] (most recent call first):
<no Python frame>
zsh: abort (core dumped) canorus
What can I do to debug this? Or what could I do to get it running?
Searching for “no Python frame” leads me to nothing specific.
Have you tried canorus-git? The current 0.7.3rc3 release of canorus was tagged several years ago, however there have been recent commits in the last few months.
Until you mentioned it, @Yochanan, I did not try canorus-git.
But unfortunately it doesn’t build at all:
(I do appologize for the german texts inbetween)
Erstelle canorus-git...
==> Erstelle Paket: canorus-git r1515.0769b534-1 (Mi 15 Jul 2026 20:42:41 CEST)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
-> Aktualisiere das canorus git Repo...
==> Überprüfe source Dateien mit sha256sums...
canorus ... Übersprungen
==> Entferne existierendes $srcdir/ Verzeichnis...
==> Entpacke Quellen...
-> Erstelle Arbeitskopie des canorus git Repos...
Klone nach 'canorus'...
Fertig.
==> Beginne pkgver()...
==> Entferne existierendes $pkgdir/ Verzeichnis...
==> Beginne build()...
CMake Warning (dev) at CMakeLists.txt:4 (PROJECT):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 16.1.1
-- The CXX compiler identification is GNU 16.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:21 (message):
Build directory and source directory must not be the same.
Do something like this:
mkdir build; cd build; cmake ..
-- Configuring incomplete, errors occurred!
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
Sorry, if you look at the build files for canorus 0.7.3rc3-7 they already contain patches for Python threading issues. So probably it won’t help to struggle with the git version. Perhaps you could ask the maintainer of the AUR package for help?