HUDIY API Example Implementation
Posted: Thu Sep 11, 2025 12:31 pm
I tried to test the examples given in github but I don't know how to setup the proto instruction stated in the https://github.com/wiboma/hudiy/tree/main/examples .
"protoc --python_out=python/common ../api/Api.proto " - I tried to get this going but it always throw errors stating cannot find the path and even I give the absolute path.
protoc --python_out=$HOME/.hudiy/share/examples/api/python/common $HOME/.hudiy/share/api/Api.proto
when trying out this KeyStrokes.py example, i get this error. I'm lost. thanks for any help. Not familiar with protobuffer and TCP... I'm learning!!
raspberrypi@raspberrypi:~/.hudiy/share/examples/api/python $ python3 KeyStrokes.py
Traceback (most recent call last):
File "/home/raspberrypi/.hudiy/share/examples/api/python/KeyStrokes.py", line 6, in <module>
import common.Api_pb2 as hudiy_api
File "/home/raspberrypi/.hudiy/share/examples/api/python/common/Api_pb2.py", line 5, in <module>
from google.protobuf.internal import builder as _builder
ModuleNotFoundError: No module named 'google'
"protoc --python_out=python/common ../api/Api.proto " - I tried to get this going but it always throw errors stating cannot find the path and even I give the absolute path.
protoc --python_out=$HOME/.hudiy/share/examples/api/python/common $HOME/.hudiy/share/api/Api.proto
when trying out this KeyStrokes.py example, i get this error. I'm lost. thanks for any help. Not familiar with protobuffer and TCP... I'm learning!!
raspberrypi@raspberrypi:~/.hudiy/share/examples/api/python $ python3 KeyStrokes.py
Traceback (most recent call last):
File "/home/raspberrypi/.hudiy/share/examples/api/python/KeyStrokes.py", line 6, in <module>
import common.Api_pb2 as hudiy_api
File "/home/raspberrypi/.hudiy/share/examples/api/python/common/Api_pb2.py", line 5, in <module>
from google.protobuf.internal import builder as _builder
ModuleNotFoundError: No module named 'google'