Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.63k stars 2.84k forks source link

ImportError: cannot import name 'settings' from 'azure.core.settings' #38645

Open vbrandon opened 7 hours ago

vbrandon commented 7 hours ago

Describe the bug Cannot import anything from azure-core

To Reproduce Steps to reproduce the behavior:

  1. create virtual environment with python 3.12.7
  2. pip install azure-core>=1.32.0
  3. attempt import (from azure.core.settings import settings)

Expected behavior import succeeds or import not attempted

Screenshots If applicable, add screenshots to help explain your problem. Image

Additional context environment created with UV. uv lock provided below:

github-actions[bot] commented 7 hours ago

@kashifkhan @xiangyan99

github-actions[bot] commented 7 hours ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

kashifkhan commented 6 hours ago

Thank you for the feedback @vbrandon . I was not able to repro this issue on my side, please check if your virtual environment has not been corrupted.

Image

Image

github-actions[bot] commented 6 hours ago

Hi @vbrandon. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.