Bug 2155450

Summary: python-plac fails to build with Python 3.12: ModuleNotFoundError: No module named 'asyncore'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-placAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, mhroncok, neuro-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-plac-1.3.5-4.fc38 python-plac-1.4.3-4.el10_0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-22 02:26:24 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: 2135404    

Description Tomáš Hrnčiar 2022-12-21 09:44:35 UTC
python-plac fails to build with Python 3.12.0a3.

+ /usr/bin/python3 doc/test_plac.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/plac-1.3.5/doc/test_plac.py", line 11, in <module>
    import plac
  File "/builddir/build/BUILDROOT/python-plac-1.3.5-3.fc38.x86_64/usr/lib/python3.12/site-packages/plac.py", line 29, in <module>
    from plac_ext import (Interpreter, import_main, ReadlineInput,
  File "/builddir/build/BUILDROOT/python-plac-1.3.5-3.fc38.x86_64/usr/lib/python3.12/site-packages/plac_ext.py", line 806, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'

asynchat and asyncore have been removed according to the schedule in PEP 594, having been deprecated in Python 3.6. Use asyncio instead. (Contributed by Nikita Sobolev in gh-96580.)

https://github.com/python/cpython/issues/96580
https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05129379-python-plac/

For all our attempts to build python-plac with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-plac/

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.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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 2 Ben Beasley 2022-12-21 19:33:57 UTC
Since the PR unconditionally removes functionality, I plan to wait to merge it to Rawhide/F39 until after F38 branching. Let me know if there is a reason to do otherwise.

Comment 3 Miro Hrončok 2022-12-22 01:06:09 UTC
This blocks python3-yte and hence snakemake, if that's fine, OK.

Comment 4 Ben Beasley 2022-12-22 01:39:25 UTC
It occurred to me that there is no reason to delay if I make patch application conditional on the Python version. That way the package is ready for F39 without unnecessarily removing functionality in F38. I will amend the PR to do that, and then I will go ahead and merge it.

Comment 5 Fedora Update System 2022-12-22 02:25:59 UTC
FEDORA-2022-b61843c829 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b61843c829

Comment 6 Fedora Update System 2022-12-22 02:26:24 UTC
FEDORA-2022-b61843c829 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2024-08-12 20:34:06 UTC
FEDORA-EPEL-2024-98b346913f (python-plac-1.4.3-4.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-98b346913f

Comment 8 Fedora Update System 2024-08-12 20:42:06 UTC
FEDORA-EPEL-2024-98b346913f (python-plac-1.4.3-4.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.