Azure / Azure/azure-sdk-for-python

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

Open
#45,651 4 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-team-attention question
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.