-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"az storage blob download" errors with or without any options provided, NoneType error #23082
Comments
storage |
Thank you for your feedback. This has been routed to the support team for assistance. |
This was happening in my VSCode devcontainer, which even after recreating was still failing. I've gone back to it today to see how I could update the az cli inside the container (as it has no internet access) but now it works fine |
In actual fact, when I first opened my devcontainer a little earlier today and ran "az storage blob download", that command executed fine, (except of course it reports I'm missing arguments). I then run our deploy command, which uses some Python code to fetch the Azure config (using method below), and it's at that point that the issue arises, giving the error about the "NoneType", and that then somehow makes running the "az storage blob download" from the terminal now broke too. Even exiting the devcontainer, allowing the docker container to stop and relaunching does not fix the issue. The method in Python is:
|
Actually, then even "az storage blob" gives an error, if it helps narrow down the issue.... 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. |
Seems like the dependency is broken. Probably Python SDK Please check if CLI is installed successfully. FYI: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli |
Thanks for that info, it gives me something to look into. The azure-cli in installed via apt and the storage module is installed via pip so I’ll check out image creation output for issues. What’s more confusing is this image is working for colleagues and also for our prod deployments, just not when built for my devcontainer… |
Hey @evelyn-ys , I've checked our requirements.txt and we don't install either of these packages. We do, however, install And then just to check we're installing in the correct method, we install the azure-cli via apt first, then run the pip install afterwards? |
Adding packaging expert @jiasli |
Azure CLI installed using
We recommend installing with only one method - either |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az storage blob download
Errors:
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
Additional Context
The text was updated successfully, but these errors were encountered: