-
Notifications
You must be signed in to change notification settings - Fork 3k
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.12 #27673
Comments
Hi @chenrui333
Possible solution: Please confirm if this resolves your issue. |
Thank you for opening this issue, we will look into it. |
I find there is no open issue to support py3.12, create this one for the team. |
Any progress on this and will this impact App Service Python 3.12 availability? |
Could be this the explanation why installing azure-cli with Python 3.12 throw this error complining about pymsalruntime?
|
Indeed it seems like the dependency of The pymsalruntime library seems to use the deprecated and removed functions |
Fedora 39 was just released, and it's containing Python 3.12. It is a huge blocker now for all Fedora users, as it's not possible to run Azure CLI "as is" without any additional hassle (running it in a container or with older version of python).
Links: |
Do we have an ETA for this? This is blocking our customers who are using python 3.12 from using our azure cli extension. |
I have created AzureAD/microsoft-authentication-library-for-python#624 to track this issue. |
While we will plan this feature as soon as possible, we can't provide an ETA at the moment. Azure CLI is a product, not a library, so only MSI, DEB, RPM packages and docker images released by Microsoft are officially supported: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli. Also, in the source code, there is no declaration that Python 3.12 is supported: azure-cli/src/azure-cli/setup.py Lines 39 to 50 in f74a18b
We don't guarantee Azure CLI works on all Python versions, such as the latest Python 3.12 or the deprecated Python 3.6. Installing Azure CLI with Thanks for understanding. |
@jiasli its now over 2 months since this issue was first raised, are you any closer to knowing when this feature release (i.e. support for python 3.12) will be available please? |
Any updates? |
@mkleinbort-ic there is a workaround to install this dependency : AzureAD/microsoft-authentication-library-for-python#624 (comment) But I haven't tested it yet, I don't have the time to meddle with this at the moment. |
The suggested workaround from #27673 (comment) above did not work for me. However, simply installing the Python version: 3.12 |
Sadly, this didn't work for me either (I'm on Windows). Same error as before. |
hey -- just wanted to bump this issue again to see if there is any estimate that can be provided for when (or if) the azure CLI will be compatible with python 3.12. |
I saw that somebody states above that azure-cli does not support the installation via pip for Python 3.12. So, this message is just to spread the information, but no action is required. A problem arose for the azure-cli feature in the DevContainer setup, as Debian Bookworm was not in the list of native installations, and a fallback to go via pip popped in. -> devcontainers/features#899 As I understand, the problem will be fixed over there, adding bookworm to the list of native installations. |
Just to provide quick update re: latest release of azure-cli i.e. version 2.58.0 (5th March 2024) C:\windows\system32>pip install azure-cli --upgrade × Building wheel for pymsalruntime (pyproject.toml) did not run successfully. Attempting to perform a manual upgrade of dependency pymsalruntime... pip install pymsalruntime --upgrade and pip install pymsalruntime==0.14.0 also fails with the same error. I see the latest release (0.14.1) was yanked back in January 2024 https://pypi.org/project/pymsalruntime/0.14.1/ |
|
Finally found some time to return to this and have thankfully made some progress. I've installed the latest pymsalruntime which was released last month... |
@bebound can you also add microsoft/knack#279 to TODO list at description? |
This breaks Azure CLI on Ubuntu 24.04 LTS (Noble Numbat) when using the system Python, e.g. installing with
If you installed the Azure CLI with
to work around this. It looks like the package fails to declare a dependency on |
The latest |
Is there already work to ensure compatibility with python 3.13? |
Feel free to create a new issue. |
Embedded Python will be updated to 3.12 in 2.66.0. |
Any chance to get 3.12.7 on Azure Web Apps? It's currently still at 3.12.1. |
@fabswt Its Python version is controlled by the service team; please report this directly to the relevant team. |
Description
Python 3.12 has been released on 2023-10-02: https://www.python.org/downloads/release/python-3120/
Azure CLI needs to support Python 3.12 like how we supported 3.10 (#19857), 3.11 (#24494).
TODOs
pymsalruntime
(dependency ofmsal[broker]
) {Core} Bump MSAL to 1.27.0 and pinpymsalruntime
to 0.14.0 #28556distutils
{Core} Remove deprecated usages of distutils to support Python 3.12 #28796setuptools
to dependency #27196assertRaisesRegexp
#29504assertEquals
#29515assertDictContainsSubset
andassertNotEquals
Please port to Python3.12 #28194assertRaisesRegexp
andassertEquals
azure-cli-extensions#8010The text was updated successfully, but these errors were encountered: