Installing cryptography on system using poetry fails
See original GitHub issue-
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). -
OS version and name: Ubuntu 18.04, python3.8
-
Poetry version: 1.1.4
-
contents of your pyproject.toml file:
[tool.poetry]
name = "poetry_bug"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Issue
The issue, installing cryptography
within a virtualenv works, but I configure poetry config virtualenvs.create false
and try to install it fails.
It seems that for the virtualenv poetry selects cryptography-3.2.1-cp35-abi3-manylinux1_x86_64.whl
, however for the system install it selects cryptography-3.2.1-cp35-abi3-manylinux2010_x86_64.whl
.
The following Dockerfile reproduces the issue:
FROM ubuntu:18.04
RUN apt update && apt install -y python3.8 python3-pip curl git
RUN python3.8 -m pip install poetry
ADD pyproject.toml .
RUN poetry config virtualenvs.create false
RUN poetry add cryptography==3.2.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Failed to install cryptography package with Poetry on Python 3.9
The solution for this poetry problem here is to install cryptography on its own before you install poetry.
Read more >Frequently asked questions - pyca/cryptography
Installing cryptography fails with error : Can not find Rust compiler ¶ ; cryptography from source requires you have Rust installed and available...
Read more >Need help with django site, can'y deploy - Render community
Not able to deploy django project from github. Command ['/opt/render/project/src/.venv/bin/pip', 'install', '--no-deps', ...
Read more >T274310 Building wheels for cryptography package requires ...
This seems to be caused by the Step 8/25 : RUN python3 "-m" "pip" "install" "-U" "poetry==1.1.4" step in building the container. Potentially...
Read more >ERROR: Failed building wheel for cryptography
i get this after running python3 -m pip install --upgrade homeassistant in the correct container: error: can't find Rust compiler If you are ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having the same issue with cryptography, on the newest poetry 1.1.6 and with the newest pip 21.0.1
end of the log:
I’m trying to use poetry to install all dependencies as global in a container, we are migrating away from pipenv and in pipenv we just used
pipenv install --system
.Thanks again!