-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.11
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
Customer Escalated
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Moved from https://bugzilla.redhat.com/show_bug.cgi?id=2127306:
When installing python3-kubernetes package, python3-oauthlib and python3-requests-oauthlib packages are not installed, but while importing kubernetes through python gives dependency errors for same libraries.
[...]
Steps to Reproduce:
1. Have no python3-oauthlib and python3-requests-oauthlib packages installed , and then install python3-kubernetes package.
# yum install python3-kubernetes --enablerepo=rhocp-4.11-for-rhel-8-x86_64-rpms --enablerepo=openstack-16.2-for-rhel-8-x86_64-rpms
Updating Subscription Management repositories.
Red Hat OpenStack Platform 16.2 for RHEL 8 x86_64 (RPMs) 2.0 MB/s | 2.3 MB 00:01
Last metadata expiration check: 0:00:01 ago on Thu 15 Sep 2022 05:05:20 PM EDT.
Dependencies resolved.
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
python3-kubernetes noarch 24.2.0-1.el8 rhocp-4.11-for-rhel-8-x86_64-rpms 1.2 M
Installing dependencies:
python3-cachetools noarch 3.1.0-3.el8ost openstack-16.2-for-rhel-8-x86_64-rpms 33 k
python3-certifi noarch 2018.10.15-9.el8ost.1 openstack-16.2-for-rhel-8-x86_64-rpms 17 k
python3-google-auth noarch 1.3.0-6.el8ost.1 openstack-16.2-for-rhel-8-x86_64-rpms 82 k
python3-rsa noarch 3.4.2-14.el8ost.1 openstack-16.2-for-rhel-8-x86_64-rpms 74 k
python3-websocket-client
noarch 0.54.0-2.el8ost openstack-16.2-for-rhel-8-x86_64-rpms 61 k
Transaction Summary
==============================================================================================
Install 6 Packages
2. Then importing kubernetes, shows it requires oauthlib module and requests-oauthlib module further
# python3 -c "import kubernetes"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/kubernetes/__init__.py", line 20, in <module>
import kubernetes.config
File "/usr/lib/python3.6/site-packages/kubernetes/config/__init__.py", line 19, in <module>
from .kube_config import (KUBE_CONFIG_DEFAULT_LOCATION,
File "/usr/lib/python3.6/site-packages/kubernetes/config/kube_config.py", line 30, in <module>
import oauthlib.oauth2
ModuleNotFoundError: No module named 'oauthlib'
3. After installing python3-oauthlib and python3-requests-oauthlib packages it resolves issue :
# yum install python3-oauthlib python3-requests-oauthlib # python3 -c "import kubernetes" # echo $? 0
Note : System does not have oauthlib modules installed from pip.
- links to