title: jinja2 error ModuleNotFoundError: No module named 'jinja2._compat'
body: <p>Trying to upgrade jinja2 to the latest stable version</p>
  <p>Error according to the logs:
  <code>ModuleNotFoundError: No module named 'jinja2._compat'</code></p>
  <p>Nothing related to this in the change logs <a href="https://jinja.palletsprojects.com/en/3.0.x/changes/#version-2-10" rel="nofollow noreferrer">https://jinja.palletsprojects.com/en/3.0.x/changes/#version-2-10</a></p>
  <p>This is the sample code:</p>
  <pre><code>    from jinja2._compat import implements_to_string
      
      @implements_to_string
      def my_function():
          pass
  </code></pre>