HumanSignal / HumanSignal/label-studio-sdk

client.projects.exports.download returns None

Open
#312 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
192
Forks
127
Avg merge
1d 18h
Merged PRs (30d)
1

Description

I have the following code:

```python
from label_studio_sdk import ExportCreate, ExportConvert
from label_studio_sdk.client import LabelStudio

LABEL_STUDIO_URL = '...'
API_KEY = '...'
PROJECT_ID = 1

ls = LabelStudio(base_url=LABEL_STUDIO_URL, api_key=API_KEY)

export_task = ls.projects.exports.create(
id=PROJECT_ID,
request=ExportCreate()
)

convert_task = ls.projects.exports.convert(
id=PROJECT_ID,
export_pk=export_task.id,
request=ExportConvert(
export_type="YOLO"
)
)

data = ls.projects.exports.download(id=PROJECT_ID, export_pk=export_task.id, export_type="YOLO")
```

And the value of data is `None`, I am testing it on notebook so I am sure the task is in `completed` state.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.