https://dagster.io/ logo
Title
a

Andrew Herbst

05/05/2021, 3:50 PM
Hi :dagster: s, I’m bumping into this issue intermittently when reloading user code:
UserWarning: Error loading repository location repositories.py:TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "google/cloud/bigquery_v2/types/encryption_config.proto":
  google/cloud/bigquery_v2/types/encryption_config.proto: A file with this name is already in the pool.
Does anyone know what’s going on here?
Full traceback:
Traceback (most recent call last):
  File "/Users/aherbst/.pyenv/versions/3.9.1/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/aherbst/.pyenv/versions/3.9.1/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/aherbst/Library/Caches/pypoetry/virtualenvs/hca-orchestration-R9twiGY8-py3.9/lib/python3.9/site-packages/dagster/grpc/__main__.py", line 4, in <module>
    grpc_command()
  File "/Users/aherbst/Library/Caches/pypoetry/virtualenvs/hca-orchestration-R9twiGY8-py3.9/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/aherbst/Library/Caches/pypoetry/virtualenvs/hca-orchestration-R9twiGY8-py3.9/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/aherbst/Library/Caches/pypoetry/virtualenvs/hca-orchestration-R9twiGY8-py3.9/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
/Users/aherbst/Library/Caches/pypoetry/virtualenvs/hca-orchestration-R9twiGY8-py3.9/lib/python3.9/site-packages/dagster/cli/workspace/workspace.py:146: UserWarning: Error loading repository location repositories.py:TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "google/cloud/bigquery_v2/types/encryption_config.proto":
  google/cloud/bigquery_v2/types/encryption_config.proto: A file with this name is already in the pool.
Looks like this is a namespace issue with protobuf https://github.com/protocolbuffers/protobuf/issues/3002
running dagit with
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python' dagit
works around the issue for me