HumanSignal / HumanSignal/label-studio

Cannot init a project with PostgreSQL

Open
#4,620 7 comments 6 reactions 1 assignee Claimed by @makseq View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**

**To Reproduce**
Steps to reproduce the behavior:
1. Run command as the document.
```
label-studio start my_project --init -db postgresql
```
2. See error

**Environment (please complete the following information):**
- OS: Ubuntu 22.04 LTS
- Label Studio Version: 1.8.1
**Expected behavior**

**Screenshots**

```
$ label-studio start my_project --init -db postgresql
=> Hostname correctly is set to: http://192.168.31.11:8080
=> Database and media directory: /home/user/.local/share/label-studio
=> Static URL is set to: /static/
=> Hostname correctly is set to: http://192.168.31.11:8080
=> Database and media directory: /home/user/.local/share/label-studio
=> Static URL is set to: /static/
[Tracing] Create new propagation context: {'trace_id': '29a11d3f7ffe464a8115200c70a09270', 'span_id': '82123a390da160cf', 'parent_span_id': None, 'dynamic_sampling_context': None}
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /pypi/label-studio/json HTTP/1.1" 200 57379
Can't read version file: ls-version_.py. Fall back to: version_.py
[2023-08-10 01:44:10,320] [root::_read_py::61] [WARNING] Can't read version file: ls-version_.py. Fall back to: version_.py
[2023-08-10 01:44:10,549] [root::_read_py::61] [WARNING] Can't read version file: ls-version_.py. Fall back to: version_.py
Traceback (most recent call last):
File "/home/user/anaconda3/envs/labelstudio/bin/label-studio", line 8, in
sys.exit(main())
^^^^^^
File "/home/user/anaconda3/envs/labelstudio/lib/python3.11/site-packages/label_studio/server.py", line 343, in main
_init(input_args, config)
File "/home/user/anaconda3/envs/labelstudio/lib/python3.11/site-packages/label_studio/server.py", line 188, in _init
user = _create_user(input_args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/anaconda3/envs/labelstudio/lib/python3.11/site-packages/label_studio/server.py", line 148, in _create_user
if input_args.quiet_mode:
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'quiet_mode'
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit
```

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.