Skip to content

Python-plugin example issue #245

@robostoneDK

Description

@robostoneDK

Hi
Is there a practical reason why the python-plugin example does not work?
This issue has been raised a couple of times since 2020 (#143 and #157), and the exact same issue exists today.
Just wondering if it is a dead-end, or if it actually works with a little tweaking?

This is the error that I get:

root@11e242d71727:/go-plugin/examples/grpc# ./kv put hello world
2023-03-23T13:41:54.318Z [DEBUG] plugin: starting plugin: path=/bin/sh args=[sh, -c, "python3 plugin-python/plugin.py"]
2023-03-23T13:41:54.318Z [DEBUG] plugin: plugin started: path=/bin/sh pid=3465
2023-03-23T13:41:54.318Z [DEBUG] plugin: waiting for RPC address: path=/bin/sh
2023-03-23T13:41:54.375Z [DEBUG] plugin: using plugin: version=1
2023-03-23T13:41:54.375Z [TRACE] plugin.stdio: waiting for stdio data
2023-03-23T13:41:54.375Z [DEBUG] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = Method not found!"
root@11e242d71727:/go-plugin/examples/grpc# cat kv_hello
b'world'

root@11e242d71727:/go-plugin/examples/grpc#
root@11e242d71727:/go-plugin/examples/grpc# ./kv get hello
2023-03-23T13:51:46.314Z [DEBUG] plugin: starting plugin: path=/bin/sh args=[sh, -c, "python3 plugin-python/plugin.py"]
2023-03-23T13:51:46.314Z [DEBUG] plugin: plugin started: path=/bin/sh pid=3501
2023-03-23T13:51:46.314Z [DEBUG] plugin: waiting for RPC address: path=/bin/sh
2023-03-23T13:51:46.372Z [DEBUG] plugin: using plugin: version=1
2023-03-23T13:51:46.372Z [TRACE] plugin.stdio: waiting for stdio data
2023-03-23T13:51:46.372Z [DEBUG] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = Method not found!"
b'world'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions