openpaperwork / pyocr

A Python wrapper for Tesseract and Cuneiform -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyocr
930 stars 152 forks source link

ImportError: No module named builders #53

Closed kumarivin closed 7 years ago

kumarivin commented 7 years ago

I am getting the below error while executing a script mentioned in initialization section of the readme file

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pyocr/init.py", line 1, in from .pyocr import * File "/usr/local/lib/python2.7/dist-packages/pyocr/pyocr.py", line 50, in from . import tesseract File "/usr/local/lib/python2.7/dist-packages/pyocr/tesseract.py", line 28, in from pyocr.builders import DigitBuilder # backward compatibility

jflesch commented 7 years ago

Hello,

I think you truncated the error message. It should have been one line below.

jflesch commented 7 years ago

Nevermind, I can reproduce it. A contribution broke python 2.7 support.

jflesch commented 7 years ago

def5c07eb08c1f8964e548fe2c17b8f5c2cfd3f0 I'll release Pyocr 0.4.4 asap to fix this issue. Sorry for the mess

jflesch commented 7 years ago

0.4.4 released on Pypi (--> pip install -U pyocr)

kumarivin commented 7 years ago

@jflesch sorry for the late response and thanks a ton !!