jerinphilip / ocr-retrain

0 stars 0 forks source link

Graves code error #17

Open Deepayan137 opened 6 years ago

Deepayan137 commented 6 years ago

Hey!! I am getting the following error for some books when I run my clustering code, while it works perfectly fine for rest of the books. Any idea as to why this is happening??

  1 Traceback (most recent call last):
  2   File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/runpy.py", line 193, in _run_module_as_main
  3     "__main__", mod_spec)
  4   File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/runpy.py", line 85, in _run_code
  5     exec(code, run_globals)
  6   File "/data5/deepayan/new_ocr/doctools/scripts/cluster.py", line 12, in <module>
  7     from doctools.ocr import GravesOCR
  8   File "/data5/deepayan/new_ocr/doctools/ocr/__init__.py", line 1, in <module>
  9     from doctools.ocr import pyocr
 10   File "/data5/deepayan/new_ocr/doctools/ocr/pyocr.py", line 28, in <module>
 11     _pyocr = swig_import_helper()
 12   File "/data5/deepayan/new_ocr/doctools/ocr/pyocr.py", line 24, in swig_import_helper
 13     _mod = imp.load_module('_pyocr', fp, pathname, description)
 14   File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/imp.py", line 242, in load_module
 15     return load_dynamic(name, filename, file)
 16   File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/imp.py", line 342, in load_dynamic
 17     return _load(spec)
 18 ImportError: libcurl.so.4: cannot open shared object file: No such file or directory
jerinphilip commented 6 years ago

Could this be node specific? Have a look?

Why is it going through the weird environment?

On Wed, 29 Nov 2017, 21:46 Deepayan, notifications@github.com wrote:

Hey!! I am getting the following error for some books when I run my clustering code, while it works perfectly fine for rest of the books. Any idea as to why this is happening??

1 Traceback (most recent call last): 2 File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/runpy.py", line 193, in _run_module_as_main 3 "main", mod_spec) 4 File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/runpy.py", line 85, in _run_code 5 exec(code, run_globals) 6 File "/data5/deepayan/new_ocr/doctools/scripts/cluster.py", line 12, in 7 from doctools.ocr import GravesOCR 8 File "/data5/deepayan/new_ocr/doctools/ocr/init.py", line 1, in 9 from doctools.ocr import pyocr 10 File "/data5/deepayan/new_ocr/doctools/ocr/pyocr.py", line 28, in 11 _pyocr = swig_import_helper() 12 File "/data5/deepayan/new_ocr/doctools/ocr/pyocr.py", line 24, in swig_import_helper 13 _mod = imp.load_module('_pyocr', fp, pathname, description) 14 File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/imp.py", line 242, in load_module 15 return load_dynamic(name, filename, file) 16 File "/users/deepayan/miniconda3/envs/pytorch/lib/python3.6/imp.py", line 342, in load_dynamic 17 return _load(spec) 18 ImportError: libcurl.so.4: cannot open shared object file: No such file or directory

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jerinphilip/ocr-retrain/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsY_J0tYYTrQLeVHlWTWgPftKaqZPmnks5s7YNcgaJpZM4QvOfn .

-- Jerin Philip

Deepayan137 commented 6 years ago

I created a virtual env, I run all OCR related codes in that, I guess presently the code runs error free only on node12, 6 and 4 .