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

docker build fails - Cargo, the Rust package manager, is not installed or is not on PATH #281

Open
claudiunicolaa opened this issue Mar 17, 2024 · 0 comments

Comments

@claudiunicolaa
Copy link

When running docker build -t bc/cert-issuer:1.0 .

I got this:

46.40 Collecting itsdangerous>=0.24 (from connexion<3.0.0->cert-issuer==3.6.0)
46.44   Downloading itsdangerous-2.1.2-py3-none-any.whl.metadata (2.9 kB)
46.56 Collecting attrs>=22.2.0 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
46.63   Downloading attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
46.81 Collecting importlib-resources>=1.4.0 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
46.85   Downloading importlib_resources-6.3.1-py3-none-any.whl.metadata (3.9 kB)
46.97 Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
47.02   Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
47.08 Collecting pkgutil-resolve-name>=1.3.10 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
47.12   Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl.metadata (624 bytes)
47.25 Collecting referencing>=0.28.4 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
47.28   Downloading referencing-0.34.0-py3-none-any.whl.metadata (2.8 kB)
47.79 Collecting rpds-py>=0.7.1 (from jsonschema>=4.0.0->cert-issuer==3.6.0)
47.83   Downloading rpds_py-0.18.0.tar.gz (25 kB)
47.85   Installing build dependencies: started
51.02   Installing build dependencies: finished with status 'done'
51.03   Getting requirements to build wheel: started
51.12   Getting requirements to build wheel: finished with status 'done'
51.12   Preparing metadata (pyproject.toml): started
51.20   Preparing metadata (pyproject.toml): finished with status 'error'
51.21   error: subprocess-exited-with-error
51.21   
51.21   × Preparing metadata (pyproject.toml) did not run successfully.
51.21   │ exit code: 1
51.21   ╰─> [6 lines of output]
51.21       
51.21       Cargo, the Rust package manager, is not installed or is not on PATH.
51.21       This package requires Rust and Cargo to compile extensions. Install it through
51.21       the system's package manager or via https://rustup.rs/
51.21       
51.21       Checking for Rust toolchain....
51.21       [end of output]
51.21   
51.21   note: This error originates from a subprocess, and is likely not a problem with pip.
51.22 error: metadata-generation-failed
51.22 
51.22 × Encountered error while generating package metadata.
51.22 ╰─> See above for output.
51.22 
51.22 note: This is an issue with the package mentioned above, not pip.
51.22 hint: See above for details.
------
Dockerfile:9
--------------------
   8 |     
   9 | >>> RUN apk add --update \
  10 | >>>         bash \
  11 | >>>         ca-certificates \
  12 | >>>         curl \
  13 | >>>         gcc \
  14 | >>>         gmp-dev \
  15 | >>>         libffi-dev \
  16 | >>>         libressl-dev \
  17 | >>>         libxml2-dev \
  18 | >>>         libxslt-dev \
  19 | >>>         linux-headers \
  20 | >>>         make \
  21 | >>>         musl-dev \
  22 | >>>         python2 \
  23 | >>>         python3 \
  24 | >>>         python3-dev \
  25 | >>>         tar \
  26 | >>>     && python3 -m ensurepip \
  27 | >>>     && pip3 install --upgrade pip setuptools \
  28 | >>>     && pip3 install Cython \
  29 | >>>     && pip3 install wheel \
  30 | >>>     && mkdir -p /etc/cert-issuer/data/unsigned_certificates \
  31 | >>>     && mkdir /etc/cert-issuer/data/blockchain_certificates \
  32 | >>>     && mkdir ~/.bitcoin \
  33 | >>>     && echo $'[regtest]\nrpcuser=foo\nrpcpassword=bar\nrpcport=8332\nregtest=1\nrelaypriority=0\nrpcallowip=127.0.0.1\nrpcconnect=127.0.0.1\n' > /root/.bitcoin/bitcoin.conf \
  34 | >>>     && pip3 install /cert-issuer/. \
  35 | >>>     && pip3 install -r /cert-issuer/ethereum_requirements.txt \
  36 | >>>     && rm -r /usr/lib/python*/ensurepip \
  37 | >>>     && rm -rf /var/cache/apk/* \
  38 | >>>     && rm -rf /root/.cache
  39 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add --update         bash         ca-certificates         curl         gcc         gmp-dev         libffi-dev         libressl-dev         libxml2-dev         libxslt-dev         linux-headers         make         musl-dev         python2         python3         python3-dev         tar     && python3 -m ensurepip     && pip3 install --upgrade pip setuptools     && pip3 install Cython     && pip3 install wheel     && mkdir -p /etc/cert-issuer/data/unsigned_certificates     && mkdir /etc/cert-issuer/data/blockchain_certificates     && mkdir ~/.bitcoin     && echo $'[regtest]\\nrpcuser=foo\\nrpcpassword=bar\\nrpcport=8332\\nregtest=1\\nrelaypriority=0\\nrpcallowip=127.0.0.1\\nrpcconnect=127.0.0.1\\n' > /root/.bitcoin/bitcoin.conf     && pip3 install /cert-issuer/.     && pip3 install -r /cert-issuer/ethereum_requirements.txt     && rm -r /usr/lib/python*/ensurepip     && rm -rf /var/cache/apk/*     && rm -rf /root/.cache" did not complete successfully: exit code: 1

macOS 14.1.1 (23B81)

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