calm-kitchen-468207/29/2022, 4:08 PM
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__
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).
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?
More information: <https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates>
echoing-dinner-1953107/29/2022, 5:55 PM