dakaugu / hqtrivia

A Python script that answers HQ Trivia questions using an OCR and google search under 10 seconds (with reasonable internet speed)
Apache License 2.0
2 stars 2 forks source link

Play.py errors #1

Closed ghost closed 6 years ago

ghost commented 6 years ago

Traceback (most recent call last): File "D:\Desktop\hqtrivia-master\play.py", line 112, in feed(img) File "D:\Desktop\hqtrivia-master\play.py", line 83, in feed text = pytesseract.image_to_string(image) File "C:\Users\Tom\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 193, in image_to_string return run_and_get_output(image, 'txt', lang, config, nice) File "C:\Users\Tom\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 140, in run_and_get_output run_tesseract(**kwargs) File "C:\Users\Tom\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 111, in run_tesseract proc = subprocess.Popen(command, stderr=subprocess.PIPE) File "C:\Users\Tom\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "C:\Users\Tom\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

ghost commented 6 years ago

All requirements are installed

dakaugu commented 6 years ago

Don't forget to install tesseract ocr

https://github.com/tesseract-ocr/tesseract/wiki