Open Davidnet opened 10 months ago
Looks like there is a protobuf compat issue causing problems with autogenerated code:
File "/home/davidnet/Documents/personal/aip_problem/.venv/lib/python3.11/site-packages/kfp/pipeline_spec/pipeline_spec_pb2.py", line 38, in <module>
_descriptor.EnumValueDescriptor(
File "/home/davidnet/Documents/personal/aip_problem/.venv/lib/python3.11/site-packages/google/protobuf/descriptor.py", line 780, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot 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).
Environment details
google-cloud-aiplatform
version: 1.36.0Steps to reproduce
python -m pip install google-cloud-aiplatform==1.36.0
Code example
Stack trace
The only way to solve it is to set the enviroment variable, should this be also filled in kfp?
Thanks