Azure / Azure/azure-sdk-for-python

MS Fabric notebook fails - cannot import name 'Azure Clouds' from 'azure.core'

Aperta
#45,651 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
customer-reported needs-team-attention question
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

- **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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo l'importazione in un notebook Microsoft Fabric PySpark usando il comando di installazione, la versione di Python e azure.mgmt.datafactory 9.3.0 indicati nell'issue. Ispeziona le versioni installate di azure.core e dei pacchetti correlati; il lavoro è completato quando DataFactoryManagementClient viene importato senza l'errore AzureClouds segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api, cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.