TRI-ML / dgp

ML Dataset Governance Policy for Autonomous Vehicle Datasets
https://tri-ml.github.io/dgp/
MIT License
95 stars 62 forks source link

ERROR: Cannot install -r requirements.txt (line 2) and botocore==1.12.79 because these package versions have conflicting dependencies. #9

Closed tlalexander closed 3 years ago

tlalexander commented 3 years ago

Hello!

When installing https://github.com/TRI-ML/packnet-sfm

I got the error:

Step 38/47 : RUN git clone https://github.com/TRI-ML/dgp.git     && cd dgp     && pip3 install -r requirements.txt
 ---> Running in 8fe2dbd1205b
Cloning into 'dgp'...
Requirement already satisfied: torch==1.4.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 17)) (1.4.0)
Requirement already satisfied: torchvision==0.5.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 18)) (0.5.0)
Collecting attrs==19.1.0
  Downloading attrs-19.1.0-py2.py3-none-any.whl (35 kB)
Collecting awscli==1.16.192
  Downloading awscli-1.16.192-py2.py3-none-any.whl (1.7 MB)
Requirement already satisfied: docutils>=0.10 in /usr/local/lib/python3.6/dist-packages (from awscli==1.16.192->-r requirements.txt (line 2)) (0.15.2)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 2) and botocore==1.12.79 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

The conflict is caused by:
    The user requested botocore==1.12.79
    awscli 1.16.192 depends on botocore==1.12.182

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

The command '/bin/bash -cu git clone https://github.com/TRI-ML/dgp.git     && cd dgp     && pip3 install -r requirements.txt' returned a non-zero code: 1

So it looks like this needs a bit of a fix!

stefgina commented 3 years ago

Many people have this issue, because you need awscli in order to build packnet-sfm. I can verify that awscli works well with the following changes in the dgp requirements.txt :

numpy==1.16.3
boto3==1.9.182
botocore==1.12.182
surfii3z commented 3 years ago

This issue still exists.

quincy-kh-chen commented 3 years ago

Hello @tlalexander, we just release DGP v1.0 This issue should be fixed. Could you try again? Thanks.