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

Tesseract __init__.py not working. #46

Closed soumik862003 closed 8 years ago

soumik862003 commented 8 years ago

import tesseract File "C:\Users\AppData\Local\Continuum\Anaconda3\lib\site-packages\tesseractinit.py", line 34 print 'Creating user config file: {}'.format(_config_file_usr) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "", line 1, in

there at the line 34 it shows like this:

image

jflesch commented 8 years ago

There is no file tesseract/__init__.py and no message "Creating user config file:{}" in PyOCR. I think you reported this to the wrong developer / library.

jflesch commented 8 years ago

BTW, for PyOCR, the basic import is import pyocr and not import tesseract.

jflesch commented 8 years ago

I believe you have been trying to use this package : https://pypi.python.org/pypi/tesseract/0.1.3 It has nothing to do with OCR or Google's Tesseract.

If you actually want to work with OCR, I suggest you uninstall 'tesseract' first (sudo pip uninstall tesseract / sudo pip3 uninstall tesseract) and install and use PyOCR instead (or any other Google's Tesseract wrapper like python-tesseract for instance)..