GoBooDo icon indicating copy to clipboard operation
GoBooDo copied to clipboard

IndexError: list index out of range

Open dmalessio opened this issue 5 years ago • 3 comments

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

dmalessio avatar Nov 02 '20 19:11 dmalessio

The same IndexError, wondering how to fix it.

zachlai avatar Dec 22 '20 07:12 zachlai

same here :/

liukliukliuk avatar Feb 22 '21 07:02 liukliukliuk

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

sfolje0 avatar Feb 23 '21 08:02 sfolje0