HumanSignal/label-studio-ml-backend

File: label_studio_ml/model.py label_studio_sdk.label_interface does not exist anymore

justinmacp opened this issue · 3 comments

Hello all,

The model.py file uses a module that no longer exists in the Label Studio Python SDK.

In line 25: from label_studio_sdk.label_interface import LabelInterface

Either the requirements need to be updated, so we know which version of the SDK to use or the usage of this module needs to be removed/replaced.

Many thanks and kind regards,

Justin

Hello, @justinmacp !

The ML backend uses the Label Studio Python SDK installed from the latest master branch
https://github.com/HumanSignal/label-studio-ml-backend/blob/master/requirements.txt#L8

Do you still face the issue if you force reinstall the packages?

Same issue, tried force installing manually. Doesn't work.

Went through the repo for label-studio-sdk. They have deprecated the labelInterface module so it would no longer work there would probably be an update on the requirements soon but till then you can use the older version of the sdk using pip install "label-studio-sdk<1". This fixed the issue for me.