Closed hopeswiller closed 3 years ago
Alpine 3.10 is too old. You need at least Alpine 3.12.
isn't there any other suggestion as the image I'm using doesn't have the alpine3.12 yet
Please open a bug report with @tiangolo and ask Sebastián Ramírez to provide a newer image or to use a distribution that supports manylinux wheels. Alpine is problematic.
You can install Rust by following these instructions, instead of using the apk package: https://www.rust-lang.org/tools/install
Please open a bug report with @tiangolo and ask Sebastián Ramírez to provide a newer image or to use a distribution that supports manylinux wheels. Alpine is problematic.
alright noted
You can install Rust by following these instructions, instead of using the apk package: https://www.rust-lang.org/tools/install
that's exactly what im doing here
RUN yes | curl --verbose --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
in my dockerfile
You're also installing cargo from apk, which places it first on your PATH.
On Sat, Mar 13, 2021 at 9:09 AM elmentdave @.***> wrote:
You can install Rust by following these instructions, instead of using the apk package: https://www.rust-lang.org/tools/install
that's exactly what im doing here
RUN yes | curl --verbose --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
in my dockerfile
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyca/cryptography/issues/5914#issuecomment-798422017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGBH5DROYXYPLYNBKGI3TDNWY7ANCNFSM4ZDZJIJA .
-- All that is necessary for evil to succeed is for good people to do nothing.
I've taken out cargo and using the installation as said in their docs but it still fails
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-alpine3.10
RUN yes | curl --verbose --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
RUN apk add --update \
build-base \
python3-dev \
musl-dev \
libffi-dev \
openssl-dev \
postgresql-dev=11.11-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.10/main
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip
...
logs now
.....
error: can't find Rust compiler
#12 197.4
#12 197.4 If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
#12 197.4
#12 197.4 To update pip, run:
#12 197.4
#12 197.4 pip install --upgrade pip
#12 197.4
#12 197.4 and then retry package installation.
#12 197.4
#12 197.4 If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
#12 197.4
#12 197.4 This package requires Rust >=1.41.0.
#12 197.4 ----------------------------------------
#12 197.4 ERROR: Failed building wheel for cryptography
.....
You need to make sure Rust is on your PATH: https://github.com/pyca/infra/blob/main/runners/alpine/Dockerfile#L18
On Sat, Mar 13, 2021 at 10:27 AM elmentdave @.***> wrote:
I've taken out cargo and using the installation as said in their docs but it still fails
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-alpine3.10
RUN yes | curl --verbose --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
RUN apk add --update \ build-base \ python3-dev \ musl-dev \ libffi-dev \ openssl-dev \ postgresql-dev=11.11-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.10/main
WORKDIR /app COPY requirements.txt requirements.txt
...
logs now
..... error: can't find Rust compiler
12 197.4
12 197.4 If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
12 197.4
12 197.4 To update pip, run:
12 197.4
12 197.4 pip install --upgrade pip
12 197.4
12 197.4 and then retry package installation.
12 197.4
12 197.4 If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
12 197.4
12 197.4 This package requires Rust >=1.41.0.
12 197.4 ----------------------------------------
12 197.4 ERROR: Failed building wheel for cryptography
.....
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyca/cryptography/issues/5914#issuecomment-798510588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGBESNBISLJXAUKRTNH3TDN77NANCNFSM4ZDZJIJA .
-- All that is necessary for evil to succeed is for good people to do nothing.
You need to make sure Rust is on your PATH: https://github.com/pyca/infra/blob/main/runners/alpine/Dockerfile#L18 … On Sat, Mar 13, 2021 at 10:27 AM elmentdave @.***> wrote: I've taken out cargo and using the installation as said in their docs but it still fails FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-alpine3.10 RUN yes | curl --verbose --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh RUN apk add --update \ build-base \ python3-dev \ musl-dev \ libffi-dev \ openssl-dev \ postgresql-dev=11.11-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.10/main WORKDIR /app COPY requirements.txt requirements.txt ... logs now ..... error: can't find Rust compiler #12 197.4 #12 197.4 If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. #12 197.4 #12 197.4 To update pip, run: #12 197.4 #12 197.4 pip install --upgrade pip #12 197.4 #12 197.4 and then retry package installation. #12 197.4 #12 197.4 If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. #12 197.4 #12 197.4 This package requires Rust >=1.41.0. #12 197.4 ---------------------------------------- #12 197.4 ERROR: Failed building wheel for cryptography ..... — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5914 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGBESNBISLJXAUKRTNH3TDN77NANCNFSM4ZDZJIJA . -- All that is necessary for evil to succeed is for good people to do nothing.
Same issue persists though even after adding it to my path
solved issue alpine3.13 and using this
RUN apk add --update \
build-base \
python3-dev \
musl-dev \
libffi-dev \
openssl-dev \
rust \
cargo
in dockerfile
Building a docker image
i have latest version (3.4.6) of cryptography in my requirements file. i see this error in my logs
error: Rust 1.34.2 does not match extension requirement >=1.41.0
but isn't 2nd line dockerfile supposed to install the latest version of rust ??PLEASE ANY SUGGESTIONS