Download nanopb https://github.com/nanopb/nanopb and run in this folder: poetry run /generator/protoc --nanopb_out=. msg.proto