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
when running flask --app flaskr init-db , meet error
flask --app flaskr init-db
Error: Could not import 'flaskr'.
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.
Error: No such command 'init-db'.
The text was updated successfully, but these errors were encountered:
Please, try to use this command for databse initialization. flask --app app init-db
There are probably some naming mismatch in the installation guide. Please tell me if it worked for you.
thanks, later tried flask --app app db init and that worked. May be because version mismatch, in my env installed Flask-Migrate==4.0.7
but after bash run.sh, pages were launched, but setting imagedir ,no response returned, no error log printed, unable to further debug
all logs are like this
Loading model: ./models/MERT-v1-95M
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.env] No changes in schema detected.
Loading model: ./models/MERT-v1-95M
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Loading model: ./models/MERT-v1-95M
Really not sure what the problem might be here. What OS do you use?
As a temporary fix, you can configure "media_directory" folders directly in the config.yaml file.
when running
flask --app flaskr init-db
, meet errorThe text was updated successfully, but these errors were encountered: