-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
- 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 venvsource venv/bin/activatepython -m pip install azure-identitypython-
>>> 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Type
Projects
Status
Done