Bug 2328708
Summary: | pychess fails to build with Python 3.14: RuntimeError: There is no current event loop in thread 'MainThread'. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | pychess | Assignee: | Bruno Wolff III <bruno> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | bruno, davide, fti-bugs, ksurma, mhroncok, projects.rg, tom |
Target Milestone: | --- | Keywords: | EasyFix |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 2322407, 2339432, 2339435 |
Description
Karolina Surma
2024-11-25 16:31:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42. *** Bug 2371777 has been marked as a duplicate of this bug. *** This currently fails with: + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' Warning: eco.db not found, please run pgn2ecodb.sh Traceback (most recent call last): File "/builddir/build/BUILD/pychess-1.0.3-build/pychess-1.0.3/setup.py", line 56, in <module> from distutils.command.register import register ModuleNotFoundError: No module named 'distutils.command.register' > Warning: eco.db not found, please run pgn2ecodb.sh
What happens with legacy db? What if there is no db? Guess it is a completely fresh installation, of course update package in running system is different.
That warning is not that important. The bigger issue is that this does not build with the current setuptools (No module named 'distutils.command.register') nor Python (RuntimeError: There is no current event loop in thread 'MainThread') 1. Well, eco.db may be user specific so general rpm process isn't involved. 2. Because distutils was removed in Python 3.12, we get ModuleNotFoundError: module named 'distutils'. Possible fix: dependency to setuptools - PEP 632 https://stackoverflow.com/questions/77931666/modulenotfounderror-no-module-named-distutils-how-to-solve-this-in-macos https://peps.python.org/pep-0632/ 3. CPython unbundled setuptools. Possible fix: replace.. loop = asyncio.get_event_loop() with.. loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) https://github.com/python/cpython/issues/95299 > Because distutils was removed in Python 3.12, we get ModuleNotFoundError: module named 'distutils'.
This was already fixed back then by using setuptools, which provides its own distutils module.
However, now they have removed distutils.command.register from it.
Honestly, is that intentional to break build tools? No idea. setuptools upstream is not very interested at maintaining compatibility with old distutils. I'm not happy about that either. |