Skip to content
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

betterproto/client.py using deprecated proto buffer definition #1

Open
mehrdadfeller opened this issue Jan 1, 2025 · 0 comments
Open

Comments

@mehrdadfeller
Copy link

it seems like we no longer have NotificationDispatchItemOperation in the new definitions in the beta release version ending in 10148. I wonder what it is replaced with.

betterproto git:(main) ✗ poe compile          
Poe => sh -c 'mkdir -p generated && python -m grpc_tools.protoc -I ../../proto/ --python_betterproto_opt=typing.310 --python_betterproto_out=generated/ ../../proto/store/v1/store.proto'
Writing init.py
Writing package_info/__init__.py
Writing package_info/v1/__init__.py
Writing store/__init__.py
Writing store/v1/__init__.py
Writing ubo/__init__.py
Writing ubo/v1/__init__.py
betterproto git:(main) ✗ GRPC_HOST=192.168.0.209 poe start
Poe => poetry run main
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/homebrew/Cellar/[email protected]/3.12.7/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/martin/Documents/ubo-repos/ubo-grpc-clients/python/betterproto/client.py", line 25, in <module>
    from generated.ubo.v1 import (
ImportError: cannot import name 'NotificationDispatchItemOperation' from 'generated.ubo.v1' (/Users/martin/Documents/ubo-repos/ubo-grpc-clients/python/betterproto/generated/ubo/v1/__init__.py). Did you mean: 'NotificationDispatchItem'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant