You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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 %
This discussion was converted from issue #5605 on September 17, 2024 14:01.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
OJ.zip
Beta Was this translation helpful? Give feedback.
All reactions