oci-cli
oci-cli copied to clipboard
Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
When executing the command "oci compute instance launch ... ", the following error occurs, my operating system is CentOS 7 (5.16.12-1.el7.elrepo.x86_64)
How to SOLVE it?
################################################################################################### /root/lib/oracle-cli/lib64/python3.6/site-packages/oci/_vendor/httpsig_cffi/sign.py:10: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.hazmat.backends import default_backend # noqa: F401 ###################################################################################################
Same issue. Kind of annoying !
Have you tried upgrading to Python v3.7 or above?
Python3.6 is end of life, you need to upgrade to 3.7 or higher, I would recommend to 3.9 or higher to avoid same issue soon Status of Python Versions - https://devguide.python.org/versions/ There are many website that instruct how to install python 3.9+ on centos
I agree it's annoying . This also happens for windows users. I finally got a hang of the powershell script and corrected it for those who are installing it on windows. you can find it in my git repo here
- Usage
powershell -NoProfile -ExecutionPolicy Bypass -Command "~\install.ps1"
or directly download and install from your PowerShell
PS C:\> Set-ExecutionPolicy RemoteSigned
PS C:\> powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/brokedba/oci-cli-examples/master/installation_win64/install.ps1'))"
Read more in this blog