Skip to content

Error building Dockerfile #152

@esale

Description

@esale

Hi, I tried to build this image today, and I got an error:

    Python: 3.6.9
        platform: Linux-4.9.0-0.bpo.6-amd64-x86_64-with
        pip: 18.1
        setuptools: 59.6.0
        setuptools_rust: 1.1.2
        =============================DEBUG ASSISTANCE=============================
    
    error: can't find Rust compiler
    
    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.
    
    To update pip, run:
    
        pip install --upgrade pip
    
    and then retry package installation.
    
    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.
    
    This package requires Rust >=1.41.0.

To solve it, I had to modify your Dockerfile:

    && cp /usr/share/zoneinfo/UTC /etc/localtime \
    && echo "UTC" > /etc/timezone \
    && pip3 install --upgrade pip \
    && pip3 install six \
    && pip3 install --no-cache-dir /simp_le/src \
    && rm -rf /simp_le/src \
    && apk del --purge .build-deps \
    && rm -fv /var/cache/apk/*

I just added the 2 lines after "echo"

I added a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions