Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytesseract exception handling error #1

Open
harshalishinde267 opened this issue Nov 6, 2023 · 0 comments
Open

pytesseract exception handling error #1

harshalishinde267 opened this issue Nov 6, 2023 · 0 comments

Comments

@harshalishinde267
Copy link

There is an exception handling error within handling error in pytesseract.py file from your code.
There is exception handling error in line mentioned below
if name == 'main':
exit(main())

and also in line
try:
proc = subprocess.Popen(cmd_args, **subprocess_args())
except OSError as e:
if e.errno != ENOENT:
raise
else: raise TesseractNotFoundError()

The error is as mentioned below:
installed or it's not in your PATH. See README file for more information.
File "D:\know_your_medicine-master\pytesseract\pytesseract.py", line 255, in run_tesseract
proc = subprocess.Popen(cmd_args, **subprocess_args())
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

File "D:\know_your_medicine-master\pytesseract\pytesseract.py", line 259, in run_tesseract
else: raise TesseractNotFoundError()
File "D:\know_your_medicine-master\pytesseract\pytesseract.py", line 287, in run_and_get_output
run_tesseract(**kwargs)
File "D:\know_your_medicine-master\pytesseract\pytesseract.py", line 425, in
Output.STRING: lambda: run_and_get_output(*args),
File "D:\know_your_medicine-master\pytesseract\pytesseract.py", line 422, in image_to_string
return {
File "D:\know_your_medicine-master\medicine_details.py", line 29, in
text = pytesseract.image_to_string(Image.open(src_path + filename))
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.

can you please check the error and write me back also please give me code or method to remove error.
Please get back to me.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant