Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to solve: executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1 #4

Open
Sicks3c opened this issue Oct 4, 2022 · 0 comments

Comments

@Sicks3c
Copy link

Sicks3c commented Oct 4, 2022

Hello

I have followed the instructions on the README and I get an error while running
sudo docker compose build

Here's the log


❯ sudo docker compose build

[+] Building 14.4s (12/21)
 => [proteus/api internal] load build definition from Dockerfile                                                                                        0.0s
 => => transferring dockerfile: 32B                                                                                                                     0.0s
 => [proteus/worker internal] load build definition from Dockerfile                                                                                     0.0s
 => => transferring dockerfile: 32B                                                                                                                     0.0s
 => [proteus/api internal] load .dockerignore                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                         0.0s
 => [proteus/worker internal] load .dockerignore                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                         0.0s
 => [proteus/api internal] load metadata for docker.io/library/python:3.8-slim-buster                                                                   0.7s
 => [proteus/worker internal] load metadata for docker.io/library/python:3.8-buster                                                                     0.6s
 => CANCELED [proteus/worker 1/9] FROM docker.io/library/python:3.8-buster@sha256:7e7f4c5508b85268a93b573566c8eb321a6fdb466e3b60c663a42300c73a7400     13.6s
 => => resolve docker.io/library/python:3.8-buster@sha256:7e7f4c5508b85268a93b573566c8eb321a6fdb466e3b60c663a42300c73a7400                              0.0s
 => => sha256:021a5bf307169099be7a913863acc6ed9e94527c39035feeb7fe3716d8446427 8.58kB / 8.58kB                                                          0.0s
 => => sha256:e2406a452ad23ba9085e0708f5e15309206a618eb828aa307becbb239414392f 33.55MB / 49.23MB                                                       13.6s
 => => sha256:2d9f7a2d689202901c1750505adb5481f0e4499998084e1df70209fa11f8e8b5 9.77MB / 9.77MB                                                          4.5s
 => => sha256:7e7f4c5508b85268a93b573566c8eb321a6fdb466e3b60c663a42300c73a7400 988B / 988B                                                              0.0s
 => => sha256:f1b8bf26e93f3a89214a9586a59d592de3599acaea59a8d8881f338f0d71b7a7 2.22kB / 2.22kB                                                          0.0s
 => => sha256:91678e90eed09f0ef020521348ac09d6816bafc59c40f4fa0d821de2fb50f881 7.72MB / 7.72MB                                                          3.1s
 => => sha256:c9e42f230da3003e92b349e81764d6c82232541223fa1b17d44222328b0cf201 28.31MB / 52.18MB                                                       13.6s
 => => sha256:9e996482d2db47e84d3f293b7afbb1242e858c121c90867de336da04a59ba7eb 8.39MB / 184.14MB                                                       13.6s
 => [proteus/api 1/5] FROM docker.io/library/python:3.8-slim-buster@sha256:8950916b06e83a260135f49e77aef6b2019c7f5c7a8ffb74a059a123e5ca1623             0.0s
 => [proteus/api internal] load build context                                                                                                           0.0s
 => => transferring context: 93B                                                                                                                        0.0s
 => CACHED [proteus/api 2/5] WORKDIR /python-docker                                                                                                     0.0s
 => CACHED [proteus/api 3/5] COPY requirements.txt requirements.txt                                                                                     0.0s
 => ERROR [proteus/api 4/5] RUN pip3 install -r requirements.txt                                                                                       13.5s
------
 > [proteus/api 4/5] RUN pip3 install -r requirements.txt:
