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'
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'