Bug 2249381

Summary: fapolicy-analyzer depends on obsolete pyo3 version - issues with Python 3.12
Product: [Fedora] Fedora Reporter: Fabio Valentini <decathorpe>
Component: fapolicy-analyzerAssignee: John Wass <jwass3>
Status: CLOSED RAWHIDE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: jwass3, sgrubb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-20 14:13:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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