oci-cli icon indicating copy to clipboard operation
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.

Open whherui opened this issue 2 years ago • 4 comments

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 ###################################################################################################

whherui avatar Feb 14 '23 07:02 whherui

Same issue. Kind of annoying !

Mr-HongHaiNguyen avatar Feb 16 '23 11:02 Mr-HongHaiNguyen

Have you tried upgrading to Python v3.7 or above?

karthik-k-kamath avatar Feb 16 '23 12:02 karthik-k-kamath

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

adizohar avatar Feb 16 '23 12:02 adizohar

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

brokedba avatar Mar 30 '23 18:03 brokedba