Scout: New release failed to create an image to upload to Docker Hub

Created on 4 Mar 2021  路  11Comments  路  Source: Clinical-Genomics/scout

See the output from the github action:

image

bug

All 11 comments

Specifics of the error:

copying src/cryptography/py.typed -> build/lib.linux-x86_64-3.8/cryptography
  running build_ext
  generating cffi module 'build/temp.linux-x86_64-3.8/_padding.c'
  creating build/temp.linux-x86_64-3.8
  generating cffi module 'build/temp.linux-x86_64-3.8/_openssl.c'
  running build_rust

      =============================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 not find Rust compiler
  ----------------------------------------
  ERROR: Failed building wheel for cryptography

which cryptography version are you using? I had a not so dissimilar issue with it: https://github.com/Clinical-Genomics/BALSAMIC/issues/549#issuecomment-775017628

They changed the requirements after release 3.4

I'm not sure, it's a github action. It failed also today when we were installing scout on clinical-db prod (cryptography==3.3.1).
On stage the installation worked and it had cryptography==2.4.2

The other difference was that prod had a much older version of pip, and we solved a bit rustically by upgrading pip. I wouldn't like to freeze stuff but we might have to do it if we don't find another solution.

I might fix the Dockerfile by switching from Alpine to some other slim distro, but I'd like it to fix it for good on Scout deirectly. See also here: https://github.com/python-poetry/poetry/issues/3661

and here: https://github.com/docker/compose/issues/8105

This is the ultimate issue: https://github.com/pyca/cryptography/issues/5771 in cryptography

They changed the requirements after release 3.4

I think they should have made a major, have you read the complaints? Hell broke loose when they made that release. I'll make a PR to freeze cryptography as well, unless somebody has a better idea.

Yeah, seems from the comments they actually dont use semantic versioning; it said "non-compatible". I guess it will sort itself in a while after some huffing and puffing about the relative merits of Rust vs platform coverage. Freezing until then - or until finding another nice base distro image - must be fine. A n00b-suggestion would be to try a vanilla ubuntu, like we have for testing here on Actions, but perhaps that doesn't play well for inside Docker? 馃槉

(I do like gentoo and derivates - used to have that on my main home system after Stampede).

@dnil changing distro in the Dockerfile might work, but installation of scout in a virtual env (like today) might still fail, I'd rather fix scout instead.

On the same thread, ubuntu 18.04 had the old pip (9), but ubuntu 20.04 seems to start from 20-something, which is above the pip v19.1 when this would auto-resolve on common platforms.

https://xkcd.com/2347/

So true! I guess I need to check my other repos now 馃檮

Was this page helpful?
0 / 5 - 0 ratings