简体   繁体   中英

Error while compiling gRPC protobuffs using python

I can't seem to autogenerate my Proto file to python code. I've managed to do it earlier but now I'm really at a loss. I am currently in the directory where the .proto file resides and I have entered the following into my terminal:

python3 -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out =. filetransfertest.proto

And what I get is =./: No such file or directory

Any help is greatly appreciated since it will help a great deal with my current mental state.

Update:

In the end ist seems like the space between --grpc_python_out and = was the main contributing factor. I also changed the paths to absolute paths

python3 -m grpc_tools.protoc --proto_path=/Users/..../A3/src/protofiles --python_out=. --grpc_python_out=. filetransfertest.proto

Devil in the details and so on...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM