osmcha-frontend
osmcha-frontend copied to clipboard
docker compose build: "ERROR: Could not find a version that satisfies the requirement django-core-headers==3.7.0"
I'm submitting a bug report
Brief Description
I'm trying to build using the docker-compose yml file provided with the repo for https://github.com/willemarcel/osmcha-django. When building, I get an error about not satisfying dependencies for django-core-headers==3.7.0.
What is the current behaviour, (attach relevant screenshots) ?
When running 'docker compose build' after cloning the osmcha-backend repo, I get an error about not satisfying dependencies for django-core-headers==3.7.0
I am running Docker on Windows 10 using Windows Subsystem for Linux 2.
What is the expected behaviour ?
'docker compose build' builds the image with no errors
When does this occur ?
After cloning the repo and running 'docker compose build'
How do we replicate the issue ?
- Clone https://github.com/willemarcel/osmcha-django
- Start up an Ubuntu shell (or just a terminal if running Linux natively) and navigate to the repository
- Run 'docker compose build'
- Error will appear:
> [osmcha-django_django 4/10] RUN pip install -r /requirements/production.txt && groupadd -r django && useradd -r -g django django:
#28 1.347 DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
#28 1.610 Collecting django==2.2.27
#28 1.678 Downloading Django-2.2.27-py3-none-any.whl (7.5 MB)
#28 5.668 Collecting django-environ==0.4.5
#28 5.677 Downloading django_environ-0.4.5-py2.py3-none-any.whl (21 kB)
#28 5.717 Collecting django-braces==1.14.0
#28 5.727 Downloading django_braces-1.14.0-py2.py3-none-any.whl (14 kB)
#28 5.762 Collecting django-model-utils==4.2.0
#28 5.775 Downloading django_model_utils-4.2.0-py3-none-any.whl (33 kB)
#28 5.812 Collecting social-auth-app-django==4.0.0
#28 5.820 Downloading social_auth_app_django-4.0.0-py3-none-any.whl (24 kB)
#28 5.861 Collecting social-auth-core==3.3.3
#28 5.881 Downloading social_auth_core-3.3.3-py3-none-any.whl (326 kB)
#28 6.016 Collecting djangorestframework==3.11.2
#28 6.027 Downloading djangorestframework-3.11.2-py3-none-any.whl (911 kB)
#28 6.203 Collecting djangorestframework-gis==0.17
#28 6.213 Downloading djangorestframework_gis-0.17-py2.py3-none-any.whl (21 kB)
#28 6.244 Collecting djangorestframework-csv==2.1.1
#28 6.252 Downloading djangorestframework-csv-2.1.1.tar.gz (9.4 kB)
#28 6.555 Collecting django-filter==2.4.0
#28 6.561 Downloading django_filter-2.4.0-py3-none-any.whl (73 kB)
#28 6.611 ERROR: Could not find a version that satisfies the requirement django-cors-headers==3.7.0 (from -r /requirements/base.txt (line 23)) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.10, 0.11, 0.12, 0.13, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0, 3.4.0, 3.5.0)
#28 6.611 ERROR: No matching distribution found for django-cors-headers==3.7.0 (from -r /requirements/base.txt (line 23))
#28 6.730 WARNING: You are using pip version 20.2.3; however, version 20.3.4 is available.
#28 6.730 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c pip install -r /requirements/production.txt && groupadd -r django && useradd -r -g django django]: exit code: 1
Please tell us about your environment:
Windows 10, running Docker Desktop 4.4.4 with WSL2 integration. Docker compose is invoked from an Ubuntu WSL2 shell under Windows 10.