practical-recommender-systems / moviegeek

A django website used in the book Practical Recommender Systems to illustrate how recommender algorithms can be implemented.
MIT License
901 stars 360 forks source link

dependency conflict: botocore and urlib3 #70

Open triumph1 opened 1 year ago

triumph1 commented 1 year ago

Hi! thanks for the great book :) I think I found a problem while

pip install -r requirements.txt

image
INFO: pip is looking at multiple versions of boto3 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of boto to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of appdirs to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 4) and urllib3==1.26.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested urllib3==1.26.5
    botocore 1.12.45 depends on urllib3<1.25 and >=1.20; python_version >= "3.4"

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/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 21.3.1; however, version 23.0.1 is available.
You should consider upgrading via the '/Users/a202101054/PycharmProjects/moviegeek/venv/bin/python -m pip install --upgrade pip' command.
stagOak commented 1 year ago

Hi triumph1. I got the same error yesterday. I relaxed the requirement for urllib3 from urllib3==1.26.5 to just urllib3 without a version number and made it through the docker build. This might work for you.

in8inity commented 1 year ago

Had same problem in spite of requirement.txt show explicit 1.26.5 version for urllib3. The issue was in co-dependencies. I was able to activate virtual environmet with kiwisolver=1.3.2 and matplotlib = 3.4.3. I haven't run the project yet, but at least it starts environment without issues.