SolverProblemError when installing aiohttp
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: Lubuntu 18.04
- Poetry version: 0.11.1
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/Victor-Savu/e26e28cffd506bc399b5e0fae19dee62
Issue
Poetry incorrectly identifies idna-ssl
to be a dependency of aiohttp
when the required python is 3.7.
Here is the result of poetry lock -vvv
.
Here is a Dockerfile
which can be used together with the linked pyproject.toml
file to reproduce the error:
FROM python:3.7.0b5-alpine
RUN apk add --no-cache curl \
&& curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3
ADD pyproject.toml .
RUN poetry lock -vvv
The setup.py
of aiohttp
only includes the dependency on idna-ssl
for versions lower than 3.7
:
if sys.version_info < (3, 7):
install_requires.append('idna-ssl>=1.0')
install_requires
is later on passed to setuptools.setup(...)
.
idna-ssl
indeed only supports python versions <3.7
but it should not be included as a dependency to begin with.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
SolverProblemError when installing aiohttp · Issue #274 - GitHub
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >poetry install | SolverProblemError Because my_project ...
The problem with your current pyproject.toml is, that you declare built-in packages as dependencies, like os, pathlib, string and others. This ...
Read more >So, because lyer depends on both aiohttp (^3.7.3) and discord ...
1), version solving failed. Elimz. [SolverProblemError]
Read more >Welcome to AIOHTTP — aiohttp 3.7.4.post0 documentation
Welcome to AIOHTTP¶. Asynchronous HTTP Client/Server for asyncio and Python. Current version is 3.7.4.post0. Key Features¶. Supports both Client and HTTP ...
Read more >Update Packages in Python Poetry - YippeeCode
First step is to find out what packages are currently installed in your system. Then, find the ones that are outdated. You can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
Had a problem with multidict:
After
rm -rf ~/.cache/pypoetry/
the error is gone.toml file is simple:
And it seems someone already opened a PR: https://github.com/aio-libs/aiohttp/pull/3114