na-- / ebook-tools

Shell scripts for organizing and managing ebook collections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on line 311

turkeyphant opened this issue · comments

Keep getting this error. I suspect it's not escaping a file name properly or something but as there's no verbose mode, I can't see which files are causing it issues.

edit: found the verbose mode at bottom of README.md (derp), for some reason couldn't see it in --help or the source.

This is an example.

[./2 B R 0 2 B.Kurt Vonnegut.epub]      Testing './2 B R 0 2 B.Kurt Vonnegut.epub' for corruption...
[./2 B R 0 2 B.Kurt Vonnegut.epub]      The file has a '.epub' extension, testing with 7z...
[./2 B R 0 2 B.Kurt Vonnegut.epub]      File passed the corruption test, looking for ISBNs...
[./2 B R 0 2 B.Kurt Vonnegut.epub]      Searching file './2 B R 0 2 B.Kurt Vonnegut.epub' for ISBN numbers...
[./2 B R 0 2 B.Kurt Vonnegut.epub]      Ebook MIME type: application/epub+zip
[./2 B R 0 2 B.Kurt Vonnegut.epub]      This application failed to start because it could not find or load the Qt platform plugin "headless"
[./2 B R 0 2 B.Kurt Vonnegut.epub]      in "/usr/lib/calibre/calibre/plugins".
[./2 B R 0 2 B.Kurt Vonnegut.epub]
[./2 B R 0 2 B.Kurt Vonnegut.epub]      Reinstalling the application may fix this problem.
[./2 B R 0 2 B.Kurt Vonnegut.epub]      ERROR on line 569 /ebook-tools/lib.sh!
[./2 B R 0 2 B.Kurt Vonnegut.epub]      ERROR on line 569 /ebook-tools/lib.sh!
[./2 B R 0 2 B.Kurt Vonnegut.epub]      ERROR on line 296 /ebook-tools/organize-ebooks.sh!
ERROR on line 311 /ebook-tools/organize-ebooks.sh!
commented

I'm really not sure if this will help, but figured I'd throw it out there -- I've seen similar looking errors in the past when it couldn't download the Goodreads plugin. I submitted a pull request with an updated URL+hash in the Dockerfile, but it's not merged in yet.

The commit is here:
5f51875

The new link is: https://www.mobileread.com/forums/attachment.php?attachmentid=168584
The new hash is: 04cc13ed59a698532b3565eb2dcda4a388744d5af9c7065a13c2a323a9fa1f9a

I was receiving the exact same error message. Turns out it was a permission error. I ran the script again as sudo and all was well.

Hope this helps you.