Skip to content
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 container create' Table output unavailable #20125

Closed
alexeyshishkin01 opened this issue Oct 31, 2021 · 4 comments
Closed

'az container create' Table output unavailable #20125

alexeyshishkin01 opened this issue Oct 31, 2021 · 4 comments
Labels
Container Instances az container customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.

Comments

@alexeyshishkin01
Copy link

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
'az container create' Table output unavailable

To Reproduce
root@ubuntu20:~/docker# az container create --resource-group dockers --file /root/debiandocker.yaml -o table
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

Expected behavior
'az container create' Table output is available

Environment summary
root@ubuntu20:~/docker# az version
Azure-cli Azure-cli-core Azure-cli-telemetry


2.29.2 2.29.2 1.0.6
root@ubuntu20:~/docker# az --version
azure-cli 2.29.2
core 2.29.2
telemetry 1.0.6

Additional context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Oct 31, 2021
@yonzhan yonzhan added the Container Instances az container label Nov 1, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 1, 2021
@yonzhan yonzhan added Service Attention This issue is responsible by Azure service team. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 1, 2021
@ghost
Copy link

ghost commented Nov 1, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @macolso.

Issue Details

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
'az container create' Table output unavailable

To Reproduce
root@ubuntu20:~/docker# az container create --resource-group dockers --file /root/debiandocker.yaml -o table
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

Expected behavior
'az container create' Table output is available

Environment summary
root@ubuntu20:~/docker# az version
Azure-cli Azure-cli-core Azure-cli-telemetry


2.29.2 2.29.2 1.0.6
root@ubuntu20:~/docker# az --version
azure-cli 2.29.2
core 2.29.2
telemetry 1.0.6

Additional context

Author: alexeyshishkin01
Assignees: -
Labels:

Service Attention, Container Instances, customer-reported

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 1, 2021

route to service team

@berndverst
Copy link

cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x1031b1f30>, <function _x509_from_base64_to_hex_transform at 0x1031b1fc0>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
cli.knack.output: Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 76, in format_table
    return to.dump(result_list)
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 207, in dump
    from tabulate import tabulate
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/tabulate.py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/opt/homebrew/Cellar/python@3.10/3.10.0_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 76, in format_table
    return to.dump(result_list)
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 207, in dump
    from tabulate import tabulate
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/tabulate.py", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/opt/homebrew/Cellar/python@3.10/3.10.0_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/cli.py", line 237, in invoke
    self.output.out(cmd_result, formatter=formatter, out_file=out_file)
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 146, in out
    output = formatter(obj)
  File "/opt/homebrew/Cellar/azure-cli/2.30.0_1/libexec/lib/python3.10/site-packages/knack/output.py", line 79, in format_table
    raise CLIError("Table output unavailable. "
knack.util.CLIError: Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

cli.azure.cli.core.azclierror: Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
az_command_data_logger: Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x103166560>]
cli.__main__: Command ran in 0.798 seconds (init: 0.045, invoke: 0.753)

@jiasli
Copy link
Member

jiasli commented Nov 16, 2021

I guess you are using Python 3.10. Let's work on #20348.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Container Instances az container customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants