0

I wrote a very simple Flask app with docker file to up its container here: https://github.com/trouchet/appy. I use package management tool poetry. When I run make start, it outputs the following error. Please, help me discover where my flaw is

flask --app src/main.py run --port=8081
Traceback (most recent call last):
  File "/usr/bin/flask", line 11, in <module>
    load_entry_point('Flask==1.1.1', 'console_scripts', 'flask')()
  File "/home/brunolnetto/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 534, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/brunolnetto/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2930, in load_entry_point
    return ep.load()
  File "/home/brunolnetto/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2517, in load
    return self.resolve()
  File "/home/brunolnetto/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2523, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/flask/__init__.py", line 14, in <module>
    from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.8/dist-packages/jinja2/__init__.py)
make: *** [Makefile:99: start] Error 1

0 Answers0