-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate python client #1785
Comments
Hi! Sorry you're having trouble using the gateway. Unfortunately I have no experience generating protobuf files with python, and this is not an issue with the gateway itself. I recommend you find someone who has experience generating python protobuf files to help you. |
If anyone is looking for a package with the generated python code for pip install grpc-gateway-protoc-gen-openapiv2 |
That's great @iamnoah |
@iamnoah I don't understand this file where should I find it "2 - ./gen-openapi-proto.sh will generate the code from grpc-gateway." |
🐛 Bug Report
Python client generation fails using grpio_tools.I am using a_bit_of_everything.proto from examples.
To Reproduce
Expected behavior
Actual Behavior
When trying to import a_bit_of_everything_pb.py I get the following errors,
Even if I generate code for protoc-gen-openapiv2/options/ and protoc-gen-openapiv2/options/openapiv2.proto
and place them in ./grpc/gateway/protoc_gen_openapiv2/options/
I still get:
Your Environment
System:
Darwin mbp-geum 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
Python:
appier==1.20.5
cachetools==4.1.1
certifi==2020.6.20
chardet==3.0.4
google-api==0.1.12
google-api-core==1.23.0
google-auth==1.23.0
googleapis-common-protos==1.52.0
grpcio==1.33.2
grpcio-tools==1.33.2
idna==2.10
protobuf==3.13.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pytz==2020.1
requests==2.24.0
rsa==4.6
six==1.15.0
urllib3==1.25.11
The text was updated successfully, but these errors were encountered: