Skip to content

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

@mehrdadfeller

Description

@mehrdadfeller

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/python@3.12/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'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions