-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hi there,
Not sure if this is expected, but importing CARLA fails when protobuf>3.20.x
is installed (see below). I've tried various default pyenv version (3.7.x) and they all shipped with protobuf>3.20.x
, that's how I came across this.
Many thanks!
TypeError Traceback (most recent call last)
/var/folders/zn/yz12tx_128ggf8_ln3nn69p00000gn/T/ipykernel_93359/2127982349.py in <module>
3 sys.path.append('..')
4
----> 5 from carla.recourse_methods import Dice, Wachter
6 from copy import deepcopy
7 # from model_shifts import (DynamicCsvCatalog,
~/.pyenv/versions/3.7.10/lib/python3.7/site-packages/carla/__init__.py in <module>
16 from ._version import __version__
17 from .data import Data, DataCatalog
---> 18 from .evaluation import Benchmark
19 from .models import MLModel, MLModelCatalog
20 from .recourse_methods import RecourseMethod
~/.pyenv/versions/3.7.10/lib/python3.7/site-packages/carla/evaluation/__init__.py in <module>
1 # flake8: noqa
2
----> 3 from .benchmark import Benchmark
4 from .distances import get_distances
5 from .nearest_neighbours import yNN
~/.pyenv/versions/3.7.10/lib/python3.7/site-packages/carla/evaluation/benchmark.py in <module>
6
...
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Metadata
Metadata
Assignees
Labels
No labels