Hi,
I'm currently packaging python-magika and it needs onnxruntime as a Dependency. The autopkgtest for python-magika fails as the current version of python3-onnxruntime in Sid does not support 3.14 yet. The support for 3.14 was added in version 1.24.1.
This bug acts as a blocker for packaging python-magika.
A simple package update should fix this bug. Below is the error log that I encountered:
Setting up libonnxruntime1.23:amd64 (1.23.2+dfsg-6+b3) ...
Setting up python3-packaging (26.2-1) ...
Setting up python3-humanfriendly (10.0-6) ...
/usr/lib/python3/dist-packages/humanfriendly/testing.py:546: SyntaxWarning: 'return' in a 'finally' block
return super(MockedProgram, self).__exit__(*args, **kw)
Setting up python3-numpy (1:2.4.6+ds-1) ...
Setting up python3.14 (3.14.6-1) ...
Setting up python3-protobuf (3.21.12-16) ...
Setting up python3-mpmath (1.4.1-3) ...
Setting up python3-coloredlogs (15.0.1-1) ...
Setting up python3-dotenv (1.2.1-2) ...
Setting up python3-sympy (1.14.0-3) ...
/usr/lib/python3/dist-packages/sympy/testing/runtests.py:283: SyntaxWarning: 'return' in a 'finally' block
return p.returncode
Setting up python3-flatbuffers (23.5.26+dfsg-4) ...
Setting up python3-all (3.13.9-3+b1) ...
Setting up python3-onnxruntime (1.23.2+dfsg-6+b3) ...
Setting up python3-magika (1.0.1-1) ...
Processing triggers for libc-bin (2.42-15) ...
autopkgtest [14:37:27]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import magika; print(magika)" ; done
autopkgtest [14:37:27]: test autodep8-python3: [-----------------------
Testing with python3.14:
Traceback (most recent call last):
File "<string>", line 1, in <module>
import magika; print(magika)
^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/magika/__init__.py", line 23, in <module>
from magika.magika import Magika
File "/usr/lib/python3/dist-packages/magika/magika.py", line 31, in <module>
import onnxruntime as rt
File "/usr/lib/python3/dist-packages/onnxruntime/__init__.py", line 74, in <module>
raise import_capi_exception
File "/usr/lib/python3/dist-packages/onnxruntime/__init__.py", line 24, in <module>
from onnxruntime.capi._pybind_state import (
...<40 lines>...
)
File "/usr/lib/python3/dist-packages/onnxruntime/capi/_pybind_state.py", line 32, in <module>
from .onnxruntime_pybind11_state import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'
autopkgtest [14:37:28]: test autodep8-python3: -----------------------]
autopkgtest [14:37:28]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - -
autodep8-python3 FAIL non-zero exit status 1
autopkgtest [14:37:28]: @@@@@@@@@@@@@@@@@@@@ summary
autodep8-python3 FAIL non-zero exit status 1
E: Autopkgtest run failed.
+------------------------------------------------------------------------------+
| Cleanup Thu, 25 Jun 2026 09:07:29 +0000 |
+------------------------------------------------------------------------------+
Purging /build/reproducible-path
Not cleaning session: cloned chroot in use
+------------------------------------------------------------------------------+
| Summary Thu, 25 Jun 2026 09:07:30 +0000 |
+------------------------------------------------------------------------------+
Autopkgtest: fail
Build Architecture: amd64
Build Type: full
Build-Space: 25432
Build-Time: 8
Distribution: unstable
Host Architecture: amd64
Install-Time: 89
Job: /home/aryan/Documents/Debianstuff/magika/python-magika_1.0.1-1.dsc
Lintian: fail
Machine Architecture: amd64
Package: python-magika
Package-Time: 201
Source-Version: 1.0.1-1
Space: 25432
Status: successful
Version: 1.0.1-1
Regards,
Aryan Karamtoth
Debian Maintainer
(IRC: spaciouskarter78)