Poetry fails to install flask-cors in Docker
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: python:alpine
-
Poetry version: 0.12.6
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/mvoitko/fe0a1451f4616e36d810901d83ee388c
Issue
Building Docker container fails on poetry install
step with the following error:
[SolverProblemError]
Because rating-engine depends on flask-cors (^3.0.6) which doesn’t match any
versions, version solving failed.
install [–no-dev] [–dry-run] [-E|–extras EXTRAS] [–develop DEVELOP]
At the same time if I change the command to poetry update
everything is ok.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top GitHub Comments
You have to execute
poetry update
as the warning tells you:Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
without updating Poetry can’t find
flask-cors
.Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.