Bug 2154801
| Summary: | tuned fails to build with Python 3.12: ModuleNotFoundError: No module named 'distutils' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> | ||||
| Component: | tuned | Assignee: | Jaroslav Škarvada <jskarvad> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | jskarvad, jzerdik, mhroncok, olysonek-foss, thrnciar | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | tuned-2.19.0-2.fc38 tuned-2.20.0-0.1.rc1.fc38 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-01-12 14:11:52 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 | ||||||
| Attachments: |
|
||||||
|
Description
Tomáš Hrnčiar
2022-12-19 10:08:39 UTC
This is probably transitive requirement. AFAIK we do not use distutils in TuneD. For the 'make html' it calls: asciidoctor -o index.html master.adoc || asciidoc -o index.html master.adoc asciidoctor is ruby, but asciidoc is python, it has: import ast import copy import csv from functools import lru_cache import getopt import io import locale import math import os import re import shutil import subprocess import sys import tempfile import time import traceback import unicodedata import zipfile from ast import literal_eval from collections import OrderedDict from trans import trans import doctest I don't see any problem here, nor on Fedora it should take the asciidoctor (ruby) way. Unfortunately, I am unable to reproduce and investigate this problem deeper because your copr mock config builds for me with the python-3.11 and not with the 3.12 and your copr logs are '404 Not Found'. The copr logs are 404 because copr deletes logs of failed builds after a certain time. I've submitted a new build in the copr. No idea why the copr mock config builds for you with Python 3.11, maybe some transitive dependency was broken, we shall see. Still the same:
+ make html PYTHON=/usr/bin/python3
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
Makefile:45: *** Failed to determine python library directory. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.BomUHF (%build)
Bad exit status from /var/tmp/rpm-tmp.BomUHF (%build)
Created attachment 1935958 [details]
Build logs from Copr
It is this simple:
[tuned-2.19.0]$ rg distutils
Makefile
43:PYTHON_SITELIB = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib());')
Replace the distutils.sysconfig.get_python_lib() call with sysconfig.get_path('purelib') to fix this.
(In reply to Miro Hrončok from comment #5) > It is this simple: > > [tuned-2.19.0]$ rg distutils > Makefile > 43:PYTHON_SITELIB = $(shell $(PYTHON) -c 'from distutils.sysconfig import > get_python_lib; print(get_python_lib());') > > > Replace the distutils.sysconfig.get_python_lib() call with > sysconfig.get_path('purelib') to fix this. Thanks, I was probably blind :) FEDORA-2023-1d7c24a433 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1d7c24a433 FEDORA-2023-1d7c24a433 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-56b1c3aecb FEDORA-2023-56b1c3aecb has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. |