When running "gcloud components update" or "gcloud components list", it crashes with the error message: TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
How to solve the problem?
If you see this error, it is most likely that you installed the container-builder-local
component. The crash is because this component was removed in version 224.0.0 and replaced with cloud-build-local
.
So the work-around is:
remove container-builder-local: gcloud components remove container-builder-local
update: gcloud components update
install cloud-build-local: gcloud components install cloud-build-local
I'm currently on gcloud v222.0.0 and ran into the error:
ERROR: gcloud crashed (TypeError): unsupported operand type(s) for +=: 'int' and 'NoneType'
when trying to update components.
I can confirm that removing container-build-local
and updating to cloud-build-local
fixes this error.
Installing components from version: 224.0.0
┌──────────────────────────────────────────────────────┐
│ These components will be installed. │
├──────────────────────────────────┬─────────┬─────────┤
│ Name │ Version │ Size │
├──────────────────────────────────┼─────────┼─────────┤
│ Google Cloud Build Local Builder │ 0.4.2 │ 5.9 MiB │
│ Google Cloud Build Local Builder │ │ │
└──────────────────────────────────┴─────────┴─────────┘
I was caught unaware of this breaking change
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With