- Package Name: azure-identity
- Package Version: 1.15.1
- Operating System: MacOS (Darwin)
- Python Version: 3.12
Describe the bug
>>> from azure.identity import DefaultAzureCredential
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "azurebug/venv/lib/python3.12/site-packages/azure/identity/__init__.py", line 10, in <module>
from ._credentials import (
File "azurebug/venv/lib/python3.12/site-packages/azure/identity/_credentials/__init__.py", line 11, in <module>
from .default import DefaultAzureCredential
File "azurebug/venv/lib/python3.12/site-packages/azure/identity/_credentials/default.py", line 20, in <module>
from .vscode import VisualStudioCodeCredential
File "azurebug/venv/lib/python3.12/site-packages/azure/identity/_credentials/vscode.py", line 22, in <module>
from .._internal.macos_vscode_adapter import get_refresh_token, get_user_settings
File "azurebug/venv/lib/python3.12/site-packages/azure/identity/_internal/macos_vscode_adapter.py", line 8, in <module>
from msal_extensions.osx import Keychain, KeychainError
File "azurebug/venv/lib/python3.12/site-packages/msal_extensions/__init__.py", line 11, in <module>
from .cache_lock import CrossPlatLock
File "azurebug/venv/lib/python3.12/site-packages/msal_extensions/cache_lock.py", line 7, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
Importing azure-identity fails with an import error of the package distutils.
The package distutils was removed in Python3.12.
The dependency msal-extensions in the azure-identity package (here) is still using the distutils import.
It seems that the package msal-extensions is unmaintained!
The issue is well known since Nov2, 2022 and a contribution have been made to fix the issue (see the open PR).
To Reproduce
Steps to reproduce the behavior:
python3.12 -m venv venv
source venv/bin/activate
python -m pip install azure-identity
python
-
>>> from azure.identity import DefaultAzureCredential
Expected behavior
Python3.12 should be supported because azure-identity has the classifier "Programming Language :: Python :: 3.12",.
This kind of error should have been covered by the unittests and CI pipeline.
Screenshots
None
Additional context
None
Describe the bug
Importing azure-identity fails with an import error of the package
distutils.The package
distutilswas removed in Python3.12.The dependency
msal-extensionsin theazure-identitypackage (here) is still using thedistutilsimport.It seems that the package
msal-extensionsis unmaintained!The issue is well known since Nov2, 2022 and a contribution have been made to fix the issue (see the open PR).
To Reproduce
Steps to reproduce the behavior:
python3.12 -m venv venvsource venv/bin/activatepython -m pip install azure-identitypythonExpected behavior
Python3.12 should be supported because
azure-identityhas the classifier"Programming Language :: Python :: 3.12",.This kind of error should have been covered by the unittests and CI pipeline.
Screenshots
None
Additional context
None