question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't upload data in any format

See original GitHub issue

How to reproduce the behaviour

Create a new project for text classification. Try to upload a dataset test.jsonl with the next lines:

{"text": "Terrible customer service.", "labels": ["negative"], "meta": {"wikiPageID": 1}}
{"text": "Really great transaction.", "labels": ["positive"], "meta": {"wikiPageID": 2}}
{"text": "Great price.", "labels": ["positive"], "meta": {"wikiPageID": 3}}

File is in UTF-8. Get error "The file could not be uploaded. Maybe invalid format. Please check available formats carefully. "

My Environment

  • Operating System: CentOS 7
  • Python Version Used: 2.7.5 (Host)
  • When you install doccano: 9.04.2020
  • How did you install doccano: docker-compose

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jgansemancommented, Mar 24, 2021

I had this problem uploading a plain text file with only 10 lines of text in a freshly installed pip version of Doccano (1.2.2, running Django 3.1.7). The problem disappeared when I removed the empty newlines from the end of the file!

0reactions
D0C2005commented, Nov 5, 2021

Indeed, removing the empty newlines (regardless of their position) did the trick. Thanks for the suggestion!

I had this problem uploading a plain text file with only 10 lines of text in a freshly installed pip version of Doccano (1.2.2, running Django 3.1.7). The problem disappeared when I removed the empty newlines from the end of the file!

Read more comments on GitHub >

github_iconTop Results From Across the Web

My file is in the required format. Why can't I upload it?
Sometimes when you're trying to upload your translated file, you might receive the following error message: Word2.jpg.
Read more >
Fix problems uploading files on the OneDrive website
A file won't upload if it doesn't fit in your available storage space. To see how much space you have remaining or to...
Read more >
Reasons why your CSV file isn't importing customer data
Wondering why your CSV file isn't uploading properly? Unfortunately, it could be any number of issues. The good news is that most CSV...
Read more >
Tackling the most common errors when trying to import a CSV
If you're working with CSV file format, chances are you will be doing an import at some point. Moving data is, after all,...
Read more >
How to Fix Google Drive Cannot Upload Files and Videos ...
There may be an issue with your network instead. This is especially true if the file uploads but gets canceled in the middle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found