-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
BugSomething isn't workingSomething isn't working
Description
Description
After pip installing protovalidate==0.3.1 and trying to import it I get the error ModuleNotFoundError: No module named 'buf'. This was using Python 3.11
Steps to Reproduce
- pip install protovalidate
- In Python REPL for 3.11 run
import protovalidate - The error will show up on that command
Expected Behavior
Be able to import with out error. The reference to buf is internal to protovalidate but it doesn't seem to be in the package
Actual Behavior
Import errors out with ModuleNotFoundError: No module named 'buf'
Screenshots/Logs
>>> import protovalidate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/venv/lib/python3.11/site-packages/protovalidate/__init__.py", line 15, in <module>
from protovalidate import validator
File "/venv/lib/python3.11/site-packages/protovalidate/validator.py", line 19, in <module>
from buf.validate import expression_pb2 # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'buf'
Environment
- Operating System: macOS M2 chip
- Version: Sonoma 14.3.1
- Compiler/Toolchain:
- Protobuf Compiler & Version:
- Protoc-gen-validate Version: 0.4.2
- Protovalidate Version: 0.3.1
Possible Solution
Additional Context
TakumaKurosawa, nghialv and chasenioemcfarlane
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working