Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.9 #16611

Closed
3 tasks done
jiasli opened this issue Jan 21, 2021 · 4 comments · Fixed by #17368
Closed
3 tasks done

Support Python 3.9 #16611

jiasli opened this issue Jan 21, 2021 · 4 comments · Fixed by #17368

Comments

@jiasli
Copy link
Member

jiasli commented Jan 21, 2021

Is your feature request related to a problem? Please describe.

Currently Azure CLI can't be installed on Python 3.9, causing different errors on different platforms.

For example, on Windows

Building wheels for collected packages: bcrypt, cryptography, PyNaCl
...
  Building wheel for cryptography (PEP 517) ... error
  building '_openssl' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for cryptography

This is because older versions of bcrypt, cryptography, PyNaCl don't distribute wheels for Python 3.9. For example, cryptography 2.9.2 only distributes cryptography-2.9.2-cp38-cp38-win_amd64.whl.

Users will have to either

Describe the solution you'd like

The latest versions of bcrypt, cryptography, PyNaCl all use Stable Application Binary Interface (*-cp36-abi3-win_amd64.whl) to build wheels so that they can be installed on Python 3.9 without building source code.

Azure CLI should support Python 3.9 by bumping these dependencies:

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 21, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 21, 2021

Python 3.9 support

@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 21, 2021
@yonzhan yonzhan added this to the Backlog milestone Jan 23, 2021
@ericsnowcurrently
Copy link

Also, the first beta release of Python 3.10 is coming at the beginning of May.

@Umamahesh888
Copy link

in azure cli pip --version is 3.9 but finction app version is 3.10 getting the http 500 error , and will check in the logs request module not found already we called latest version request module in requirements.txt, is it related to python version issue?

@bebound
Copy link
Contributor

bebound commented May 19, 2023

@Umamahesh888 I don't get it, could you please provide more details? You can create a new issue if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants