Skip to content

python runner failed to start the function #379

@freeznet

Description

@freeznet
File "/usr/local/lib/python3.8/dist-packages/google/protobuf/descriptor.py", line 755, in __new__
[418](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:419)
    _message.Message._CheckCalledFromGeneratedFile()
[419](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:420)
TypeError: Descriptors cannot not be created directly.
[420](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:421)
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.
[421](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:422)
If you cannot immediately regenerate your protos, some other possible workarounds are:
[422](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:423)
 1. Downgrade the protobuf package to 3.20.x or lower.
[423](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:424)
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
[424](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:425)

[425](https://github.com/streamnative/function-mesh/runs/6691589942?check_suite_focus=true#step:12:426)
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions