Azure / Azure/azure-storage-python
I'm getting Azure.Storage.Blob can not import in Azure ML notebook, what is the reason?
- Dominant language
- Python
- Stars
- 343
- Forks
- 243
- PR merge metrics
- No merged PRs in 30d
Description
import cv2
import time
from matplotlib import pyplot as plt
from azure.storage.blob import BlockBlobService
import os
4th line is giving error, I checked package is installed
error:-
ImportError Traceback (most recent call last)
Cell In[1], line 4
2 import time
3 from matplotlib import pyplot as plt
----> 4 from azure.storage.blob import BlockBlobService
ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob' (/anaconda/envs/azureml_py38/lib/python3.9/site-packages/azure/storage/blob/__init__.py)
Contributor guide
Research direction
Start with the failing import in the Azure ML notebook and inspect the installed package at /anaconda/envs/azureml_py38/lib/python3.9/site-packages/azure/storage/blob/__init__.py. Check which blob client API that environment exposes and compare it with the code's BlockBlobService import. Done means identifying the cause and documenting or confirming a working import path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100