-
Notifications
You must be signed in to change notification settings - Fork 62
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
Import fails with protobuf>3.20.x
#173
Comments
Thanks, just downgrading that library worked. Related to this, are there any plans to bump up compatibility to more recent Python versions? |
As far as I know, any Python 3.x version is backwards compatible with other Python 3.x version. So you can use CARLA with more recent Python versions if you want. |
Hmmm I run into trouble when trying to do that. I've just tried it with Python 3.8 as follows: pyenv install 3.8.1
pyenv local 3.8.1 Then running Collecting carla-recourse
Using cached carla_recourse-0.0.5-py3-none-any.whl (138 kB)
Collecting pandas==1.1.4
Downloading pandas-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl (10.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 9.0 MB/s eta 0:00:00
Collecting ipython
Using cached ipython-8.4.0-py3-none-any.whl (750 kB)
Collecting causalgraphicalmodels==0.0.4
Using cached causalgraphicalmodels-0.0.4-py3-none-any.whl (11 kB)
Collecting dice-ml==0.5
Using cached dice_ml-0.5-py3-none-any.whl (224 kB)
Collecting scikit-learn==0.23.2
Downloading scikit_learn-0.23.2-cp38-cp38-macosx_10_9_x86_64.whl (7.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 9.0 MB/s eta 0:00:00
Collecting mip==1.12.0
Using cached mip-1.12.0-py3-none-any.whl (47.1 MB)
Collecting torch==1.7.0
Downloading torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl (108.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.1/108.1 MB 5.8 MB/s eta 0:00:00
Collecting xgboost==1.4.2
Using cached xgboost-1.4.2-py3-none-macosx_10_14_x86_64.macosx_10_15_x86_64.macosx_11_0_x86_64.whl (1.2 MB)
Collecting lime==0.2.0.1
Using cached lime-0.2.0.1.tar.gz (275 kB)
Preparing metadata (setup.py) ... done
Collecting recourse==1.0.0
Using cached recourse-1.0.0-py3-none-any.whl (45 kB)
Collecting torchvision==0.8.1
Downloading torchvision-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 7.6 MB/s eta 0:00:00
Collecting h5py==2.10.0
Downloading h5py-2.10.0-cp38-cp38-macosx_10_9_x86_64.whl (3.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 9.1 MB/s eta 0:00:00
Collecting carla-recourse
Using cached carla_recourse-0.0.4-py3-none-any.whl (97 kB)
ERROR: Cannot install carla-recourse==0.0.4 and carla-recourse==0.0.5 because these package versions have conflicting dependencies.
The conflict is caused by:
carla-recourse 0.0.5 depends on tensorflow==1.14.0
carla-recourse 0.0.4 depends on tensorflow==1.14.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts |
Looks like Python 3.8 requires TensorFlow 2.2 or later (see here). |
I wasn't aware of that, thanks for bringing that up. At some point we would like to remove the dependence on |
No worries, perhaps I can have a look myself. I'm using CARLA for a project that depends on another package which itself needs Python >=3.8, so the two are not compatible at the moment. |
For anyone who is looking for a proper solution, |
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 withprotobuf>3.20.x
, that's how I came across this.Many thanks!
The text was updated successfully, but these errors were encountered: