ifara / python-tesseract

Automatically exported from code.google.com/p/python-tesseract
0 stars 0 forks source link

Leptonica 1.71 breaks python-tesseract 0.9-0.3 #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is on a Mac OS X 10.9.4 system with leptonica installed through Homebrew 
(using the standard formula as it was updated to 1.70 a little while ago), 
along with Python installed through Homebrew. I was using python-tesseract for 
a program I'm developing and python-tesseract 0.9-0.3 was working fine. Over 
the weekend, Homebrew updated their formula to leptonica 1.71, which was 
released about a week ago. When I try to run the program now, I get a symbol 
not found error.

What is the expected output? What do you see instead?
I expect to see no output when importing the module. Instead, I get:
dlopen(/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/l
ib/python2.7/site-packages/python_tesseract-0.9-0.3.py2.7-macosx-10.9-x86_64.egg
/_tesseract.so, 2): Symbol not found: _bbufferReadStdin
  Referenced from: /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/python_tesseract-0.9-0.3.py2.7-macosx-10.9-x86_64.egg/_tesseract.so
  Expected in: /usr/local/lib/liblept.4.dylib
 in /usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/python_tesseract-0.9-0.3.py2.7-macosx-10.9-x86_64.egg/_tesseract.so

What version of the product are you using? On what operating system?
python-tesseract 0.9-0.3 on Mac OS X 10.9.4 "Mavericks" with Python 2.7.8.

Please provide any additional information below.
I don't know for sure whether this is a suitable fix or whether it'll break 
other people's programs, but commenting out several function declarations in 
allheaders_mini.h and rebuilding the source fixes the issue. I've attached the 
modified header file. There's several functions that don't appear to exist 
anymore. I probably wouldn't want to put 1.71's header in here, as that will 
likely break the installation for people with 1.70 who don't have the new 
functions introduced with 1.71.

Original issue reported on code.google.com by mtug...@sightlineinnovation.com on 7 Jul 2014 at 5:55

Attachments:

GoogleCodeExporter commented 9 years ago
I should mention how I decided what functions to comment out. That was 
accomplished by trying to build the source and seeing several functions being 
declared as not being found when attempting to link with leptonica. I went 
through those errors in the order they were being thrown until the source built.

Original comment by mtug...@sightlineinnovation.com on 7 Jul 2014 at 5:57

GoogleCodeExporter commented 9 years ago
Thank you for reporting.

Original comment by FreeT...@gmail.com on 9 Jul 2014 at 5:12

GoogleCodeExporter commented 9 years ago
Does r659 close this issue?

Original comment by mtug...@sightlineinnovation.com on 15 Jul 2014 at 12:51

GoogleCodeExporter commented 9 years ago
too busy to check. i uploaded it anyway because i have faith on you

Original comment by FreeT...@gmail.com on 15 Jul 2014 at 4:27

GoogleCodeExporter commented 9 years ago
Can confirm that HEAD
Repository Root: http://python-tesseract.googlecode.com/svn
Revision: 659

builds fine.

Original comment by baerr...@gmail.com on 10 Aug 2014 at 9:08