robocorp / rpaframework

Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
https://www.rpaframework.org/
Apache License 2.0
1.08k stars 209 forks source link

RPA Desktop OCR - tesseract is not installed or not in PATH #1195

Open jianyepa opened 2 weeks ago

jianyepa commented 2 weeks ago

Tesseract has been installed to path - C:\Program Files\Tesseract-OCR\tesseract.exe and it's added to system environment. However I am still constantly getting the error of OSError: tesseract is not installed or not in PATH, see library documentation for installation instructions

Am I doing anything wrong? Please advise

mikahanninen commented 2 weeks ago

What is your conda.yaml and robot.yaml like ? Also can you show how you are using the tesseract in the code ?

jianyepa commented 2 weeks ago

What is your conda.yaml and robot.yaml like ? Also can you show how you are using the tesseract in the code ?

I'm not running in condo environment and do not have a robot.yaml as well. Just simply calling RPA.Desktop.Click ocr:"Open File"

I then added this line pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' in C:\users\<user>\appdata\local\programs\python\python310\lib\site-packages\RPA\recognition\ocr.py I'm curios how RPA retrieve the path of tesseract.

ProJolle commented 5 days ago

I have same issue, any updates?