Skip to content

python3 serverside build fails #2

Description

@zimmermant

When I run docker compose --profile python3 up --build I get the following error: target python3-shell: failed to solve: process "/bin/sh -c pip3 install -r /tmp/requirements.txt --ignore-installed" did not complete successfully: exit code: 1
I get a similar error for Pygame

R install fine and works and Java installs fine.

Docker 4.63 on MacOS 15.7.4

Below is the command line output

Building 75.7s (32/39)
=> [internal] load local bake definitions 0.0s
=> => reading from stdin 1.66kB 0.0s
=> [nginx internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 348B 0.0s
=> [pygame-manager internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 432B 0.0s
=> [pygame-worker internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.13kB 0.0s
=> [nginx internal] load metadata for docker.io/library/nginx:alpine 0.4s
=> [pygame-manager internal] load metadata for docker.io/library/node:18-slim 0.4s
=> [pygame-worker internal] load metadata for docker.io/library/ubuntu:22.04 0.6s
=> [nginx internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [nginx 1/4] FROM docker.io/library/nginx:alpine@sha256:f46cb72c7df02710e693e863a983ac42f6a9579058a59a35f1ae36c9958e4ce0 0.0s
=> => resolve docker.io/library/nginx:alpine@sha256:f46cb72c7df02710e693e863a983ac42f6a9579058a59a35f1ae36c9958e4ce0 0.0s
=> [nginx internal] load build context 0.0s
=> => transferring context: 32B 0.0s
=> CACHED [nginx 2/4] RUN rm /etc/nginx/conf.d/default.conf 0.0s
=> CACHED [nginx 3/4] COPY nginx.conf /etc/nginx/nginx.conf 0.0s
=> CACHED [nginx 4/4] RUN mkdir -p /var/www/generated/python /var/www/generated/java /var/www/generated/r 0.0s
=> [nginx] exporting to image 0.1s
=> => exporting layers 0.0s
=> => exporting manifest sha256:489fedc451bdb24ecfdc2be26d854c2f4923f65037018491dc5873c7427a96a6 0.0s
=> => exporting config sha256:7402c1c0702387c232c0f69728fdb56f39c4e758a2b2fe594a422ffd56f7d8bb 0.0s
=> => exporting attestation manifest sha256:40d5f47201741b1aa93b46bc07bac5e264827b71eb71030082845692a457490f 0.0s
=> => exporting manifest list sha256:72e3758f3fa0e458c3948153bb3940694b53df8176cd47b5447347add96c8ee5 0.0s
=> => naming to docker.io/library/serverside-nginx:latest 0.0s
=> => unpacking to docker.io/library/serverside-nginx:latest 0.0s
=> [pygame-manager internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [pygame-manager 1/7] FROM docker.io/library/node:18-slim@sha256:f9ab18e354e6855ae56ef2b290dd225c1e51a564f87584b9bd21dd651838830e 0.0s
=> => resolve docker.io/library/node:18-slim@sha256:f9ab18e354e6855ae56ef2b290dd225c1e51a564f87584b9bd21dd651838830e 0.0s
=> [pygame-manager internal] load build context 0.0s
=> => transferring context: 9.39kB 0.0s
=> CACHED [pygame-manager 2/7] WORKDIR /app 0.0s
=> CACHED [pygame-manager 3/7] COPY package*.json ./ 0.0s
=> CACHED [pygame-manager 4/7] RUN npm install --production 0.0s
=> CACHED [pygame-manager 5/7] COPY manager.js ./ 0.0s
=> CACHED [pygame-manager 6/7] COPY config/ ./config/ 0.0s
=> CACHED [pygame-manager 7/7] RUN mkdir -p /tmp/pygame-generated 0.0s
=> [pygame-manager] exporting to image 0.1s
=> => exporting layers 0.0s
=> => exporting manifest sha256:229f2e984ed101c6b8bb8038e746e15e689d90e652bd18604e638b1b14cfc305 0.0s
=> => exporting config sha256:6d8a91c875cb70b16833e8531bf165d371cc99f86eb5e17ad11e5aad59b834dd 0.0s
=> => exporting attestation manifest sha256:458b7e70e1ccfb5065cb5c35338dd0785ff2c8449d5fd2019fc9cff92dcd9c4c 0.0s
=> => exporting manifest list sha256:c15052b97d35f2d02989c11f58a509600fe9dc8315ac584029cf995cd65482a4 0.0s
=> => naming to docker.io/library/serverside-pygame-manager:latest 0.0s
=> => unpacking to docker.io/library/serverside-pygame-manager:latest 0.0s
=> [nginx] resolving provenance for metadata file 0.0s
=> [pygame-manager] resolving provenance for metadata file 0.0s
=> [pygame-worker internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [pygame-worker 1/11] FROM docker.io/library/ubuntu:22.04@sha256:ce4a593b4e323dcc3dd728e397e0a866a1bf516a1b7c31d6aa06991baec4f2e0 0.0s
=> => resolve docker.io/library/ubuntu:22.04@sha256:ce4a593b4e323dcc3dd728e397e0a866a1bf516a1b7c31d6aa06991baec4f2e0 0.0s
=> [pygame-worker internal] load build context 0.0s
=> => transferring context: 400B 0.0s
=> [pygame-worker 2/11] RUN apt-get update && apt-get install -y python3 python3-pip python3-dev python3-tk tightvncserver xvfb x11-xserver-utils x11-apps 61.4s
=> [pygame-worker 3/11] COPY requirements.txt /tmp/requirements.txt 0.1s
=> ERROR [pygame-worker 4/11] RUN pip3 install --no-cache-dir -r /tmp/requirements.txt 13.2s

[pygame-worker 4/11] RUN pip3 install --no-cache-dir -r /tmp/requirements.txt:
0.602 Collecting pygame==2.5.2
0.811 Downloading pygame-2.5.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.6 MB)
1.400 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.6/13.6 MB 26.2 MB/s eta 0:00:00
1.453 Collecting beautifulsoup4==4.11.1
1.474 Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
1.478 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 KB 54.8 MB/s eta 0:00:00
1.766 Collecting lxml==4.9.1
1.788 Downloading lxml-4.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (6.6 MB)
1.869 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 84.1 MB/s eta 0:00:00
2.115 Collecting numpy==1.23.2
2.139 Downloading numpy-1.23.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.9 MB)
2.296 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 84.2 MB/s eta 0:00:00
2.475 Collecting scipy==1.9.0
2.495 Downloading scipy-1.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (40.1 MB)
2.934 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.1/40.1 MB 87.9 MB/s eta 0:00:00
3.175 Collecting matplotlib==3.5.3
3.198 Downloading matplotlib-3.5.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.7 MB)
3.337 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.7/11.7 MB 83.4 MB/s eta 0:00:00
3.405 Collecting pycolors==0.1.2
3.430 Downloading pycolors-0.1.2.tar.gz (7.3 kB)
3.434 Preparing metadata (setup.py): started
3.524 Preparing metadata (setup.py): finished with status 'done'
3.670 Collecting pandas==1.4.3
3.691 Downloading pandas-1.4.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.9 MB)
3.793 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 111.4 MB/s eta 0:00:00
3.865 Collecting pygal==3.0.0
3.885 Downloading pygal-3.0.0-py2.py3-none-any.whl (129 kB)
3.890 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.4/129.4 KB 45.6 MB/s eta 0:00:00
3.944 Collecting pygal_maps_world==1.0.2
3.967 Downloading pygal_maps_world-1.0.2.tar.gz (270 kB)
3.974 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 270.8/270.8 KB 63.2 MB/s eta 0:00:00
3.990 Preparing metadata (setup.py): started
4.079 Preparing metadata (setup.py): finished with status 'done'
4.203 Collecting pygal_maps_fr==1.1.0
4.224 Downloading pygal_maps_fr-1.1.0-py3-none-any.whl (412 kB)
4.232 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 412.6/412.6 KB 94.5 MB/s eta 0:00:00
4.291 Collecting pygal_maps_ch==1.0.1
4.312 Downloading pygal_maps_ch-1.0.1.tar.gz (57 kB)
4.315 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.7/57.7 KB 228.7 MB/s eta 0:00:00
4.321 Preparing metadata (setup.py): started
4.407 Preparing metadata (setup.py): finished with status 'done'
4.469 Collecting cairosvg==2.5.2
4.492 Downloading CairoSVG-2.5.2-py3-none-any.whl (45 kB)
4.496 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.8/45.8 KB 38.2 MB/s eta 0:00:00
4.553 Collecting tinycss==0.4
4.578 Downloading tinycss-0.4.tar.gz (87 kB)
4.583 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.8/87.8 KB 30.3 MB/s eta 0:00:00
4.595 Preparing metadata (setup.py): started
4.686 Preparing metadata (setup.py): finished with status 'done'
4.739 Collecting cssselect==1.1.0
4.762 Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
4.857 Collecting bokeh==2.4.3
4.882 Downloading bokeh-2.4.3-py3-none-any.whl (18.5 MB)
5.091 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.5/18.5 MB 85.2 MB/s eta 0:00:00
5.258 Collecting scikit-learn==1.1.2
5.282 Downloading scikit_learn-1.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.1 MB)
5.609 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.1/30.1 MB 90.7 MB/s eta 0:00:00
5.697 Collecting patsy==0.5.2
5.718 Downloading patsy-0.5.2-py2.py3-none-any.whl (233 kB)
5.722 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 233.7/233.7 KB 82.4 MB/s eta 0:00:00
5.831 Collecting statsmodels==0.13.2
5.854 Downloading statsmodels-0.13.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB)
5.989 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 72.6 MB/s eta 0:00:00
6.034 Collecting requests-oauthlib==1.3.0
6.060 Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
6.118 Collecting pronouncing==0.2.0
6.141 Downloading pronouncing-0.2.0.tar.gz (17 kB)
6.148 Preparing metadata (setup.py): started
6.233 Preparing metadata (setup.py): finished with status 'done'
6.284 Collecting names==0.3.0
6.307 Downloading names-0.3.0.tar.gz (789 kB)
6.321 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 789.1/789.1 KB 68.6 MB/s eta 0:00:00
6.350 Preparing metadata (setup.py): started
6.421 Preparing metadata (setup.py): finished with status 'done'
6.477 Collecting pycep-correios==5.0.0
6.501 Downloading pycep_correios-5.0.0-py2.py3-none-any.whl (7.1 kB)
6.564 Collecting seaborn==0.11.2
6.586 Downloading seaborn-0.11.2-py3-none-any.whl (292 kB)
6.593 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 292.8/292.8 KB 71.9 MB/s eta 0:00:00
6.654 Collecting exifread==3.0.0
6.675 Downloading ExifRead-3.0.0-py3-none-any.whl (40 kB)
6.679 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.4/40.4 KB 181.5 MB/s eta 0:00:00
6.777 Collecting biopython==1.79
6.800 Downloading biopython-1.79.tar.gz (16.7 MB)
6.978 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 95.4 MB/s eta 0:00:00
7.572 Preparing metadata (setup.py): started
7.678 Preparing metadata (setup.py): finished with status 'done'
7.737 Collecting ete3==3.1.2
7.759 Downloading ete3-3.1.2.tar.gz (4.7 MB)
7.818 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 84.5 MB/s eta 0:00:00
7.955 Preparing metadata (setup.py): started
8.075 Preparing metadata (setup.py): finished with status 'done'
8.179 Collecting mysql-connector-python==8.0.26
8.202 Downloading mysql_connector_python-8.0.26-py2.py3-none-any.whl (324 kB)
8.209 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 324.8/324.8 KB 79.5 MB/s eta 0:00:00
8.275 Collecting sympy==1.10.1
8.301 Downloading sympy-1.10.1-py3-none-any.whl (6.4 MB)
8.360 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 110.6 MB/s eta 0:00:00
8.465 Collecting pytest==7.1.2
8.491 Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
8.495 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 KB 105.0 MB/s eta 0:00:00
8.568 Collecting networkx==2.6.3
8.590 Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
8.611 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 103.7 MB/s eta 0:00:00
8.938 Collecting Cython==0.29.32
8.959 Downloading Cython-0.29.32-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (1.8 MB)
8.978 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 104.3 MB/s eta 0:00:00
9.070 Collecting basemap==1.3.6
9.089 Downloading basemap-1.3.6.zip (156 kB)
9.094 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.4/156.4 KB 51.0 MB/s eta 0:00:00
9.169 Installing build dependencies: started
12.91 Installing build dependencies: finished with status 'done'
12.91 Getting requirements to build wheel: started
13.01 Getting requirements to build wheel: finished with status 'done'
13.01 ERROR: Some build dependencies for basemap==1.3.6 from https://files.pythonhosted.org/packages/9d/7f/52d4e666c21e8a07671e343f7ce7fb15d082ada4557e5c6bd41b05c6394e/basemap-1.3.6.zip#sha256=3789fd5092ff90610f9712d431f186c0c0f7feb51dcaac7b60191b818ee77b44 (from -r /tmp/requirements.txt (line 39)) conflict with the backend dependencies: cython==3.0.12 is incompatible with cython<3.0,>=0.29; python_version == "2.6", cython==3.0.12 is incompatible with cython<3.0,>=0.29; python_version == "2.7", cython==3.0.12 is incompatible with cython<3.0,>=0.29; python_version == "3.3", cython==3.0.12 is incompatible with cython<3.0,>=0.29; python_version == "3.4".

[+] up 0/3
⠙ Image serverside-pygame-manager Building 75.8s
⠙ Image serverside-pygame-worker Building 75.8s
⠙ Image serverside-nginx Building 75.8s
Dockerfile:46


44 | # Install Python packages

45 | COPY requirements.txt /tmp/requirements.txt

46 | >>> RUN pip3 install --no-cache-dir -r /tmp/requirements.txt

47 |

48 | # Create non-root user for running code


target pygame-worker: failed to solve: process "/bin/sh -c pip3 install --no-cache-dir -r /tmp/requirements.txt" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions