#1140731 onnxruntime: Missing Python 3.14 support

#1140731#5
Date:
2026-06-25 09:46:46 UTC
From:
To:
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)

#1140731#10
Date:
2026-06-25 10:32:44 UTC
From:
To:
Hi,

I may have given wrong advice on IRC regarding the filing of this bug
report, hence my response.


Python 3.14 isn't the default python version in Debian yet, so lack of
support isn't RC yet. We want to start the transition soon though, see
bug #1130323. Hence I lower the severity. I think the severity should
probably be RC once the 3.14 transition starts.


If one of your dependencies only supports the default python version,
but not all Debian supported python versions, that's a wishlist bug at
most and maybe you shouldn't be testing other versions then.

Paul

#1140731#15
Date:
2026-06-29 16:34:13 UTC
From:
To:
Hello,

Bug #1140731 in onnxruntime reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/deeplearning-team/onnxruntime/-/commit/856a0b23812252bd742b0b6d8bdf70bac07be26b
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1140731