#0 2.224 Collecting pymongo
#0 2.652   Downloading pymongo-4.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (489 kB)
#0 3.328      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 489.7/489.7 KB 716.3 kB/s eta 0:00:00
#0 3.405 Collecting flask
#0 3.474   Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
#0 3.577      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 KB 952.3 kB/s eta 0:00:00
#0 3.705 Collecting redis
#0 3.820   Downloading redis-4.3.4-py3-none-any.whl (246 kB)
#0 4.118      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 246.2/246.2 KB 811.7 kB/s eta 0:00:00
#0 4.256 Collecting apscheduler
#0 4.365   Downloading APScheduler-3.9.1-py2.py3-none-any.whl (59 kB)
#0 4.412      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.5/59.5 KB 1.2 MB/s eta 0:00:00
#0 4.530 Collecting Werkzeug>=2.2.2
#0 4.599   Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
#0 4.809      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 KB 1.1 MB/s eta 0:00:00
#0 4.919 Collecting itsdangerous>=2.0
#0 5.013   Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)
#0 5.142 Collecting importlib-metadata>=3.6.0
#0 5.224   Downloading importlib_metadata-5.0.0-py3-none-any.whl (21 kB)
#0 5.305 Collecting Jinja2>=3.0
#0 5.367   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#0 5.484      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 1.2 MB/s eta 0:00:00
#0 5.590 Collecting click>=8.0
#0 5.720   Downloading click-8.1.3-py3-none-any.whl (96 kB)
#0 5.792      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 1.4 MB/s eta 0:00:00
#0 5.918 Collecting async-timeout>=4.0.2
#0 6.031   Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
#0 6.177 Collecting packaging>=20.4
#0 6.294   Downloading packaging-21.3-py3-none-any.whl (40 kB)
#0 6.334      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 KB 1.2 MB/s eta 0:00:00
#0 6.446 Collecting deprecated>=1.2.3
#0 6.537   Downloading Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
#0 6.651 Collecting tzlocal!=3.*,>=2.0
#0 6.744   Downloading tzlocal-4.2-py3-none-any.whl (19 kB)
#0 6.765 Requirement already satisfied: setuptools>=0.7 in /usr/local/lib/python3.8/site-packages (from apscheduler->-r requirements.txt (line 4)) (57.5.0)
#0 6.925 Collecting pytz
#0 7.029   Downloading pytz-2022.4-py2.py3-none-any.whl (500 kB)
#0 7.549      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 500.8/500.8 KB 980.6 kB/s eta 0:00:00
#0 7.687 Collecting six>=1.4.0
#0 7.782   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#0 7.966 Collecting wrapt<2,>=1.10
#0 8.037   Downloading wrapt-1.14.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (81 kB)
#0 8.106      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.2/81.2 KB 1.2 MB/s eta 0:00:00
#0 8.213 Collecting zipp>=0.5
#0 8.253   Downloading zipp-3.8.1-py3-none-any.whl (5.6 kB)
#0 8.320 Collecting MarkupSafe>=2.0
#0 8.357   Downloading MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
#0 8.451 Collecting pyparsing!=3.0.5,>=2.0.2
#0 8.494   Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
#0 8.540      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 KB 2.4 MB/s eta 0:00:00
#0 8.622 Collecting backports.zoneinfo
#0 8.695   Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
#0 8.727      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 KB 2.4 MB/s eta 0:00:00
#0 8.822   Installing build dependencies: started
#0 12.33   Installing build dependencies: finished with status 'done'
#0 12.33   Getting requirements to build wheel: started
#0 12.48   Getting requirements to build wheel: finished with status 'done'
#0 12.48   Preparing metadata (pyproject.toml): started
#0 12.63   Preparing metadata (pyproject.toml): finished with status 'done'
#0 12.71 Collecting pytz-deprecation-shim
#0 12.78   Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
#0 12.88 Collecting tzdata
#0 12.94   Downloading tzdata-2022.4-py2.py3-none-any.whl (336 kB)
#0 13.17      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 336.7/336.7 KB 1.4 MB/s eta 0:00:00
#0 13.20 Building wheels for collected packages: backports.zoneinfo
#0 13.20   Building wheel for backports.zoneinfo (pyproject.toml): started
#0 13.36   Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'error'
#0 13.36   error: subprocess-exited-with-error
#0 13.36
#0 13.36   × Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
#0 13.36   │ exit code: 1
#0 13.36   ╰─> [37 lines of output]
#0 13.36       running bdist_wheel
#0 13.36       running build
#0 13.36       running build_py
#0 13.36       creating build
#0 13.36       creating build/lib.linux-aarch64-cpython-38
#0 13.36       creating build/lib.linux-aarch64-cpython-38/backports
#0 13.36       copying src/backports/__init__.py -> build/lib.linux-aarch64-cpython-38/backports
#0 13.36       creating build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/_version.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/_common.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/__init__.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       running egg_info
#0 13.36       writing src/backports.zoneinfo.egg-info/PKG-INFO
#0 13.36       writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
#0 13.36       writing requirements to src/backports.zoneinfo.egg-info/requires.txt
#0 13.36       writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
#0 13.36       reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
#0 13.36       reading manifest template 'MANIFEST.in'
#0 13.36       /tmp/pip-build-env-3mlr0qfm/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
#0 13.36         warnings.warn(msg, warning_class)
#0 13.36       warning: no files found matching '*.png' under directory 'docs'
#0 13.36       warning: no files found matching '*.svg' under directory 'docs'
#0 13.36       no previously-included directories found matching 'docs/_build'
#0 13.36       no previously-included directories found matching 'docs/_output'
#0 13.36       adding license file 'LICENSE'
#0 13.36       adding license file 'licenses/LICENSE_APACHE'
#0 13.36       writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
#0 13.36       copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       copying src/backports/zoneinfo/py.typed -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
#0 13.36       running build_ext
#0 13.36       building 'backports.zoneinfo._czoneinfo' extension
#0 13.36       creating build/temp.linux-aarch64-cpython-38
#0 13.36       creating build/temp.linux-aarch64-cpython-38/lib
#0 13.36       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c lib/zoneinfo_module.c -o build/temp.linux-aarch64-cpython-38/lib/zoneinfo_module.o -std=c99
#0 13.36       error: command 'gcc' failed: No such file or directory
#0 13.36       [end of output]
#0 13.36
#0 13.36   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 13.36   ERROR: Failed building wheel for backports.zoneinfo
#0 13.36 Failed to build backports.zoneinfo
#0 13.36 ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
#0 13.37 WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
#0 13.37 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
failed to solve: executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1

I hope I can get some assistance

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant