HumanSignal / HumanSignal/label-studio

from label_studio_sdk.label_interface.objects import PredictionValue fails

Open
#6,292 2 comments 0 reactions 0 assignees View on GitHub
community:reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
After installing label studio version 1.13.1, unable to start ml backend using command:

label-studio-ml start --debug mycustom_ml_backend

fails when executing:
from label_studio_sdk.label_interface.objects import PredictionValue
when running label-studio-ml-backem/label_studio_ml/response.py

**To Reproduce**
Try running any custom ml backend that needs to run response.py

**Expected behavior**
used to work in 1.12
**Screenshots**
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\path\to\new\virtual\environment\Scripts\label-studio-ml.exe\__main__.py", line 4, in
File "C:\path\to\new\virtual\environment\Lib\site-packages\label_studio_ml\server.py", line 13, in
from .model import get_all_classes_inherited_LabelStudioMLBase
File "C:\path\to\new\virtual\environment\Lib\site-packages\label_studio_ml\model.py", line 28, in
from .response import ModelResponse
File "C:\path\to\new\virtual\environment\Lib\site-packages\label_studio_ml\response.py", line 5, in
from label_studio_sdk.objects import PredictionValue
ModuleNotFoundError: No module named 'label_studio_sdk.objects'
Press any key to continue . . .

**Environment (please complete the following information):**
- OS: Windows Server 2022 Datacenter
- Label Studio Version [1.13.1]
- (used to work in v1.12)

**Additional context**
tried installing 1.13.1 because of #6291 when using v1.12.1 . Currently work stalled because I'm unable to use ml backend.

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.