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

ABBYY OCR does not work #5

Open
madmath03 opened this issue Aug 12, 2019 · 0 comments
Open

ABBYY OCR does not work #5

madmath03 opened this issue Aug 12, 2019 · 0 comments

Comments

@madmath03
Copy link

The OCR Receipt code does not work because there is no process_xml:

Traceback (most recent call last):
  File "/home/monogramm/dev/frappe/bench/env/lib/python3.5/site-packages/rq/worker.py", line 793, in perform_job
    rv = job.perform()
  File "/home/monogramm/dev/frappe/bench/env/lib/python3.5/site-packages/rq/job.py", line 599, in perform
    self._result = self._execute()
  File "/home/monogramm/dev/frappe/bench/env/lib/python3.5/site-packages/rq/job.py", line 605, in _execute
    return self.func(*self.args, **self.kwargs)
  File "/home/monogramm/dev/frappe/bench/apps/frappe/frappe/utils/background_jobs.py", line 98, in execute_job
    method = frappe.get_attr(method)
  File "/home/monogramm/dev/frappe/bench/apps/frappe/frappe/__init__.py", line 1027, in get_attr
    return getattr(get_module(modulename), methodname)
  File "/home/monogramm/dev/frappe/bench/apps/frappe/frappe/__init__.py", line 808, in get_module
    return importlib.import_module(modulename)
  File "/home/monogramm/dev/frappe/bench/env/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/monogramm/dev/frappe/bench/apps/erpnext_ocr/erpnext_ocr/erpnext_ocr/xml_reader.py", line 2, in <module>
    from process_xml import recognizeFile
ImportError: No module named 'process_xml'
08:16:50 Moving job to 'failed' queue

But why did you include ABBYY OCR in the first place since you're using Tesseract for the OCR Read ?

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