HumanSignal / label-studio-ml-backend

Configs and boilerplates for Label Studio's Machine Learning backend
Apache License 2.0
585 stars 261 forks source link

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

Open justinmacp opened 6 months ago

justinmacp commented 6 months ago

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

niklub commented 6 months ago

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?

bhavishya-sahdev commented 5 months ago

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

bhavishya-sahdev commented 5 months ago

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.