Skip to content

python runner failed to start the function #379

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions