-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
Description
I'm attempting to use azdev extension publish, but I'm getting the following error:
No module named 'azure.multiapi.storage'
Traceback (most recent call last):
File "/home/gerobayopaz/aaz-env/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/home/gerobayopaz/aaz-env/lib/python3.10/site-packages/knack/invocation.py", line 224, in execute
cmd_result = parsed_args.func(params)
File "/home/gerobayopaz/aaz-env/lib/python3.10/site-packages/knack/commands.py", line 149, in __call__
return self.handler(*args, **kwargs)
File "/home/gerobayopaz/aaz-env/lib/python3.10/site-packages/knack/commands.py", line 256, in _command_handler
result = op(client, **command_args) if client else op(**command_args)
File "/home/gerobayopaz/aaz-env/lib/python3.10/site-packages/azdev/operations/extensions/__init__.py", line 311, in publish_extensions
from azure.multiapi.storage.v2018_11_09.blob import BlockBlobService
ModuleNotFoundError: No module named 'azure.multiapi.storage'
I inspected the source code, and here we are importing the BlockBlocService from the azure-multiapi-storage package
azure-cli-dev-tools/azdev/operations/extensions/__init__.py
Lines 309 to 311 in ce90f1c
| def publish_extensions(extensions, storage_account, storage_account_key, storage_container, | |
| dist_dir='dist', update_index=False, yes=False): | |
| from azure.multiapi.storage.v2018_11_09.blob import BlockBlobService |
and setup.py declares it as a dependency, but without a version boundary.
Lines 69 to 70 in ce90f1c
| install_requires=[ | |
| 'azure-multiapi-storage', |
But I think the most important thing is that this need to be migrated to use storagev2 api.
Version info
azdev
azdev --versionOutput
Python (Linux) 3.10.12 (main, Aug 15 2025, 14:32:43) [GCC 11.4.0]
Python location '/home/gerobayopaz/aaz-env/bin/python'azure-multiapi-storage
pip show azure-multiapi-storageOutput:
Name: azure-multiapi-storage
Version: 1.5.0
Summary: Microsoft Azure Storage Client Library for Python with multi API version support.
Home-page: https://github.com/Azure/azure-multiapi-storage-python
Author: Microsoft Corporation
Author-email: [email protected]
License: MIT
Location: /home/gerobayopaz/aaz-env/lib/python3.10/site-packages
Requires: azure-common, azure-core, cryptography, msrest, python-dateutil, requests
Required-by: azdev, azure-cli
Metadata
Metadata
Assignees
Labels
No labels