vaibhavk97 / GoBooDo

A Google book downloader with proxy support.
GNU General Public License v3.0
322 stars 60 forks source link

IndexError: list index out of range #32

Open dmalessio opened 4 years ago

dmalessio commented 4 years ago

Tesseract works perfectly with other applications.

(1, 'Error opening data file \Program Files (x86)\Tesseract-OCR\tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.') ------------------- Creating PDF ------------------- Traceback (most recent call last): File "GoBooDo.py", line 217, in book.start() File "GoBooDo.py", line 197, in start self.processBook() File "GoBooDo.py", line 150, in processBook service.makePdf() File "C:\GoBooDo\makePDF.py", line 15, in makePdf firstPath = self.imageNameList[0] IndexError: list index out of range

zachlai commented 3 years ago

The same IndexError, wondering how to fix it.

liukliukliuk commented 3 years ago

same here :/

sfolje0 commented 3 years ago

Dear @nonvieri, @dmalessio and @zachlai, It works for me on linux (WSL) and I was getting the same error untill I edited/configured the settings in settings.json file correctly.

More specifically, as is said in Readme file, you should configure the line: "tesseract_path": "C:\\program Files\\Tesseract-OCR\\tesseract.exe", // The path for tesseract engine if not available via environment variables.

For me on linux it was to change "C:\\program Files\\Tesseract-OCR\\tesseract.exe" to "/usr/bin/tesseract" since I installed tesseract software in that location.

For you please try to change tesseract path from: "C:\\program Files\\Tesseract-OCR\\tesseract.exe" to: "C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe"

Hope, it helps