Certain interactive commands complete with 'NoneType' object has no attribute 'init_progress'
See original GitHub issueInstall Method: apt-get
CLI Version:
azure-cli (2.0.24)
acr (2.0.18)
acs (2.0.23)
advisor (0.1.1)
appservice (0.1.23)
backup (1.0.4)
batch (3.1.8)
batchai (0.1.4)
billing (0.1.7)
cdn (0.0.11)
cloud (2.0.11)
cognitiveservices (0.1.10)
command-modules-nspkg (2.0.1)
configure (2.0.13)
consumption (0.2.1)
container (0.1.16)
core (2.0.24)
cosmosdb (0.1.16)
dla (0.0.16)
dls (0.0.19)
eventgrid (0.1.7)
extension (0.0.7)
feedback (2.0.7)
find (0.2.8)
interactive (0.3.12)
iot (0.1.16)
keyvault (2.0.16)
lab (0.0.14)
monitor (0.0.14)
network (2.0.20)
nspkg (3.0.1)
profile (2.0.17)
rdbms (0.0.10)
redis (0.2.11)
reservations (0.1.1)
resource (2.0.20)
role (2.0.16)
servicefabric (0.0.8)
sql (2.0.18)
storage (2.0.22)
vm (2.0.23)
Python location '/opt/az/bin/python3'
Extensions directory '/home/tda/.azure/cliextensions'
Python (Linux) 3.6.1 (default, Jan 5 2018, 21:18:08)
[GCC 4.8.4]
OS Version:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Shell: bash
Issue:
az interactive
. Output:
az>> Command: provider list not in Command Table
Command: sql db op cancel not in Command Table
Command: storage account generate-sas not in Command Table
- Hit enter and create a new group:
az>> group create -n test -l westeurope -o json
- Try and delete the group:
az>> group delete -n test -y
'NoneType' object has no attribute 'init_progress'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 193, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 319, in execute
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 303, in execute
result = LongRunningOperation(self.cli_ctx, 'Starting {}'.format(cmd.name))(result)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 438, in __call__
self.cli_ctx.get_progress_controller().begin()
File "/opt/az/lib/python3.6/site-packages/azclishell/app.py", line 679, in progress_patch
self.cli_ctx.progress_controller.init_progress(ShellProgressView())
AttributeError: 'NoneType' object has no attribute 'init_progress'
'int' object has no attribute 'result'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/azclishell/app.py", line 660, in cli_execute
if result and result.result is not None:
AttributeError: 'int' object has no attribute 'result'
az>>
Additional Information:
The group is deleted but the it exits immediately without waiting for the completion (without --no-wait
)
The intellisence / autocompletion does not seem to work either
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
'NoneType' object has no attribute 'content' in discord.py ...
'NoneType' object has no attribute 'content" means that ctx.message must have been None . I'm not a discord user and I couldn't find...
Read more >'NoneType' object has no attribute 'methodName'
Running Commands against an ovm_shell prompt returns errors such as "AttributeError: 'NoneType' object has no attribute 'methodName'" (Doc ID ...
Read more >FAQ Entry | Online Support | Support - Supermicro
... log " AttributeError: 'NoneType' object has no attribute 'startswith'" inside. How can I pass this problem and complete OS installation?
Read more >DCLI 2.9.1 Release Notes
DCLI allows you to work with a simplified command-line interface ... of type Error: 'NoneType' object has no attribute 'run' when you try...
Read more >import-server-key-cert results in Error: 'NoneType' object has ...
Could you please run dsctl with --verbose and paste full output + ... _serverid)) AttributeError: 'NoneType' object has no attribute 'get' ...
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
I have the same problem running some commands like creation of vm(ss):
I’m running Archlinux, the cli has been installed with:
The commands works but I kinda lose the progress character animation.
This is fixed. Reopen if you are still facing the issue