-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-9.4
-
None
-
No
-
None
-
rhel-sst-csi-client-tools
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
All
-
None
What were you trying to do that didn't work?
using alternatives to link /usr/bin/python3 to /usr/bin/python3.12
I understand that scripts should use a specific version of the python interpreter in the hash-bang.
Shouldn't that apply to the scripts provided by the OS?
What is the impact of this issue to you?
Many OS components fail to function due to missing python modules.
Just to name a few.
- sos-collector
- sos
- subscription-manager
Please provide the package NVR for which the bug is seen:
this is not one specific package.
How reproducible is this bug?:
100% reproducable.
Steps to reproduce
- Install python3.12
dnf install python3.12 - set python3 to python3.12
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 300
alternatives --set python3 /usr/bin/python3.12 - try to use sybscription-manager
subscription-manager repos --list
Expected results
----------------------------------------------------------
Available Repositories in /etc/yum.repos.d/redhat.repo
----------------------------------------------------------
Repo ID: rhel-9-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
Repo URL: https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/appstream/os
Enabled: 1
Repo ID: rhel-9-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
Repo URL: https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/baseos/os
Enabled: 1
Repo ID: rhel-9-for-x86_64-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - Supplementary (RPMs)
Repo URL: https://sawfish.comp.uvic.ca/pulp/repos/University_of_Victoria/DCS_Monthly/DCS_rh9/content/dist/rhel9/$releasever/x86_64/supplementary/os
Enabled: 1
Actual results
Traceback (most recent call last):
File "/usr/lib64/python3.12/importlib/metadata/_init_.py", line 397, in from_name
return next(cls.discover(name=name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration