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

Installing package from git fails on cryptograpghy - Cano not find Rust compiler #3661

Closed
3 tasks done
Ikszad opened this issue Feb 8, 2021 · 29 comments
Closed
3 tasks done
Labels
kind/bug Something isn't working as expected

Comments

@Ikszad
Copy link

Ikszad commented Feb 8, 2021

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

Hello!
Here is an issue that has hit us in the production environment out of nowhere.
We have dockerized environment (dockerfiles gist links c and e) in which there are packages installed based on the two pyproject.toml files (firstly base image d and child image a). Besides that, we have a separate package with its pyproject.toml (b).
We have this packages inside the application pyproject.toml (a) as:
hubspot-integration = {git = "https://SOMEPACKAGE.git", branch="master"}

Now during the poetry install in the application build (Dockerfile e using pyproject.toml a) it crashes on the package mentioned above during installation of cryptography. What is interesting installation of cryptography package alone (as we have this dependency defined in the pyproject.toml a) works fine.

I tried upgrading pip, setuptools, poetry and neither seem to have any effect.

Thank you for the help

Here is the error message:

 - Installing hubspot-integration (0.1.0 1dc3a9d)

[EnvCommandError]
Command ['/usr/local/bin/python', '-m', 'pip', 'install', '--no-deps', '-U', '-e', '/usr/local/src/hubspot-integration'] errored with the following return code 1, and output: 
Obtaining file:///usr/local/src/hubspot-integration
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ydp2mpgs/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=1.0.0'
       cwd: None
  Complete output (250 lines):
  Collecting poetry>=1.0.0
    Downloading https://files.pythonhosted.org/packages/f9/dd/b6ba82de8c075d1a795670ae16952a4c1cb21398b4330d8cfb51241e32d7/poetry-1.1.4-py2.py3-none-any.whl (171kB)
  Collecting shellingham<2.0,>=1.1 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/76/94/7a764d57d0f46534e0022e651da6547bc5cfe7b6372e7e0ed1dde6f5cb67/shellingham-1.4.0-py2.py3-none-any.whl
  Collecting clikit<0.7.0,>=0.6.2 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/f2/3d/4394c710b9195b83382dc67bdd1040e5ebfc3fc8df90e20fe74341298c57/clikit-0.6.2-py2.py3-none-any.whl (91kB)
  Collecting packaging<21.0,>=20.4 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB)
  Collecting requests<3.0,>=2.18 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)
  Collecting cachy<0.4.0,>=0.3.0 (from poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/82/e6/badd9af6feee43e76c3445b2621a60d3d99fe0e33fffa8df43590212ea63/cachy-0.3.0-py2.py3-none-any.whl
  Collecting requests-toolbelt<0.10.0,>=0.9.1 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
  Collecting poetry-core<2.0.0,>=1.0.0 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/a0/56/d7923fb39395c662bab9e6044e290458a77204ea3cafc3b1ea88e27b8f4c/poetry_core-1.0.2-py2.py3-none-any.whl (424kB)
  Collecting tomlkit<1.0.0,>=0.7.0 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/bc/01/a0ee34fe37dd54f795e8f8a820af57c9a94d7358276acf6cdc21ae8d9533/tomlkit-0.7.0-py2.py3-none-any.whl
  Collecting crashtest<0.4.0,>=0.3.0; python_version >= "3.6" and python_version < "4.0" (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/76/97/2a99f020be5e4a5a97ba10bc480e2e6a889b5087103a2c6b952b5f819d27/crashtest-0.3.1-py3-none-any.whl
  Collecting pkginfo<2.0,>=1.4 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/b0/9a/d78e7c299eb5659bc3a036e5a968a399c62bfe0b2aa18baf7d13f43373ba/pkginfo-1.7.0-py2.py3-none-any.whl
  Collecting virtualenv<21.0.0,>=20.0.26 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/9f/fb/7423637e48cffbb2e567ca113d2b05068f8b457dde998ab487adf7386c86/virtualenv-20.4.2-py2.py3-none-any.whl (7.2MB)
  Collecting html5lib<2.0,>=1.0 (from poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/6c/dd/a834df6482147d48e225a49515aabc28974ad5a4ca3215c18a882565b028/html5lib-1.1-py2.py3-none-any.whl
  Collecting keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0" (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/d0/a0/20e656cd1e2313af619e382782bd47b5f77a3f33d81992554f3aac56e90d/keyring-21.8.0-py3-none-any.whl
  Collecting pexpect<5.0.0,>=4.7.0 (from poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl
  Collecting cachecontrol[filecache]<0.13.0,>=0.12.4 (from poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/18/71/0a9df4206a5dc5ae7609c41efddab2270a2c1ff61d39de7591dc7302ef89/CacheControl-0.12.6-py2.py3-none-any.whl
  Collecting cleo<0.9.0,>=0.8.1 (from poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/09/46/3577da4237675e90630e8e9ccd2c7dbcd42afd4463712a207eab148dfbc2/cleo-0.8.1-py2.py3-none-any.whl
  Collecting pastel<0.3.0,>=0.2.0 (from clikit<0.7.0,>=0.6.2->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/aa/18/a8444036c6dd65ba3624c63b734d3ba95ba63ace513078e1580590075d21/pastel-0.2.1-py2.py3-none-any.whl
  Collecting pylev<2.0,>=1.3 (from clikit<0.7.0,>=0.6.2->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/40/1c/7dff1d242bf1e19f9c6202f0ba4e6fd18cc7ecb8bc85b17b2d16c806e228/pylev-1.3.0-py2.py3-none-any.whl
  Collecting pyparsing>=2.0.2 (from packaging<21.0,>=20.4->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
  Collecting urllib3<1.27,>=1.21.1 (from requests<3.0,>=2.18->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/23/fc/8a49991f7905261f9ca9df5aa9b58363c3c821ce3e7f671895442b7100f2/urllib3-1.26.3-py2.py3-none-any.whl (137kB)
  Collecting certifi>=2017.4.17 (from requests<3.0,>=2.18->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB)
  Collecting chardet<5,>=3.0.2 (from requests<3.0,>=2.18->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)
  Collecting idna<3,>=2.5 (from requests<3.0,>=2.18->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl
  Collecting six<2,>=1.9.0 (from virtualenv<21.0.0,>=20.0.26->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
  Collecting distlib<1,>=0.3.1 (from virtualenv<21.0.0,>=20.0.26->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/f5/0a/490fa011d699bb5a5f3a0cf57de82237f52a6db9d40f33c53b2736c9a1f9/distlib-0.3.1-py2.py3-none-any.whl (335kB)
  Collecting appdirs<2,>=1.4.3 (from virtualenv<21.0.0,>=20.0.26->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl
  Collecting filelock<4,>=3.0.0 (from virtualenv<21.0.0,>=20.0.26->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
  Collecting webencodings (from html5lib<2.0,>=1.0->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
  Collecting jeepney>=0.4.2; sys_platform == "linux" (from keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/51/b0/a6ea72741aaac3f37fb96d195e4ee576a103c4c04e279bc6b446a70960e1/jeepney-0.6.0-py3-none-any.whl (45kB)
  Collecting SecretStorage>=3.2; sys_platform == "linux" (from keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/63/a2/a6d9099b14eb5dbbb04fb722d2b5322688f8f99b471bdf2097e33efa8091/SecretStorage-3.3.0-py3-none-any.whl
  Collecting ptyprocess>=0.5 (from pexpect<5.0.0,>=4.7.0->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl
  Collecting msgpack>=0.5.2 (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/59/04/87fc6708659c2ed3b0b6d4954f270b6e931def707b227c4554f99bd5401e/msgpack-1.0.2.tar.gz (123kB)
  Collecting lockfile>=0.9; extra == "filecache" (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/c8/22/9460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362/lockfile-0.12.2-py2.py3-none-any.whl
  Collecting cryptography>=2.0 (from SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Downloading https://files.pythonhosted.org/packages/06/ed/cb79cc94ec58d9d92557238fc6c629cd6e07d72334d2de556aecc2211370/cryptography-3.4.1.tar.gz (544kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting cffi>=1.12 (from cryptography>=2.0->SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
  Collecting setuptools-rust>=0.11.4 (from cryptography>=2.0->SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/e5/e3/ede8b8545e7ce7f5fde88d1a89cdfffa281ab3b93815c3c1a464ca3b6855/setuptools_rust-0.11.6-py3-none-any.whl
  Collecting pycparser (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
  Collecting semantic-version>=2.6.0 (from setuptools-rust>=0.11.4->cryptography>=2.0->SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/a5/15/00ef3b7888a10363b7c402350eda3acf395ff05bebae312d1296e528516a/semantic_version-2.8.5-py2.py3-none-any.whl
  Collecting toml>=0.9.0 (from setuptools-rust>=0.11.4->cryptography>=2.0->SecretStorage>=3.2; sys_platform == "linux"->keyring<22.0.0,>=21.2.0; python_version >= "3.6" and python_version < "4.0"->poetry>=1.0.0)
    Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
  Building wheels for collected packages: cryptography
    Building wheel for cryptography (PEP 517): started
    Building wheel for cryptography (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpl32at1hl
         cwd: /tmp/pip-install-z_02icga/cryptography
    Complete output (145 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/cryptography
    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.8/cryptography
    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.8/cryptography
    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.8/cryptography
    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.8/cryptography
    copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.8/cryptography
    creating build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.8/cryptography/x509
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat
    copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
    copying src/cryptography/hazmat/_types.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
    copying src/cryptography/hazmat/_der.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/backends/openssl
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/kdf
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/ciphers
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/serialization
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/asymmetric
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/primitives/twofactor
    creating build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/openssl
    running egg_info
    writing src/cryptography.egg-info/PKG-INFO
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing requirements to src/cryptography.egg-info/requires.txt
    writing top-level names to src/cryptography.egg-info/top_level.txt
    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files found matching 'vectors'
    warning: no previously-included files matching '*' found under directory 'vectors'
    warning: no previously-included files matching '*' found under directory '.github'
    warning: no previously-included files found matching 'release.py'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'dev-requirements.txt'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'mypy.ini'
    warning: no previously-included files matching '*' found under directory '.zuul.d'
    warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    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.
        =============================DEBUG ASSISTANCE=============================
  
    error: Can not find Rust compiler
    ----------------------------------------
    ERROR: Failed building wheel for cryptography
    Running setup.py clean for cryptography
  Failed to build cryptography
  Building wheels for collected packages: msgpack
    Building wheel for msgpack (setup.py): started
    Building wheel for msgpack (setup.py): finished with status 'done'
    Created wheel for msgpack: filename=msgpack-1.0.2-cp38-cp38-linux_x86_64.whl size=15818 sha256=38a45e764bcc3969e391765dd00b252d9660efeffb0b866dc92e606af7e3e0ce
    Stored in directory: /root/.cache/pip/wheels/7d/dc/1b/5704e2eb1e71a43b92fa64d0ba9bca6f73e5739662b1d3e034
  Successfully built msgpack
  ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ydp2mpgs/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=1.0.0' Check the logs for full command output.
@Ikszad Ikszad added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 8, 2021
@EdgyEdgemond
Copy link

We are getting the same error, it looks like the dependency chain is poetry -> keyring -> SecretStorage -> cryptography.

Somewhere down that chain its pulling down a source version of cryptography which requires Rust to compile, so not entirely sure this is a poetry problem, but its the install of poetry in our build environment that is triggering the chain of events.

@gord1anknot
Copy link

gord1anknot commented Feb 8, 2021

In our environment we are seeing this when installing poetry via the cheese shop on Alpine 3.10.
Here is a minimally reproducible example using docker:

$ tee Dockerfile>/dev/null <<EOF
FROM alpine:3.10
RUN apk add build-base py3-pip python3-dev
RUN pip3 install --upgrade pip \
  && hash -r \
  && pip3 install --upgrade poetry
EOF
$ docker build --pull -t example .

apk add rust doesn't resolve this unless you are at alpine > 3.13. In my environment we have solved this by pinning the version of cryptography to < 3.0 with pip before installing poetry.

@Ikszad
Copy link
Author

Ikszad commented Feb 8, 2021

According to what @gord1anknot said I tried setting the cryptography to <3 and it also worked for me.

This is how my package pyproject.toml (gist b from issue post) looks like now:

[tool.poetry]
name = "hubspot-integration"
version = "0.1.0"
description = ""
authors = ["some_author"]
packages = [
    { include = "sth" },
]

[tool.poetry.dependencies]
python = "^3.7"
hubspot3 = "^3.2.42"

[tool.poetry.dev-dependencies]
flake8 = "^3.7.9"
isort = "^4.3.21"
bandit = "^1.6.2"
coverage = "^5.0.3"
black = "^19.10b0"
autoflake = "^1.3.1"
pytest = "^5.3.2"

[build-system]
requires = ["poetry==1.0.0","setuptools>=50", "cryptography<3"]
build-backend = "poetry.masonry.api"

@brettdh
Copy link

brettdh commented Feb 9, 2021

IMO it kind of is a poetry problem, in that I'm not expecting poetry install to install new versions of anything if I haven't updated packages in my poetry.lock. I don't have a good understanding of why poetry installs poetry in the project virtualenv, but the result seems like an unexpected breakdown of version pinning.

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

Hello, this is a recent change in cryptography. It always did compile on alpine but now also needs a rust compiler. See pyca/cryptography#5771 I would strongly recommend to not use alpine for python but the official debian images; as these are compatible with manylinux.

@brettdh I'd say this depends on your pins, no? Depending on how and what you specified, you are giving poetry the freedom to update within certain version ranges.

Anyways, this issue can imo be closed because this is the result of a newer cryptography version and can be reproduce with "pip install cryptography" in every alpine container.

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

Just to clarify about my recommendation to not use alpine images: Using the debian images means you can use the manylinux wheels, which means that pip does not have to compile anything, this will result in faster image build times. The reason for this is that alpine uses musl which is not supported by manylinux.

@brettdh
Copy link

brettdh commented Feb 9, 2021 via email

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

I don’t depend directly on cryptography, and it doesn’t appear in my lock file. How do I know to pin it until a breaking change like this comes along?

You are right sorry; I thought you also included poetry somehow manually.

That said, as it currently looks your best chances are switching to a platform that supports manylinux wheels; otherwise that problem will persist (or poetry locks down cryptography to an "old" version). In the end poetry depends on keyring which (via secretstorage) finally pulls in cryptography:

keyring 21.5.0 Store and access your passwords safely.
├── importlib-metadata >=1
│   └── zipp >=0.5 
├── jeepney >=0.4.2
├── pywin32-ctypes <0.1.0 || >0.1.0,<0.1.1 || >0.1.1
└── secretstorage >=3.2
    ├── cryptography >=2.0 

@leanh1188
Copy link

it also worked for my by setting crytography<3. Would be great if someone know a better solution

@brettdh
Copy link

brettdh commented Feb 9, 2021

@apollo13 I'm fine with the workarounds above:

  • install rustc; or
  • use wheels (i would have some reading to do); or
  • pin cryptography<=3.3.2 in pyproject.toml (what I did for now)

If you agree that the implicit, accidental unpinned dependency issue is worth investigating and improving, I would suggest that this issue remain open to track that, using the unexpected cryptography upgrade as an example.

Aside: FWIW, my build env is a docker container that extends python:3.6, which IIRC is already Debian-based - but seemingly doesn't use wheels by default. (Again, I have some reading to do, as I'm largely unfamiliar with the details of wheels.)

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

If you agree that the implicit, accidental unpinned dependency issue is worth investigating and improving, I would suggest that this issue remain open to track that, using the unexpected cryptography upgrade as an example.

Absolutely, I am no maintainer, so it is not my choice anyways :)

This is what I get in a python:3.6 (which is debian based as you say) container:

root@937b2043bd7b:/# pip install cryptography
Collecting cryptography
  Downloading cryptography-3.4.3-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 3.8 MB/s 
Collecting cffi>=1.12
  Downloading cffi-1.14.4-cp36-cp36m-manylinux1_x86_64.whl (401 kB)
     |████████████████████████████████| 401 kB 3.7 MB/s 
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 4.3 MB/s 
Installing collected packages: pycparser, cffi, cryptography
Successfully installed cffi-1.14.4 cryptography-3.4.3 pycparser-2.20

Do you mind pasting the full output that you get when it errors out for you. I'd like to doublecheck that there isn't another issue with the cryptography package.

@brettdh
Copy link

brettdh commented Feb 9, 2021 via email

@EdgyEdgemond
Copy link

Thanks for the updates @apollo13, we build a docker using python:3.6-slim which is erroring.

But stripping the dockerfile back to:

FROM python:3.6-slim

RUN pip install poetry

runs fine, so it must be something we have in our build steps that is causing it to stop using manylinux wheels.

@brettdh
Copy link

brettdh commented Feb 9, 2021

Similar results to @EdgyEdgemond so far for me... I thought this would repro the issue, but it hasn't.

https://github.com/brettdh/poetry-unpinning-repro/runs/1865173612

Main differences from my actual repro:

  • Tthe use of Sonatype Nexus as a proxy to both PyPI and Docker Hub.
  • The use of Gitlab CI

Other than that, I can't see that I've changed much - but the internal build was failing at poetry install until I pinned cryptography<=3.2.2, and as you can see, the simplified version above doesn't fail, even without that pin.

Gotta put this down for now; I'll take another look later.

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

Btw probably not a full fix, but can you do the following in your pyproject.toml?

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

This is what poetry nowadays generates. Previously it had something like:

[build-system]
requires = ["poetry==1.0.0","setuptools>=50"]
build-backend = "poetry.masonry.api"

This means that to build/install such a package it would require poetry to be installed. Which the new variant it is just poetry-core.

@apollo13
Copy link
Contributor

apollo13 commented Feb 9, 2021

Mhm that would just be a build dependency, as poetry generates a setup.py after all. Maybe I am down a completely wrong road.

@brettdh
Copy link

brettdh commented Feb 10, 2021

I have had a handful of builds fail and then succeed again over the past 24 hours, so I'm inclined to think there's some non-determinism at play here. The main thing that comes to mind is that all the pypi interactions are going through Sonatype Nexus Repository, which itself is doing some amount of caching. So, it's possible that the Nexus pulled in a sdist before the wheels were published (I noticed about a 5-minute difference in their upload timestamps), cached it for a while (during which time builds failed because rustc was absent), and then later builds installed the wheel without a problem. It would also explain why I can't repro the problem anymore with python:3.6.

Doing a plain pip install poetry in an alpine-based container will probably repro the same errors I was briefly seeing with python:3.6.

I have some amount of normalcy restored, but now I have another question: is there a straightforward way to pin poetry and all its deps when installing it into a virtualenv?

@finswimmer
Copy link
Member

Hello,

it seems to me, that different questions are raised and mixed here together. Let's try to order them:

Why you cannot install successfully the cryptography package?

poetry decided to download the sdist package of cryptography. sdists packages needs to be build into wheels before installing. Because cryptography is not a python file only package there is some work to do.

alpine is minimal distribution with the focus on security. So it often lacks packages which are included in other distribution by default and you have install those packages by yourself. In case of cryptography they have a install instruction on their site.

Why poetry chooses the sdist and not a wheel?
wheels with a manylinux tag, doesn't work on alpine. So the wheel must be build from the sdist.

I don't have cryptography in my dependencies. Why is poetry trying to install it?

Run a poetry show --tree on your project and search for cryptography to find out where it comes from.

I have some amount of normalcy restored, but now I have another question: is there a straightforward way to pin poetry and all its deps when installing it into a virtualenv?

If you publish the poetry.lock together with pyproject.toml the dependencies are pinned there. Of course only until you add or remove a package. Then the dependency tree must be resolved again and versions might change. I have in mind that someone wrote a script to write the locked versions of direct dependencies into the pyproject.toml. But I can't remember how it was called 🤔

Hope I could clarify some things.

fin swimmer

@apollo13
Copy link
Contributor

apollo13 commented Feb 11, 2021

@finswimmer Regarding

I don't have cryptography in my dependencies. Why is poetry trying to install it?

it is a little bit more nuanced. It is not because poetry is trying to install cryptography, but because pip is trying to install poetry. See the first traceback in the initial comment. This is due to the fact that an old build-system entry exists in pyproject.toml which requires poetry instead of poetry-core. So one can have this error even though cryptography is not used or by installing any sdist from PyPI which has a pyproject.toml that indicates that it requires poetry. Then pip will (for isolated builds, ie pep-517/518) install poetry which in turn pulls in cryptography.

Edit:// One can also have the problem if they include cryptography in their package, but I do not think that this is what the issue indicates (according to the traceback). But either way it is not really something poetry can fix.

@jpdsc
Copy link

jpdsc commented Feb 20, 2021

pip install 'cryptography<=3' resolved it for me

@martin-braun
Copy link

I simply installed the rust compiler and got past this error.

I'm on Mac OS, but you could translate it to your package manager of choice anyways:

brew install rustup

After that open a new terminal to install the compiler itself:

rustup-init

shaun-technovation added a commit to Iridescent-CM/curiosity-machine that referenced this issue Mar 16, 2021
The build is breaking on CircleCI due to the cryptography library, one
of the solutions is to pin the version (to something less that ~3.3):

python-poetry/poetry#3661

Refs: #2460
shaun-technovation added a commit to Iridescent-CM/curiosity-machine that referenced this issue Mar 16, 2021
The build is breaking on CircleCI due to the cryptography library, one
of the solutions is to pin the version:

python-poetry/poetry#3661

Refs: #2460
@ConorSheehan1
Copy link

@finswimmer could you reopen this issue please?
Like many of the other comments, I have this issue even though my package does not depend on cryptography.
I think @apollo13 could be on to something about pip installing poetry
#3661 (comment)

@apollo13
Copy link
Contributor

apollo13 commented Mar 28, 2021 via email

@ConorSheehan1
Copy link

@apollo13 switching to poetry-core fixed it, thanks so much!

I did see your comment about switching to poetry-core #3661 (comment)
but I assumed it wouldn't work because your following comment says

Maybe I am down a completely wrong road.

#3661 (comment)

@flaviovs
Copy link

flaviovs commented Apr 4, 2021

EDIT: Please, disregard the comment below if not useful. Upgrading to Poetry 1.1.5 did solve the issue here.

I'm still trying to wrap my head around Poetry and am experiencing this issue with a module I've just created. I've done some testing, and although I couldn't figure out what's happening, I though the session below might be useful to help debug this.

Note: stock Debian Buster:

$ mkdir x
$ cd x
$ python3 -m venv /tmp/venv
$ . /tmp/venv/bin/activate
$ (venv) python -V
Python 3.7.3
$ (venv) poetry -V
Poetry version 1.0.10
$ (venv) poetry init

This command will guide you through creating your pyproject.toml config.

Package name [x]:  
Version [0.1.0]:  
Description []:  Test
Author [Flávio Veloso <XXXXX@XXXXXXXXX.com>, n to skip]:  
License []:  
Compatible Python versions [^3.7]:  

Would you like to define your main dependencies interactively? (yes/no) [yes] no
Would you like to define your development dependencies interactively? (yes/no) [yes] no
Generated file

[tool.poetry]
name = "x"
version = "0.1.0"
description = "Test"
authors = ["Flávio Veloso <XXXXX@XXXXXXXXX.com>"]

[tool.poetry.dependencies]
python = "^3.7"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"


Do you confirm generation? (yes/no) [yes] 
$ (venv) touch x.py
$ (venv) poetry install
Installing dependencies from lock file

No dependencies to install or update

  - Installing x (0.1.0)

[EnvCommandError]
Command ['/tmp/venv/bin/pip', 'install', '-e', '/home/flaviovs/x'] errored with the following return code 1, and output: 
Obtaining file:///home/flaviovs/x
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  Complete output from command /tmp/venv/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-nqpk2my1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- poetry>=0.12:
  Collecting poetry>=0.12


        (...loads of lines omitted...)


      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 "/tmp/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-igr4xmnv/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-12ve9gcj/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-nqpk2my1 --compile --install-headers /tmp/venv/include/site/python3.7/cryptography" failed with error code 1 in /tmp/pip-install-igr4xmnv/cryptography/
  
  ----------------------------------------
Command "/tmp/venv/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-nqpk2my1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- poetry>=0.12" failed with error code 1 in None

Notes:

  1. If I rename x.py to anything else, then poetry install works (no Installing x (0.1.0) though)

  2. If I comment out the following lines from pyproject.toml, then poetry install also works, with Installing x (0.1.0):

    [build-system]
    requires = ["poetry>=0.12"]
    build-backend = "poetry.masonry.api"
    
  3. poetry install --no-root works like # 2 above

  4. poetry show --tree | grep cryptography is empty in both failed and non-failed situations

  5. [UPDATE] Changing the project name to x-y in pyproject.toml and the module file name to x_y.py also does not work

@apollo13
Copy link
Contributor

apollo13 commented Apr 5, 2021 via email

@flaviovs
Copy link

flaviovs commented Apr 5, 2021 via email

@AttilioGreco
Copy link

Add dependency fro cryptography

for Alpine

apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo

More details for other distro in official Doc
https://cryptography.io/en/latest/installation/

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests