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

Trying to run with Bruce's OCRopus #10

Open
sonofmun opened this issue Mar 23, 2015 · 0 comments
Open

Trying to run with Bruce's OCRopus #10

sonofmun opened this issue Mar 23, 2015 · 0 comments

Comments

@sonofmun
Copy link

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?

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