-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompilationError with tesseract-ocr 3.04 #50
Comments
Yeah, it looks like they changed quite some stuff, especially regarding output. It will take some time, in the meantime you can use |
OK. Thanks. |
👍 |
do you know which stuff changed? perhaps I can help |
@acrogenesis it looks like they added a |
The changes in the following fork fixed the problem for me with the Tesseract 3.04 baseline: ortutay@74a4042 This also applies to MacOS and Tesseract installed via Homebrew which now defaults to 3.04. @meh can you share your thoughts on this change |
@cxhartmann the problem is the Ruby side of things expect With that change it's going to compile, but it's going to segfault or worse as soon as you use anything related to |
@meh Ah I see. So there is more to it. Bummer, but only if you use process_page? I'd have to guess it might be more than just that. For now I'm reverting to Tesseract v 3.02 and that seems to be working. Now that homebrew points to 3.04 (as of Sept), I went ahead and just brew uninstalled and sucked down the old homebrew formula to do the 3.02 build for me and that seems to be working fine. https://github.com/Homebrew/homebrew/blob/master/Library/Formula/tesseract.rb (check a few revisions back) |
@cxhartmann yes, and the biggest problem is getting this gem to work with both pre and post 3.04. |
@meh Any word on supporting 3.04? |
Haven't had the time to work on it unfortunately, it's on my endless TODO list |
+1 |
I just wanted to use OS :
Gem :
tessaract :
ruby :
It's not clear if I need to import
It's also not clear if HERE is a full |
This is still an issue: tesseract 3.04.01 *** LOCAL GEMS *** Error: |
I tried using this to install a downgraded version of Tesseract on my Mac. However, I get the following error Error: Calling Resource#sha1 is disabled! How do I rectify this issue? |
@Mahesh8 Tried the same, getting nowhere so far |
After fiddling around for a while I came up with a solution. I've modified the file to use sha256 and also update the broken links in the file.
|
This fix doesn't seem to be working anymore - is there a current workaround? |
It doesn't work because it has some outdated homebrew terminology. I commented out a few lines and was able to install Tesseract 3.0.2 and make this lib work! For anyone looking for which lines to comment out: |
thank you @zachfeldman -- with the file above I'm getting
I wonder where this is coming from because I don't see any such syntax in your Tesseract.rb (from gist) above |
There are 2 weird download links in the script mentioned in the solution here #50 (comment) which I don't trust. My main concern is with the GoogleDrive link (which is now also broken as well). Therefore issue still present for me. |
I'm getting a CompilationError when 'require tesseract-ocr'.
CompilationError: compile error: see logs at /tmp/.ffi-inline-1000/00ac1de4050b632b230475bd71c0dc3a7de45a89.log
from /usr/lib/ruby/gems/2.2.0/gems/ffi-inline-0.0.4.3/lib/ffi/inline/compilers/gcc.rb:35:in `compile'
full trace is here, and ffi-inline's error log
Is the latest tesseract-ocr( 3.04) supported?
or any API changed?
There are similar problem bellow.
ruby on rails - Tesseract-ocr gem issue on mac os x - Stack Overflow
OS: Arch Linux
gem
tesseract
ruby
Thanks in Advance.
The text was updated successfully, but these errors were encountered: