Hi,
The error is caused because `aqt/models.py` refers to
`collections.Callable` instead of `collections.abc.Callable`. The old
version of Anki was probably for an older Python where `Callable` was
not moved yet. I did not find any other problematic import of
`collections`.
The following is a diff of the change that I made in-place. I did not
want to start a full Anki build from ports:
--- aqt/models.py.orig Sun Sep 27 16:25:48 2026
+++ aqt/models.py Sun Sep 27 16:25:21 2026
@@ -170,7 +170,7 @@
# standard models
self.models = []
for (name, func) in stdmodels.models:
- if isinstance(name, collections.Callable):
+ if isinstance(name, collections.abc.Callable):
name = name()
item = QListWidgetItem(_("Add: %s") % name)
self.dialog.models.addItem(item)
Regards,
-Leroy