question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sdispatercommented, Nov 12, 2018

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.

0reactions
stale[bot]commented, Nov 20, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'flask-cors' Raspberry pi - Stack Overflow
So the easiest way to install flask-cors on the raspberry for python 3 is with pip3 install -U flask-cors and not pip install...
Read more >
executor failed running [/bin/sh -c poetry install --no-dev]: exit ...
Update: I have created a pip.conf file. Now, docker build has a lot more successful installs. However, still fails.
Read more >
ModuleNotFoundError: No module named 'flask_cors' in Python
The Python "ModuleNotFoundError: No module named 'flask_cors'" occurs when we forget to install the Flask-Cors module before importing it or ...
Read more >
FastAPI in Containers - Docker
There are other formats and tools to define and install package dependencies. I'll show you an example using Poetry later in a section...
Read more >
The Ultimate FastAPI Tutorial Part 13 - Using Docker to ...
Part 13: Using Docker, Uvicorn and Gunicorn to Deploy Our App to ... app/poetry.lock* /app/ # Allow installing dev dependencies to run tests ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found