pallets/flask

Error: No such command 'db'.

Closed this issue · 0 comments

OJ.zip

(onlinejudge_env) kimi@KimideMacBook-Air OJ % flask db init

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

Traceback (most recent call last):
  File "/Users/kimi/OJ/onlinejudge_env/lib/python3.9/site-packages/flask/cli.py", line 218, in locate_app
    __import__(module_name)
  File "/Users/kimi/OJ/run.py", line 3, in <module>
    app = create_app()
  File "/Users/kimi/OJ/app/__init__.py", line 25, in create_app
    from app.auth import auth as auth_blueprint
  File "/Users/kimi/OJ/app/auth.py", line 6, in <module>
    from werkzeug.urls import url_parse
ImportError: cannot import name 'url_parse' from 'werkzeug.urls' (/Users/kimi/OJ/onlinejudge_env/lib/python3.9/site-packages/werkzeug/urls.py)


Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.

Error: No such command 'db'.
(onlinejudge_env) kimi@KimideMacBook-Air OJ %