maxenxe / HQ-Trivia-Bot-NOT-MAINTAINED-

Small NodeJS bot for HQ Trivia
24 stars 13 forks source link

Tesseract not found command error #1

Closed JDoe21 closed 6 years ago

JDoe21 commented 6 years ago

PS C:\Users\M\Downloads\HQ-Trivia-Bot-master\HQ-Trivia-Bot-master> node bot.js Screenshot done Answers resized node-tesseract: Running 'tesseract answers.jpg C:\Users\M\AppData\Local\Temp\tmp-7636ymymjBsOSTW9' node-tesseract: Preprocessor cleanup { Error: Command failed: tesseract answers.jpg C:\Users\M\AppData\Local\Temp\tmp-7636ymymjBsOSTW9 Der Befehl "tesseract" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

killed: false, code: 1, signal: null, cmd: 'tesseract answers.jpg C:\Users\M\AppData\Local\Temp\tmp-7636ymymjBsOSTW9' }

maxenxe commented 6 years ago

try reinstalling tesseract by executing npm install nodecr , if it doesn't work verify that tesseract is in the PATH field of your environment variables (Open Control Panel » System » Advanced » Environment Variables)

maxenxe commented 6 years ago

Don't forget to tell me if it fixed the problem so I can close the issue 😄

JDoe21 commented 6 years ago

yeah fixed ty

maxenxe commented 6 years ago

no, you just add the path to PATH, so you modify PATH, you add a ; at the end of the PATH, and then the tesseract path without the file ( not your/path/tesseract.exe but your/path/)