title: When I run a container, get error with python
body: <p>I'm using Python 3.10 with Flask and Poetry for developing APIs, but when I gonna run a container, I get an error that I was able to understand:</p>
  <pre><code>File &quot;/usr/local/lib/python3.8/runpy.py&quot;, line 185, in _run_module_as_main
  mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File &quot;/usr/local/lib/python3.8/runpy.py&quot;, line 144, in _get_module_details
  return _get_module_details(pkg_main_name, error)
  File &quot;/usr/local/lib/python3.8/runpy.py&quot;, line 111, in _get_module_details
  __import__(pkg_name)
  File &quot;/app/app/__init__.py&quot;, line 3, in &lt;module&gt;
  from flask import Flask
  File &quot;/usr/local/lib/python3.8/site-packages/flask/__init__.py&quot;, line 14, in &lt;module&gt;
  from jinja2 import escape
  File &quot;/usr/local/lib/python3.8/site-packages/jinja2/__init__.py&quot;, line 12, in &lt;module&gt;
  from .environment import Environment
  File &quot;/usr/local/lib/python3.8/site-packages/jinja2/environment.py&quot;, line 25, in &lt;module&gt;
  from .defaults import BLOCK_END_STRING
  File &quot;/usr/local/lib/python3.8/site-packages/jinja2/defaults.py&quot;, line 3, in &lt;module&gt;
  from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File &quot;/usr/local/lib/python3.8/site-packages/jinja2/filters.py&quot;, line 13, in &lt;module&gt;
  from markupsafe import soft_unicode
  ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/site-packages/markupsafe/__init__.py)
  
  </code></pre>
  <p>I'm not sure if the problem is Python 3.8 in the route File (I'm using Python 3.10).</p>
  <p>So, I tried to solve the problem with <code> poetry install</code>, getting this:</p>
  <pre><code>** Installing dependencies from lock file ** 
  
  No dependencies to install or update 
  </code></pre>
  <p>By the way, I'm using PyCharm IDE.
  Please, help me to solve this, I have no idea what is going on.</p>