Closed dsclassen closed 1 month ago
getting this error when I attempt to build the backend image:
[+] Building 3.1s (10/12) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 635B 0.0s => [internal] load metadata for docker.io/library/python:3.11-slim-bullseye 0.3s => [internal] load .dockerignore 0.0s => => transferring context: 120B 0.0s => [internal] load build context 0.0s => => transferring context: 726B 0.0s => [1/8] FROM docker.io/library/python:3.11-slim-bullseye@sha256:a24e509d2f7055675a39612b7efc230af72da23a8c03127b8db2d60e807f716f 0.0s => CACHED [2/8] WORKDIR /srv/app 0.0s => CACHED [3/8] RUN pip install --upgrade pip 0.0s => CACHED [4/8] COPY ./requirements.txt . 0.0s => CACHED [5/8] RUN apt-get update && apt-get install -y gcc netcat libpq-dev postgresql-client && apt-get clean 0.0s => ERROR [6/8] RUN pip install -r requirements.txt 2.7s ------ > [6/8] RUN pip install -r requirements.txt: 1.391 Collecting Django>=5.0 (from -r requirements.txt (line 1)) 1.525 Downloading Django-5.0.6-py3-none-any.whl.metadata (4.1 kB) 1.563 Collecting djangorestframework>=3.14.0 (from -r requirements.txt (line 2)) 1.582 Downloading djangorestframework-3.15.1-py3-none-any.whl.metadata (11 kB) 1.610 Collecting djangorestframework-simplejwt>=5.3.1 (from -r requirements.txt (line 3)) 1.630 Downloading djangorestframework_simplejwt-5.3.1-py3-none-any.whl.metadata (4.3 kB) 1.676 Collecting psycopg2>=2.9.9 (from -r requirements.txt (line 4)) 1.698 Downloading psycopg2-2.9.9.tar.gz (384 kB) 1.756 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 384.9/384.9 kB 6.8 MB/s eta 0:00:00 1.793 Preparing metadata (setup.py): started 2.406 Preparing metadata (setup.py): finished with status 'done' 2.435 Collecting pytest-asyncio>=0.23.2 (from -r requirements.txt (line 5)) 2.454 Downloading pytest_asyncio-0.23.7-py3-none-any.whl.metadata (3.9 kB) 2.485 Collecting pytest-django>=4.7.0 (from -r requirements.txt (line 6)) 2.504 Downloading pytest_django-4.8.0-py3-none-any.whl.metadata (8.3 kB) 2.583 ERROR: Ignored the following versions that require a different python version: 4.4.0 Requires-Python >=3.6,<3.9 2.583 ERROR: Could not find a version that satisfies the requirement request==2.31.0 (from versions: none) 2.583 ERROR: No matching distribution found for request==2.31.0 ------ Dockerfile:23 -------------------- 21 | 22 | # install temp dependencies for build of pyscopg2 etc 23 | >>> RUN pip install -r requirements.txt 24 | 25 | # copy entrypoint.sh -------------------- ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
will do
closing this issue as it seems that main https://github.com/lbl-cbg/t5-commons/commit/ee7165de8b6acc6566a2aed6591dd69268c3267b builds without error
main
getting this error when I attempt to build the backend image: