Skip to content

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

@linsonabraham001

Description

@linsonabraham001
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions