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 Bicep version and decomplie failing for versions v0.3.256 and v0.3.126 -- same "fromisoformat" attribute error #17694

Closed
briancjordan opened this issue Apr 14, 2021 · 3 comments
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Service Attention This issue is responsible by Azure service team.

Comments

@briancjordan
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Running bicep version and decompile command fails. Expect build to do the same but have not tried yet.

Command Name
az bicep version

Errors:

type object 'datetime.datetime' has no attribute 'fromisoformat'
Traceback (most recent call last):
cli\Lib\site-packages\knack\cli.py, ln 231, in invoke
azure\cli\core\commands\__init__.py, ln 657, in execute
azure\cli\core\commands\__init__.py, ln 720, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 691, in _run_job
azure\cli\core\commands\__init__.py, ln 328, in __call__
site-packages\azure\cli\core\__init__.py, ln 807, in default_command_handler
azure\cli\command_modules\resource\custom.py, ln 3302, in show_bicep_cli_version
azure\cli\command_modules\resource\_bicep.py, ln 63, in run_bicep_command
azure\cli\command_modules\resource\_bicep.py, ln 152, in _load_bicep_version_check_result_from_cache
AttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Execute commands as per help documentation.

  • Put any pre-requisite steps here...
  • az bicep version

Expected Behavior

List current version of Bicep install. In case of decompile, create Bicep file.

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.22.0

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 labels Apr 14, 2021
@yonzhan yonzhan added the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label Apr 15, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Apr 15, 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 Apr 15, 2021
@ghost
Copy link

ghost commented Apr 15, 2021

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

Issue Details

This is autogenerated. Please review and update as needed.

Describe the bug

Running bicep version and decompile command fails. Expect build to do the same but have not tried yet.

Command Name
az bicep version

Errors:

type object 'datetime.datetime' has no attribute 'fromisoformat'
Traceback (most recent call last):
cli\Lib\site-packages\knack\cli.py, ln 231, in invoke
azure\cli\core\commands\__init__.py, ln 657, in execute
azure\cli\core\commands\__init__.py, ln 720, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 691, in _run_job
azure\cli\core\commands\__init__.py, ln 328, in __call__
site-packages\azure\cli\core\__init__.py, ln 807, in default_command_handler
azure\cli\command_modules\resource\custom.py, ln 3302, in show_bicep_cli_version
azure\cli\command_modules\resource\_bicep.py, ln 63, in run_bicep_command
azure\cli\command_modules\resource\_bicep.py, ln 152, in _load_bicep_version_check_result_from_cache
AttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Execute commands as per help documentation.

  • Put any pre-requisite steps here...
  • az bicep version

Expected Behavior

List current version of Bicep install. In case of decompile, create Bicep file.

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.22.0

Additional Context

Author: briancjordan
Assignees: -
Labels:

ARM, Service Attention

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 15, 2021

route to service team

@zhoxing-ms
Copy link
Contributor

This issue is same as #17665, and we have fixed it in the hotfix version (2.22.1) of CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants