Create a python file testcos.py with only the following imports:
import os
from cosaccess import CosAccessManager
import getpass
import ibm_boto3
from ibm_botocore.client import Config, ClientError
Run it python testcos.py
Get the following error:
python testcos.py
Traceback (most recent call last):
File "/root/cosaccess/testcos.py", line 2, in <module>
from cosaccess import CosAccessManager
File "/root/cosaccess/cos/lib64/python3.11/site-packages/cosaccess/__init__.py", line 19, in <module>
from .cosaccess import CosAccessManager
File "/root/cosaccess/cos/lib64/python3.11/site-packages/cosaccess/cosaccess.py", line 27, in <module>
import ibm_boto3
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_boto3/__init__.py", line 16, in <module>
from ibm_boto3.session import Session
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_boto3/session.py", line 27, in <module>
import ibm_botocore.session
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/session.py", line 30, in <module>
import ibm_botocore.credentials
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/credentials.py", line 34, in <module>
from ibm_botocore.config import Config
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/config.py", line 16, in <module>
from ibm_botocore.endpoint import DEFAULT_TIMEOUT, MAX_POOL_CONNECTIONS
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/endpoint.py", line 22, in <module>
from ibm_botocore.awsrequest import create_request_object
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/awsrequest.py", line 25, in <module>
import ibm_botocore.utils
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/utils.py", line 33, in <module>
import ibm_botocore.httpsession
File "/root/cosaccess/cos/lib64/python3.11/site-packages/ibm_botocore/httpsession.py", line 8, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/root/cosaccess/cos/lib64/python3.11/site-packages/urllib3/util/ssl_.py)
Did the following steps in a brand new python virtual environment:
testcos.py
with only the following imports:python testcos.py
Using python 3.1.1