JRubics / poetry-publish

An action to build and publish python package to pypi (https://pypi.org/) using poetry (https://github.com/sdispater/poetry)
BSD 3-Clause "New" or "Revised" License
129 stars 17 forks source link

error: can't find Rust compiler 257 #7

Closed camilamaia closed 3 years ago

camilamaia commented 3 years ago

Description

Installation fails on cryptograpghy

        =============================DEBUG ASSISTANCE=============================
        If you are seeing a compilation error please try the following steps to
        successfully install cryptography:
        1) Upgrade to the latest pip and try again. This will fix errors for most
           users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        2) Read https://cryptography.io/en/latest/installation.html for specific
           instructions for your platform.
        3) Check our frequently asked questions for more information:
           https://cryptography.io/en/latest/faq.html
        4) Ensure you have a recent Rust toolchain installed:
           https://cryptography.io/en/latest/installation.html#rust
        5) If you are experiencing issues with Rust for *this release only* you may
           set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
        =============================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.

    ----------------------------------------
Command "/root/.pyenv/versions/3.6.10/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-xjp81yos/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-prs95ot0/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-xjp81yos/cryptography/

You are using pip version 18.1, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Example

https://github.com/scanapi/scanapi/pull/358/checks?check_run_id=2393161740

Ralated

https://github.com/python-poetry/poetry/issues/3661

JRubics commented 3 years ago

Thank you for reporting this issue. It will be fixed as soon as possible. :)

JRubics commented 3 years ago

Fixed by adding cargo as a dependency.

camilamaia commented 3 years ago

Thank you very much @JRubics 🎉 When you have some time, would you mind releasing a new version, please? 🙇‍♀️

JRubics commented 3 years ago

@camilamaia new version with Docker image versioning is coming soon :)

JRubics commented 3 years ago

@camilamaia The new version is released. You can find it here :)

camilamaia commented 3 years ago

Thanks @JRubics!