Importing failed - decode() argument 1 must be string, not None

I got this error when trying to upload an ebook to lingq i have no idea what it means and how to fix it. Is it possible to fix please let me know and thanks again!

Please send me that ebook to support(at)lingq.com and Iā€™ll take a look. Thanks.

Ok will do, Also would there be a problem if the book was say 2000 pages or something absurd like that? its basically a complete series of books.

That is a lot, but it should still be imported. Longer books are split into parts on each 2000 words.
Based on error message you see, sounds like the issue is related to book format.

I have gotten around this problem in the past by converting the book (in an epub format) to a txt file using calibre. https://calibre-ebook.com/ If youā€™re still stuck, I would highly suggest giving that a try. :slight_smile:

1 Like

i converted into epub and pdf but it is written in gibberish because the books are in korean and i guess pdf/ehub doesnt like that? when i try to put into a word document it just looks like code. It wont let me upload directly into link because of DRM i think but normally i put into word and copy and past but because word isnā€™t displaying hangul for some reason. i can do it.

ā€˜NoneTypeā€™ object has no attribute ā€˜contentā€™
i just got this error type on an ebook as well. it says its an epub.

Yeah, same with me, I have only ever imported books in Korean. I really suggest trying to convert it to a txt file because then the only thing in the file is the raw text, which is then easier for a computer to parse/read. Let me know if you need help with converting the book. :slight_smile:

1 Like

I will try text file just saw calibre does text lol it should work and is there a place to search for books that arent originally in Korean other than harry potter? My Korean is to weak right now to read native material where i donā€™t know what happens lol. Also does txt file conversion work on books with drm from kindle/google play store etc?

1 Like

I think you can remove the drm using calibre, but I donā€™t use kindle so I havenā€™t tried it. As for where to find books, great question lol. Iā€™ve had issues trying to get ebooks and audiobooks from Korean sites (kyobo, naver audioclip, etc.) before because they usually require a Korean credit card or bank account, which I donā€™t have. Iā€™ve really only had success with pottermore and apple books, which is also pretty hard to sort by language. :frowning: If you have netflix, I would recommend importing Korean subtitles from shows you have already watched in another language and reading them in lingq. You could also do this with youtube or reviews/wikipedia pages for books or movies where you already know the plot. Iā€™m also struggling with finding things to read right now so I feel you.

1 Like

as far as reading shows on netflix if they donā€™t put whoā€™s talking in () next to whos saying what its kind of hard to follow since korean doesnā€™t say subjects and donā€™t conjugate by person. also that file im having trouble with is from pottermore even in a txt file itā€™s gibberish and has DRM apparently i imported one of the tiny books and it worked but the main books arent working ive tried all the formats but it just says itā€™s protected which is odd because pottermore books are supposed to not have drm?

Are pottermore books DRM free?

what does this error code mean
ā€˜NoneTypeā€™ object has no attribute ā€˜contentā€™
also now its saying its DRM protected even though the site isnā€™t supported.

Hmm, Iā€™ve got several of the main books from pottermore uploaded to lingq as txts. Iā€™m sorry itā€™s not working :frowning:

1 Like

Unless they have changed it within the last few months, they should be!

1 Like

did you buy the books as a whole collection or just individual books?
Iā€™m just gonna get a refund and rebuy them they didnā€™t come in epub like they said they came in rtf file whatever that means.

I got them individually and they came as epub files.

1 Like

Wait, actually if they came as rtf (rich text file) you should be able to convert it to plain text (txt) using a text editor.

1 Like

ā€œI got them individually and they came as epub files.ā€ that makes sense I bought whole collection but getting refund gonna try with individuals and see if that works. also what text editor would you suggest and how is that done?

I use TextEdit but there are plenty of applications that do the same thing. Iā€™m sure you already have one on your computer. Just open the file in the text editor and there should be an option to convert to plain text. Alternatively you can just try changing the file extension from .rtf to .txt