-
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 bicep build broken in CLI 2.22.0 #17665
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure. Issue Details
Describe the bug
To Reproduce
Expected behavior Bicep build should work Environment summary Additional context
|
route to service team |
I get the same when trying to run a deployment via ➜ mgmt_group: az deployment tenant create -l uksouth -f main.bicep
type object 'datetime.datetime' has no attribute 'fromisoformat'
➜ mgmt_group: python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> datetime.fromisoformat('2021-04-13')
datetime.datetime(2021, 4, 13, 0, 0)
>>> datetime.
datetime.astimezone( datetime.isoweekday( datetime.timestamp(
datetime.combine( datetime.max datetime.timetuple(
datetime.ctime( datetime.microsecond datetime.timetz(
datetime.date( datetime.min datetime.today(
datetime.day datetime.minute datetime.toordinal(
datetime.dst( datetime.month datetime.tzinfo
datetime.fold datetime.mro( datetime.tzname(
datetime.fromisocalendar( datetime.now( datetime.utcfromtimestamp(
datetime.fromisoformat( datetime.replace( datetime.utcnow(
datetime.fromordinal( datetime.resolution datetime.utcoffset(
datetime.fromtimestamp( datetime.second datetime.utctimetuple(
datetime.hour datetime.strftime( datetime.weekday(
datetime.isocalendar( datetime.strptime( datetime.year
datetime.isoformat( datetime.time(
>>> datetime._ I am running the deployment from a fresh build of my Docker container built this morning: https://github.com/fluffy-cakes/devops_tools/ |
@shenglol Could you please help to have a look at this issue~ |
@zhoxing-ms already submitted a PR: #17675. Can you take a look? |
For those who get this error, please use the temporary workaround mentioned in Azure/bicep#2243 (comment) to the configure Azure CLI to use Python 3.8. |
Just to be clear. While a PR has been closed, no new version of the Azure CLI has been released. Can we just use 2.22.0 now or should we wait for a patch release 2.22.1? |
@IJsbrandVV , i noted that too, however the PR was pushed into the Dev branch, which i assume means will be in their backlog for the next release?
|
@yonzhan @zhoxing-ms would it be possible for us to get a hot fix release for this? |
@IJsbrandVV @fluffy-cakes Yes, closing PR usually only means that the code in PR is merged into the dev branch, but the related code needs the next sprint to be released. |
@shenglol May I ask if this issue has a wide impact on users? If only a small number of users are affected, can they use the private package of edge build at first, and we will release it in the next sprint (05-04)? |
If you need to launch hotfix, please use the package of edge build to do test to ensure that the quality meets the expectation. And then we'll help you release the hotfix |
@zhoxing-ms For now I have disabled automatic updates of the Azure CLI, uninstalled it and reinstalled 2.21.0 In my personal opinion an issue is not closed unless an actual fix has been released but w/e. I've warned our team not to upgrade and wait for the next release. |
@zhoxing-ms @shenglol as for people affected I don't have an answer. I'm just a windows dev that doesn't have a local python installation (Our codebase is C# / typescript so why would I have python installed?) and use bicep. Everyone in that profile would have this issue and I've seen more and more issues pop up regarding this, i.e. #17700 #17694 and the bicep issue #2243 you linked already. |
@IJsbrandVV Hi, we released a new version ( |
That's great @zhoxing-ms I just updated to the latest version and everything works again. Thanks for the quick response 👍 |
Describe the bug
Running
az bicep build
gives a python error:To Reproduce
az bicep build -f somefile.bicep
Expected behavior
Bicep build should work
Environment summary
Installed using
az upgrade
and repaired using the MSI. Both don't work.Windows 10, x64.
az bicep build
command ran from a git bash terminal.Additional context
The text was updated successfully, but these errors were encountered: