Are you sure the pulumi lib is updated in your environment, we added
merge
quite a while a go.
echoing-dinner-19531
02/14/2023, 10:32 AM
Since v3.35 based on git log, I'd double check that pulumi is actually at 3.54
w
wide-cat-87818
02/14/2023, 10:39 AM
Will check that again, by removing my Poetry virtual env and create everything from scratch.
wide-cat-87818
02/14/2023, 10:46 AM
Okay, I see the problem. You are right, Pulumi version 3.33.1 is installed in my Poetry virtual env, because I pinned protobof to 3.20 because of the error:
Copy code
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
wide-cat-87818
02/14/2023, 10:50 AM
Okay solution:
I’ve pinned protobuf to 3.20.3 and this works.
Thanks!
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.