"az storage blob download" errors with or without any options provided, NoneType error
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az storage blob download
Errors:
The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 556, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 518, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 31, in load_arguments
load_arguments(self, command)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_params.py", line 1839, in load_arguments
help=sas_help.format(get_permission_help_string(t_file_system_permissions)),
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 772, in get_permission_help_string
return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
TypeError: 'NoneType' object is not iterable
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az storage blob download
Expected Behavior
File specified is downloaded
Environment Summary
Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-debian-10.12, Debian GNU/Linux 10 (buster)
Python 3.6.10
Installer: DEB
azure-cli 2.32.0
Extensions:
storage-preview 0.8.2
account 0.2.3
Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
I am getting failures when trying to download a blob from ...
and I am getting this error: The command failed with an unexpected error. Here is the traceback: 'BlobServiceClient' object has no attribute 'exists'...
Read more >az servicebus list gives NoneType error in python
Command Name I tried az servicebus namespace list but after some outputs it gives me NoneType error means no data is retrieved.
Read more >az storage blob delete-batch command in Azure Devops
Hello,. I have added Azure CLI (2.11.1) n my release pipeline to remove blob contents from $web container before copying the new build....
Read more >azure-storage-blob - PyPI
Azure Storage Blobs client library for Python. Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is optimized for ......
Read more >Robot Framework User Guide
Provides a simple library API for creating customized test libraries which can ... The error message assigned to a failed test case is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Azure CLI installed using
apt
is at/opt/az/lib/python3.10/site-packages
, but if you install packages withpip3
, it will interfere withapt
Azure CLI’s installation:We recommend installing with only one method - either
apt
orpip
. If you have to install twice with 2 tools, you may install Azure CLI withpip
in a virtual environment. You may see https://github.com/Azure/azure-cli/issues/20476#issuecomment-1007131837 for detailed instruction.Actually, then even “az storage blob” gives an error, if it helps narrow down the issue… az storage blob.txt
I’ve tried restarting my Docker Desktop now, even restarting my laptop, and the “az storage blob” command is again now completely broke in my devcontainer.