label-studio-sdk icon indicating copy to clipboard operation
label-studio-sdk copied to clipboard

Local Import Storage error when called for LS deployed in Docker

Open duxan opened this issue 1 year ago • 0 comments

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!

duxan avatar May 26 '23 08:05 duxan