doccano / doccano/doccano

Issue with `doccano init`: `wait_for_db` command not found

Open
#2,103 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10.8k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

I have an issue with the doccano installation
Init doesn't work.

How to reproduce the problem
---------
```
pip install doccano
doccano init
```

Error message
---------
```bash
[2022-12-28 10:43:27 +0000] [189] [INFO] [django_drf_filepond.apps::ready::61] App init: no django-storages backend configured, using default (local) storage backend if set, otherwise you need to manage file storage independently of this app.
Setup Database.
Traceback (most recent call last):
File "/home/jeremy/miniconda3/lib/python3.9/site-packages/django/core/management/__init__.py", line 114, in call_command
app_name = get_commands()[command_name]
KeyError: 'wait_for_db'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/jeremy/miniconda3/bin/doccano", line 8, in
sys.exit(main())
File "/home/jeremy/miniconda3/lib/python3.9/site-packages/backend/cli.py", line 177, in main
args.handler(args)
File "/home/jeremy/miniconda3/lib/python3.9/site-packages/backend/cli.py", line 74, in command_db_init
management.call_command("wait_for_db")
File "/home/jeremy/miniconda3/lib/python3.9/site-packages/django/core/management/__init__.py", line 116, in call_command
raise CommandError("Unknown command: %r" % command_name)
django.core.management.base.CommandError: Unknown command: 'wait_for_db'
```

Your Environment
---------
* Operating System: Linux WSL (5.10.16.3-microsoft-standard-WSL2) Ubuntu 20.04 LTS
* Python Version Used: Python 3.9.12
* How did you install doccano (Heroku button etc): pip install doccano

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.