wide-cat-8781802/14/2023, 9:00 AM
It was working with older versions. I’ve upgraded all my packages and it is not working anymore. I’m using the following versions: • Python 3.11 • Pulumi 3.54.0 • pulumi_aws 5.29.1 Problematic line: https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/get_caller_identity.py#L100 Perhaps it is enough to update to provider? https://github.com/pulumi/pulumi-aws/issues/2361 Any ideas?
File "/home/marcel/.cache/pypoetry/virtualenvs/moneymeets-pulumi-2nIJVDlj-py3.11/lib/python3.11/site-packages/pulumi_aws/get_caller_identity.py", line 100, in get_caller_identity opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'InvokeOptions' has no attribute 'merge'
echoing-dinner-1953102/14/2023, 10:31 AM
quite a while a go.
wide-cat-8781802/14/2023, 10:39 AM
TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: <https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates> error: an unhandled error occurred: program exited with non-zero exit code: 1