Azure / Azure/azure-sdk-for-python
MS Fabric notebook fails - cannot import name 'Azure Clouds' from 'azure.core'
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
- **Package Name**: azure.mgmt.datafactory
- **Package Version**: 9.3.0
- **Operating System**: Windows
- **Python Version**: default python version available in Fabric spark cluster
**Describe the bug**
Running Fabric spark notebook to kickoff datafactory pipelines using this library.
**To Reproduce**
Steps to reproduce the behavior:
1. Create pyspark notebook with below in cells
## CELL 1
!pip install azure-mgmt-datafactory -q
## CELL 2
from azure.mgmt.datafactory import DataFactoryManagementClient
**Expected behavior**
Code runs without any error. But it fails with below error
its giving me error
cannot import name 'AzureClouds' from 'azure.core' (/home/trusted-service-user/cluster-env/trident_env/lib/python3.11/site-packages/azure/core/__init__.py)
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Import in einem Microsoft Fabric PySpark-Notebook mit dem Installationsbefehl, der Python-Version und azure.mgmt.datafactory 9.3.0 aus dem Issue zu reproduzieren. Überprüfe die installierten Versionen von azure.core und verwandten Paketen; als abgeschlossen gilt die Aufgabe, wenn DataFactoryManagementClient ohne den gemeldeten AzureClouds-Fehler importiert werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100