Skip to content

cvSetData error on import #72

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1.Follow ALMOST exact steps  at 
https://code.google.com/p/python-tesseract/wiki/HowToCompile for Trusty
2.  There is no config.py so I skipped that step??!!
3.

What is the expected output? What do you see instead?
Expected to be able to import tesseract but upon doing an import I get

ubuntu@ip-10-31-38-163:~/python-tesseract/test-slim$ python test.py
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    import tesseract
  File "/usr/local/lib/python2.7/dist-packages/python_tesseract-0.9.1-py2.7-linux-x86_64.egg/tesseract.py", line 28, in <module>
    _tesseract = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/python_tesseract-0.9.1-py2.7-linux-x86_64.egg/tesseract.py", line 24, in swig_import_helper
    _mod = imp.load_module('_tesseract', fp, pathname, description)
ImportError: 
/usr/local/lib/python2.7/dist-packages/python_tesseract-0.9.1-py2.7-linux-x86_64
.egg/_tesseract.so: undefined symbol: cvSetData


What version of the product are you using? On what operating system?
OS: Ubuntu 14.04.1 LTS
Python-tesseract: python_tesseract-0.9.1-py2.7
Python: 2.7.6
OpenCV Python: 2.4.9
Tesseract: 3.03
leptonica-1.70
  libgif 4.1.6(?) : libjpeg 8d : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8 : webp 0.4.0

Please provide any additional information below.
I tried editing setup.py with USE_CV=False which then allows me to import 
tesseract without issues.  I can even run the test-slim/test.py.  HOWEVER, I 
then get an error when trying to use tesseract.SetCvImage().

I saw a similar issue someone was having on raspberry pi but don't think it 
ever got resolved.  Any help is greatly appreciated!


Original issue reported on code.google.com by huck.w...@gmail.com on 21 May 2015 at 7:40

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions