Bug 2154855 - gfal2-python fails to build with Python 3.12: ModuleNotFoundError: No module named 'distutils'
Summary: gfal2-python fails to build with Python 3.12: ModuleNotFoundError: No module...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gfal2-python
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mihai Patrascoiu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12
TreeView+ depends on / blocked
 
Reported: 2022-12-19 12:18 UTC by Tomáš Hrnčiar
Modified: 2023-09-14 02:22 UTC (History)
7 users (show)

Fixed In Version: gfal2-python-1.12.1-1.fc39 gfal2-python-1.12.1-1.el9 gfal2-python-1.12.1-1.fc37 gfal2-python-1.12.1-1.fc38 gfal2-python-1.12.1-1.el7 gfal2-python-1.12.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-06 23:39:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-12-19 12:18:04 UTC
gfal2-python fails to build with Python 3.12.0a3.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'

Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 “Deprecate distutils module”. For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. (Contributed by Victor Stinner in gh-92584.)

If your package is listed in [0], you may workaround this issue by BuildRequiring python-setuptools, note that adding such BuildRequires might however hide some transitive dependency problem, if the distutils import comes from a dependency.
Cooperation with upstream is recommended. Additional context [1].

[0] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/message/6BHNAWHE7M5VY3YQVJLOYHLY4M7KIFFN/

[1] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/N6ITYHLRWIDNYNXGPYG2ZHF3ZLQWZN7L/

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/05128845-gfal2-python/

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

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 1 Ben Cotton 2023-02-07 15:01:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Admin user for bugzilla script actions 2023-09-05 00:09:52 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2023-09-05 12:09:10 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Fedora Update System 2023-09-05 14:09:20 UTC
FEDORA-2023-28c52e2286 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-28c52e2286

Comment 5 Fedora Update System 2023-09-05 14:09:21 UTC
FEDORA-EPEL-2023-2be6bcec80 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-2be6bcec80

Comment 6 Fedora Update System 2023-09-05 14:09:22 UTC
FEDORA-EPEL-2023-90a72aec28 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-90a72aec28

Comment 7 Fedora Update System 2023-09-05 14:09:22 UTC
FEDORA-EPEL-2023-17a991d1c5 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-17a991d1c5

Comment 8 Fedora Update System 2023-09-05 14:09:23 UTC
FEDORA-2023-2662c07ea8 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2662c07ea8

Comment 9 Fedora Update System 2023-09-05 14:09:24 UTC
FEDORA-2023-d1deda41a0 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1deda41a0

Comment 10 Mihai Patrascoiu 2023-09-05 14:41:34 UTC
CMake files wouldn't find the latest Python 3.12.

Fixed in upstream release v1.12.1.
Also deployed to epel-testing.

Comment 11 Mihai Patrascoiu 2023-09-05 14:42:04 UTC
The latest upstream release also moves away from "distutils"

Comment 12 Fedora Update System 2023-09-06 00:23:39 UTC
FEDORA-EPEL-2023-2be6bcec80 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-2be6bcec80

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2023-09-06 01:24:06 UTC
FEDORA-2023-28c52e2286 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-28c52e2286`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-28c52e2286

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2023-09-06 01:32:51 UTC
FEDORA-2023-2662c07ea8 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2662c07ea8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2662c07ea8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2023-09-06 02:15:37 UTC
FEDORA-2023-d1deda41a0 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d1deda41a0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1deda41a0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2023-09-06 02:22:06 UTC
FEDORA-EPEL-2023-17a991d1c5 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-17a991d1c5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2023-09-06 02:31:23 UTC
FEDORA-EPEL-2023-90a72aec28 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-90a72aec28

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2023-09-06 23:39:03 UTC
FEDORA-2023-2662c07ea8 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2023-09-14 00:32:01 UTC
FEDORA-EPEL-2023-2be6bcec80 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2023-09-14 00:43:10 UTC
FEDORA-2023-d1deda41a0 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2023-09-14 01:27:45 UTC
FEDORA-2023-28c52e2286 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2023-09-14 02:20:11 UTC
FEDORA-EPEL-2023-17a991d1c5 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2023-09-14 02:22:54 UTC
FEDORA-EPEL-2023-90a72aec28 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


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