Skip to content

Crash when launching the web server #4

@nicolas-ecarnot-sitpi

Description

@nicolas-ecarnot-sitpi

Hello,

I followed your instructions, and so far, it went OK, until running the web server :

$ docker compose exec tools /scripts/start_web_server.sh
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: While importing 'main', an ImportError was raised:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask/cli.py", line 245, in locate_app
    __import__(module_name)
  File "/web_server/main.py", line 1, in <module>
    from flask import Flask, render_template, escape, url_for, send_file, send_from_directory, redirect
ImportError: cannot import name 'escape' from 'flask' (/usr/local/lib/python3.8/dist-packages/flask/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions