Bug 2249381 - fapolicy-analyzer depends on obsolete pyo3 version - issues with Python 3.12
Summary: fapolicy-analyzer depends on obsolete pyo3 version - issues with Python 3.12
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fapolicy-analyzer
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: John Wass
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-12 17:13 UTC by Fabio Valentini
Modified: 2023-11-20 14:13 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-20 14:13:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2023-11-12 17:13:33 UTC
Version 0.15 of the pyo3 Python bindings for Rust are obsolete, and they do not support Python 3.12. Notably, due to ABI changes in Python 3.12, I cannot even guarantee that this package currently works correctly when used in conjunction with Python 3.12.

Therefore, I strongly recommend to move to pyo3 v0.19.2 or v0.20.0 on Fedora 39 and Rawhide *as soon as possible*. I will remove all versions of pyo3 that do not support Python 3.12 (and never will) from Fedora Rawhide soon (pending announcement).

It appears that the upstream project is also still stuck on PyO3 version 0.15, so you will likely need to work with upstream on this issue:
https://github.com/ctc-oss/fapolicy-analyzer/blob/master/crates/pyo3/Cargo.toml#L12

c.f. https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM/#XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM

Reproducible: Always

Comment 1 John Wass 2023-11-12 17:35:55 UTC
A pyo3 upgrade is completed in https://github.com/ctc-oss/fapolicy-analyzer/pull/905 and will be merged soon.  I will bump the upgrade further to >= 0.19.

Thanks for the notification, I somehow missed the cc on the mailing list announce in August.

Comment 2 Fabio Valentini 2023-11-12 17:45:39 UTC
Great, thank you!

Comment 3 John Wass 2023-11-20 14:13:02 UTC
v1.2.1 of the fapolicy-analyzer resolves this issue through an upgrade to pyo3 0.19.2

This has been pushed to rawhide.

https://src.fedoraproject.org/rpms/fapolicy-analyzer/pull-request/28


Note You need to log in before you can comment on or make changes to this bug.