imports from __init__.py not working
Created by: phaebz
I am doing import pyocr
as described in the README, but after that I can't access pyocr.get_available_tools()
. So is there something wrong with the from pyocr import *
in __init__.py
? FWIW, I am running on Debian Testing in a virtualenv with pyocr installed with pip.
Update:
I tried with the old way from pyocr import pyocr
which gives the error
In [1]: from pyocr import pyocr
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-6e3defe0fffd> in <module>()
----> 1 from pyocr import pyocr
/home/user/.virtualenvs/venv/lib/python3.3/site-packages/pyocr/pyocr.py in <module>()
46 """
47
---> 48 import cuneiform
49 import tesseract
50
ImportError: No module named 'cuneiform'