Open Kreetik-T opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
Author: | Kreetik-T |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `Web Apps` |
Milestone: | - |
route to service team
Judging by the call stack
File "C:\Python39\lib\site-packages\knack\cli.py", line 231, in invoke
...
File "C:\Users\kreet\AppData\Roaming\Python\Python39\site-packages\azure\cli\core\commands\__init__.py", line 556, in execute
...
File "C:\Users\kreet\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\nacl\public.py", line 17, in <module>
you have multiple Pythons (at least 3.9 and 3.7) installed and sys.path
pointes to various source folders:
C:\Python39\lib\site-packages\
C:\Users\kreet\AppData\Roaming\Python\Python39\site-packages\
C:\Users\kreet\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\
You have also installed Azure CLI by yourself previously with pip
which corrupts the dependency resolution.
Please follow the official doc to Install Azure CLI on Windows and make sure C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd
can be found first on your PATH
environment variable:
# PowerShell
> (Get-Command az).source
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd
> echo $env:PATH
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS\system32;...
(You may also consider removing unused Pythons.)
This is autogenerated. Please review and update as needed.
I am trying to retrieve deployment center logs for an app service in Azure using python and the azure.cli library. Other commands like
az group list
work just fine but this one seems to be returning an error. I've tried using pip to uninstall and reinstall the module 'nacl' that appears to be missing, but pip could neither find it on my system for uninstalling, nor could it find a version online.Command Name
az webapp log deployment list
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az webapp log deployment list --name {} --resource-group {}
Expected Behavior
Environment Summary
Additional Context