Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 45, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1585, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/handler.py", line 304, in run_doc_method
response = doc.run_method(method)
File "apps/frappe/frappe/model/document.py", line 928, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1268, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1250, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 925, in fn
return method_object(*args, **kwargs)
File "apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.py", line 55, in read_image
return read_ocr(self)
File "apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.py", line 73, in read_ocr
text = read_document(
File "apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.py", line 121, in read_document
with PyTessBaseAPI(path='./',lang='tur') as api:
File "tesserocr.pyx", line 1219, in tesserocr.PyTessBaseAPI.__cinit__
File "tesserocr.pyx", line 1233, in tesserocr.PyTessBaseAPI._init_api
RuntimeError: Failed to init API, possibly an invalid tessdata path: ./
When i click the Read File button im getting this type of error from ocr_read.py. Please find the attached images
App Versions
Route
Trackeback
Request Data
Response Data