HumanSignal / HumanSignal/label-studio
Error when starting after installation + get an old version
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
I get an error when starting after installation, and I also get an old version
**To Reproduce**
Steps to reproduce the behavior:
1. Create a virtual environment
2. Activate the virtual environment
3. Install the package into python virtual environment: `pip install -U label-studio`
4. Launch it `label-studio`
5. See error
**Expected behavior**
The program will work and also have the current version.
**Screenshots**
**Environment (please complete the following information):**
- OS: Windows 10 Pro (22H2)
- Label Studio Version [label-studio-1.13.1]
- Python 3.8.10
- pip 25.0.1
**Additional context**
Traceback (most recent call last)
Initializing database..
Traceback (most recent call last):
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
return self.cursor.execute(sql)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\sqlite3\base.py", line 421, in execute
return Database.Cursor.execute(self, query)
sqlite3.OperationalError: no such function: JSON_VALID
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "F:\Python\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "M:\lablestudio_venv\.venv\Scripts\label-studio.exe\__main__.py", line 7, in
sys.exit(main())
File "m:\lablestudio_venv\.venv\lib\site-packages\label_studio\server.py", line 302, in main
_apply_database_migrations()
File "m:\lablestudio_venv\.venv\lib\site-packages\label_studio\server.py", line 67, in _apply_database_migrations
call_command('migrate', '--no-color', verbosity=0)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\core\management\__init__.py", line 181, in call_command
return command.execute(*args, **defaults)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\core\management\base.py", line 398, in execute
output = self.handle(*args, **options)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\core\management\base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\core\management\commands\migrate.py", line 244, in handle
post_migrate_state = executor.migrate(
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\executor.py", line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\executor.py", line 227, in apply_migration
state = migration.apply(state, schema_editor)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\migration.py", line 126, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 345, in create_model
self.execute(sql, params or None)
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 345, in create_model
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 345, in create_model
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 345, in create_model
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\migrations\operations\models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 345, in create_model
self.execute(sql, params or None)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\base\schema.py", line 145, in execute
cursor.execute(sql, params)
File "m:\lablestudio_venv\.venv\lib\site-packages\sentry_sdk\utils.py", line 1816, in runner
return sentry_patched_function(*args, **kwargs)
File "m:\lablestudio_venv\.venv\lib\site-packages\sentry_sdk\integrations\django\__init__.py", line 652, in execute
result = real_execute(self, sql, params)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\utils.py", line 82, in _execute
return self.cursor.execute(sql)
File "m:\lablestudio_venv\.venv\lib\site-packages\django\db\backends\sqlite3\base.py", line 421, in execute
return Database.Cursor.execute(self, query)
django.db.utils.OperationalError: no such function: JSON_VALID
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-Break to quit
Contributor guide
Assessment
This issue has not been assessed yet.