-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Question] How to use protoc instead of buf in a python project #237
Comments
hi @jmspereira — if I understand correctly, you're generating the descriptor set to |
Hi @stefanvanburen, in the python_out ( |
hey @jmspereira — I think what you need to do is also generate the |
I can try to do that, but that will add more complexity to the build process of the final package. What is the reason for the compiled validated module not being included in the python package? |
We've considered including it in the past, but that would tie protovalidate-python's releases to a particular |
Ok. I changed the project setup for, during the build, downloading the protovalidate package and adding the validated module to the list of messages to be compiled. Everything is working, thanks! |
Hey everyone, sorry if this issue is duplicated, but I didn't find any that addressed the entire process or I am missing something when using protoc instead of buf. I have a python project with a set of protobuf files, I am compiling them with:
Where the include_imports and the descriptor_set_out were set as documented. However, even when I define the PYTHONPATH to the gen file, still does not work, with the following error:
This is likely because this is not generating the validate_pb2.py but a binary file. So, what is the correct process in order to use protovalidate with protoc in a python project?
Thanks!
The text was updated successfully, but these errors were encountered: