Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't export completion as csv #330

Closed
johngull opened this issue Jun 23, 2020 · 9 comments
Closed

Can't export completion as csv #330

johngull opened this issue Jun 23, 2020 · 9 comments
Assignees
Labels
problem bug or something isn't working

Comments

@johngull
Copy link

Describe the bug
When I try to export results as CSV, I got Chrome message "undefined". And it seems that real reason is an internal error in the server on "GET /api/export?format=CSV HTTP/1.1" 500 -

Screenshots
image

Environment (please complete the following information):

  • OS: Ubuntu
  • Browser: Chrome 83
  • Label-studio 0.7.2
@johngull johngull added the problem bug or something isn't working label Jun 23, 2020
@makseq
Copy link
Member

makseq commented Jun 24, 2020

Can you show your label config?

@johngull
Copy link
Author

Here is it:

<View>
  <Image name="img" value="$image"></Image>
  <Choices name="tag" toName="img" choice="single-radio">
    <Choice value="Overview"></Choice>
    <Choice value="Close view"></Choice>
    <Choice value="Cuted"></Choice>
    <Choice value="Garbage"></Choice>
  </Choices>
</View>

@makseq
Copy link
Member

makseq commented Jun 25, 2020

I checked this config, everything is ok. Can you send sample of imported tasks?
Probably the problem is in tasks (maybe any encoding problems?)

@hsethi2709
Copy link

I have faced similar issues due to multiple completions on a given task. When I deleted the extra completions on a task and just kept one, exporting CSV was successful. Can you confirm if you have multiple completions as well?

@johngull
Copy link
Author

@hsethi2709 How to verify this?

@hsethi2709
Copy link

I checked it in the logs and could see errors that said "Currently only one completion can be added per task - we can't convert more than one completions, but 2 completions found in item:" Here the whole task used to be present along with its ID. So you can go to that task and remove that completion.

I am not sure how you can look for multiple completions without checking the log.

I can also see in the converter that they do not support multiple completions for exporting to CSV. I have attached the screenshot of the label-studio-converter that is used for this purpose.
Screen Shot 2020-06-26 at 5 31 50 pm

@johngull
Copy link
Author

@hsethi2709 I verified result.json and you are right there is repeating of one of the tasks. Thank you for the tip.

@makseq At least it will be nice if UI will show some clear message about this.
And that is strange that I did nothing for repeating the same task. Is it possible to check repeats and remove them in UI?

@johngull
Copy link
Author

@makseq By parsing json in a more verbose way, found that there is one image with the missed result and one image with the 2 results. In the same time UI says that all tasks completed.

@makseq
Copy link
Member

makseq commented Jun 26, 2020

@hsethi2709 thank you very much!

@johngull Yes, I will add this in the nearest release. But you can use JSON instead of JSON_MIN, it must work with multiple completions.

image

@makseq makseq closed this as completed Jun 26, 2020
@makseq makseq mentioned this issue Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem bug or something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants