HumanSignal/label-studio-sdk

Local Import Storage error when called for LS deployed in Docker

duxan opened this issue · 0 comments

duxan commented

Hi! I'm hitting an error when I use python SDK from host machine and attaching local storage for LS in docker container.

It is happening because checks are in place to ensure local storage path exist and root is on it's path - but storage path I'm adding is not on host, but accessible inside container only. It hits this line: https://github.com/heartexlabs/label-studio-sdk/blob/master/label_studio_sdk/project.py#L1650

My workaround is to fallback to generic client.make_request and do an API call (awesome that this method exists!) but would be nice to have a project.connect_local_import_storage() method work as well, so it aligns with rest of my codebase abstraction level.

Thanks!