Bug 2083970

Summary: libtalloc fails to build with Python 3.11: ModuleNotFoundError: No module named 'talloc'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: libtallocAssignee: Andreas Schneider <asn>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, aboscatt, asn, gdeschner, iboukris, jhrozek, lslebodn, mhroncok, pfilipen, sgallagh, ssorce, thrnciar
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libtalloc-2.3.4-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-18 06:52:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2016048    

Description Tomáš Hrnčiar 2022-05-11 06:54:48 UTC
libtalloc fails to build with Python 3.11.0b1.

Traceback (most recent call last):
  File "/builddir/build/BUILD/talloc-2.3.3/test_pytalloc.py", line 10, in <module>
    import talloc
    ^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'talloc'

https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04392272-libtalloc/

For all our attempts to build libtalloc with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/libtalloc/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2022-05-11 09:28:16 UTC
+ install /builddir/build/BUILDROOT/libtalloc-2.3.3-3.fc37.x86_64/usr/lib64/python3.11/site-packages/talloc (from bin/default/pytalloc)

See bz2083972#c1

Comment 2 Miro Hrončok 2022-05-17 14:40:39 UTC
This is a problem in waf, see https://gitlab.com/ita1024/waf/-/issues/2386#note_949703225

Comment 3 Andre Boscatto 2022-06-18 03:12:25 UTC
Hi Andreas, same question as I did here https://bugzilla.redhat.com/show_bug.cgi?id=2083972