Mar-26-2020, 01:35 PM
I've installed PYTesseract but cannot use it. I am getting a traceback that makes no sense to me.
Error:Traceback (most recent call last):
File "./vpnpw.py", line 19, in <module>
print(image_to_string(Image.open(pngfile)))
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 350, in image_to_string
}[output_type]()
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 349, in <lambda>
Output.STRING: lambda: run_and_get_output(*args),
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 260, in run_and_get_output
run_tesseract(**kwargs)
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 232, in run_tesseract
raise TesseractNotFoundError()
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path
Why is is looking for tesseract when the module is named pytesseract? Should I create a symbolic link for 'tesseract' to 'pytesseract' or did I do something else wrong in the install? TIA.