OpenPhilology / Iris

The OCR pipeline to succeed Rigaudon
2 stars 0 forks source link

Trying to run with Bruce's OCRopus #10

Open sonofmun opened 9 years ago

sonofmun commented 9 years ago

When I try to run iris with a locally installed version of Bruce's OCRopus fork, I get the following error message in celery:

[2015-03-23 12:01:03,122: ERROR/Worker-16] Chord u'e4ed6bc6-3704-40b7-a927-ce11356472c8' raised: "Dependency 063dccc7-a6ab-4e36-bbe1-6f6eec96f4b0 raised TypeError('exceptions must be old-style classes or derived from BaseException, not dict',)" Traceback (most recent call last): File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/celery/backends/base.py", line 556, in on_chord_part_return ret = j(timeout=3.0, propagate=propagate) File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/celery/result.py", line 695, in join_native raise value TypeError: exceptions must be old-style classes or derived from BaseException, not dict [2015-03-23 12:01:03,126: ERROR/MainProcess] Task ocr_ocropus[063dccc7-a6ab-4e36-bbe1-6f6eec96f4b0] raised unexpected: IrisOcropusException() Traceback (most recent call last): File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task R = retval = fun(_args, _kwargs) File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/celery/app/trace.py", line 437, in protected_call return self.run(_args, _kwargs) File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/iris/tasks.py", line 176, in ocr_ocropus return storage.get_storage_path(ocropus.ocr(input_path, output_path, model)) File "/home/mmunson/envs/Ben_Iris/local/lib/python2.7/site-packages/iris/ocropus.py", line 38, in ocr raise IrisOcropusException(err) IrisOcropusException

Would it be possible to add a line in the iris.yaml file that is the path to the OCRopus installation we would like to use? This would allow using Bruce's fork for Greek and the normal OCRopus for other tasks. Or is there a better solution to this problem?