https://pulumi.com logo
#general
Title
# general
c

calm-kitchen-4682

07/29/2022, 4:08 PM
Hello, could someone provide some insight into why running
pulumi preview
on a brand new M1 Macbook which is configured (aside for maybe versions of tools) similarly to another machine on which everything works fine:
File "/Users/[REDACTED]/venv/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 560, in __new__
_message.Message._CheckCalledFromGeneratedFile()
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>
Using pulumi version 3.37.1 and python 3.9.13 On another box I'm using same python version and pulumi 3.34.1 and I do not encounter this issue. Any ideas if this could be pulumi version or could come from something else?
e

echoing-dinner-19531

07/29/2022, 5:55 PM
You need the right pulumi version and the right protobuf version, 3.36.0 regenerated the protobufs for python protobuf version 4.21
🙌 1
25 Views