Error while running on PC - DotProductAVX can't be used on Android

(gdb) run
Starting program: /usr/local/bin/tesseract phototest.tif phototest -l eng
warning: Error disabling address space randomization: Success
warning: linux_ptrace_test_ret_to_nx: PTRACE_KILL waitpid returned -1: Interrupted system call
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Tesseract Open Source OCR Engine v4.00.00alpha-221-g34e4003 with Leptonica
Page 1
[New Thread 0x7fd8a83a0700 (LWP 17843)]
[New Thread 0x7fd8a5e20700 (LWP 17844)]
[New Thread 0x7fd8a5610700 (LWP 17845)]
Found AVX
Found SSE
DotProductAVX can't be used on Android
DotProductAVX can't be used on Android

Program received signal SIGABRT, Aborted.
0x00007fd8a9aa6c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007fd8a9aa6c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fd8a9aaa028 in __GI_abort () at abort.c:89
#2  0x00007fd8aa9f5e86 in tesseract::DotProductAVX (u=<optimized out>, v=<optimized out>, n=<optimized out>) at dotproductavx.cpp:30
#3  0x00007fd8aaa30a5a in tesseract::WeightMatrix::MatrixDotVectorInternal (w=..., add_bias_fwd=add_bias_fwd@entry=true, skip_bias_back=skip_bias_back@entry=false,
    u=u@entry=0x33e3430, v=v@entry=0x33e3370) at weightmatrix.cpp:435
#4  0x00007fd8aaa30aea in tesseract::WeightMatrix::MatrixDotVector (this=this@entry=0x22196e8, u=u@entry=0x33e3430, v=v@entry=0x33e3370) at weightmatrix.cpp:235
#5  0x00007fd8aa9f9cdc in tesseract::FullyConnected::ForwardTimeStep (this=this@entry=0x22196a0, d_input=0x33e3430, i_input=<optimized out>, t=t@entry=0,
    output_line=output_line@entry=0x33e3370) at fullyconnected.cpp:180
#6  0x00007fd8aa9fa667 in tesseract::FullyConnected::Forward () at fullyconnected.cpp:141
#7  0x00007fd8aa9fbe01 in tesseract::FullyConnected::Forward (this=0x22196a0, debug=<optimized out>, input=..., input_transpose=<optimized out>, scratch=0x2208908,
    output=0x3086ad0) at fullyconnected.cpp:123
#8  0x00007fd8aaa2c30c in tesseract::Series::Forward (this=0x2219500, debug=<optimized out>, input=..., input_transpose=0x0, scratch=0x2208908, output=0x3086ad0)
    at series.cpp:107
#9  0x00007fd8aaa2c30c in tesseract::Series::Forward (this=0x2219350, debug=<optimized out>, input=..., input_transpose=0x0, scratch=0x2208908, output=0x7ffff3028a70)
    at series.cpp:107
#10 0x00007fd8aaa0b25b in tesseract::LSTMRecognizer::RecognizeLine (this=this@entry=0x22084e0, image_data=..., invert=invert@entry=true, debug=debug@entry=false,
    re_invert=re_invert@entry=false, <EMAIL_ADDRESS>scale_factor=scale_factor@entry=0x7ffff3028a0c, inputs=inputs@entry=0x7ffff3028b00,
    outputs=outputs@entry=0x7ffff3028a70) at lstmrecognizer.cpp:277
#11 0x00007fd8aaa0d136 in tesseract::LSTMRecognizer::RecognizeLine (this=0x22084e0, image_data=..., invert=invert@entry=true, debug=false,
<EMAIL_ADDRESS>use_alternates=<optimized out>, target_unicharset=target_unicharset@entry=0x21cfc60, line_box=...,
    score_ratio=score_ratio@entry=2, one_word=one_word@entry=false, words=words@entry=0x7ffff3028d30) at lstmrecognizer.cpp:153
#12 0x00007fd8aa8b28f3 in tesseract::Tesseract::LSTMRecognizeWord (this=this@entry=0x21cfb70, block=..., row=row@entry=0x2fca520, word=<optimized out>,
    words=words@entry=0x7ffff3028d30) at linerec.cpp:245
#13 0x00007fd8aa897f03 in tesseract::Tesseract::classify_word_pass1 (this=0x21cfb70, word_data=..., in_word=0x2fdf7e0, out_words=0x7ffff3028d30) at control.cpp:1362
#14 0x00007fd8aa899240 in tesseract::Tesseract::RetryWithLanguage (this=0x21cfb70, word_data=..., recognizer=
    (void (tesseract::Tesseract::*)(tesseract::Tesseract * const, const tesseract::WordData &, WERD_RES **, tesseract::PointerVector<WERD_RES> *)) 0x7fd8aa897d40 <tess
eract::Tesseract::classify_word_pass1(tesseract::WordData const&, WERD_RES**, tesseract::PointerVector<WERD_RES>*)>, in_word=0x2fdf7e0,
    best_words=best_words@entry=0x7ffff3028df0) at control.cpp:888
#15 0x00007fd8aa899959 in tesseract::Tesseract::classify_word_and_language (this=this@entry=0x21cfb70, pass_n=pass_n@entry=1, pr_it=pr_it@entry=0x7ffff3028f50,
    word_data=word_data@entry=0x2fdf5d8) at control.cpp:1303
#16 0x00007fd8aa89d92b in tesseract::Tesseract::RecogAllWordsPassN (this=this@entry=0x21cfb70, pass_n=pass_n@entry=1, monitor=monitor@entry=0x0,
    pr_it=pr_it@entry=0x7ffff3028f50, words=words@entry=0x7ffff3028f30) at control.cpp:265
#17 0x00007fd8aa89e6b3 in tesseract::Tesseract::recog_all_words (this=0x21cfb70, page_res=0x2fad7b0, monitor=monitor@entry=0x0,
    target_word_box=target_word_box@entry=0x0, word_config=word_config@entry=0x0, dopasses=dopasses@entry=0) at control.cpp:352
#18 0x00007fd8aa887359 in tesseract::TessBaseAPI::Recognize (this=this@entry=0x7ffff3029380, monitor=0x0) at baseapi.cpp:852
#19 0x00007fd8aa8876fd in tesseract::TessBaseAPI::ProcessPage (this=this@entry=0x7ffff3029380, pix=0x22069a0, page_index=page_index@entry=0,
    filename=filename@entry=0x7ffff3029739 "phototest.tif", retry_config=retry_config@entry=0x0, timeout_millisec=timeout_millisec@entry=0, renderer=renderer@entry=
    0x2e70640) at baseapi.cpp:1164
#20 0x00007fd8aa887cc9 in tesseract::TessBaseAPI::ProcessPagesMultipageTiff (this=this@entry=0x7ffff3029380, data=data@entry=0x0, size=0,
    filename=filename@entry=0x7ffff3029739 "phototest.tif", retry_config=retry_config@entry=0x0, timeout_millisec=timeout_millisec@entry=0,
    renderer=renderer@entry=0x2e70640, tessedit_page_number=-1) at baseapi.cpp:1010
#21 0x00007fd8aa888018 in tesseract::TessBaseAPI::ProcessPagesInternal (this=this@entry=0x7ffff3029380, filename=<optimized out>,
---Type <return> to continue, or q <return> to quit---

I had commented the following 2 lines in configure.ac for tesseract to build
Checks for supported compiler options.
AM_CONDITIONAL([AVX_OPT], false)
AM_CONDITIONAL([SSE41_OPT], false)
##AX_CHECK_COMPILE_FLAG([-mavx], [avx=1], [avx=0])
##AX_CHECK_COMPILE_FLAG([-msse4.1], [sse41=1], [sse41=0])

I had last built it without problems on same pc around December 7.

I reset git to an older commit. Now it works.
shree@ALL-IN-1-TOUCH:/mnt/c/Users/User/shree/tesseract/testing$ tesseract phototest.tif phototest -l eng
Tesseract Open Source OCR Engine v4.00.00alpha-139-g13e46ae with Leptonica
Page 1
Found AVX
Found SSE

Also working with
Tesseract Open Source OCR Engine v4.00.00alpha-204-g8b3c6ac with Leptonica

Problem is that you modified code without knowing what you are doing.

I am able to build
tesseract -v
tesseract 4.00.00alpha-204-g8b3c6ac
leptonica-1.74
libjpeg 8d (libjpeg-turbo 1.3.0) : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8
The latest snapshot does not build on same pc.

Did you check comment on https://github.com/tesseract-ocr/tesseract/issues/601

I had commented the following 2 lines in configure.ac for tesseract to build
Give us the compilation output as file(s) attachment(s).
If you do have avx and sse4.1 and the new code in configure.ac fails to discover it, you can fix it like this:
## Checks for supported compiler options.
AM_CONDITIONAL([AVX_OPT], true)
AM_CONDITIONAL([SSE41_OPT], true)
#AX_CHECK_COMPILE_FLAG([-mavx], [avx=1], [avx=0])
#AX_CHECK_COMPILE_FLAG([-msse4.1], [sse41=1], [sse41=0])

If you do have avx and sse4.1 and the new code in configure.ac fails to discover it, you can fix it like this:
## Checks for supported compiler options.
AM_CONDITIONAL([AVX_OPT], true)
AM_CONDITIONAL([SSE41_OPT], true)
#AX_CHECK_COMPILE_FLAG([-mavx], [avx=1], [avx=0])
#AX_CHECK_COMPILE_FLAG([-msse4.1], [sse41=1], [sse41=0])
#if test x$avx = x1; then
#    AM_CONDITIONAL([AVX_OPT], true)
#fi
#if test x$sse41 = x1; then
#    AM_CONDITIONAL([SSE41_OPT], true)
#fi

It works after installing autoconf-archive as suggested by @zdenop

I am getting the same error running tesseract on Windows 10.
How should I run autoconf-archive on Windows?
Looks like there is a preprocessor directive to always throw this error on i386 architecture.
How should I fix this error on Windows?

Same error is coming on running tesseract on ubuntu 16.04.someone please help.its urgent

@Vidushi12, please don't post your question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version? Can you use Tesseract 3.05 or an earlier version? Tesseract 4.x is experimental and not for end users currently.

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version? Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282265686,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA
.

--
Vidushi

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin   -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version? Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282298890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA
.

But how to uninstall the already installed tesseract and liptonica .These
two i have installed from source
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282312789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA
.

--
Vidushi

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin   -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282298890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA
.

try
https://installion.co.uk/ubuntu/xenial/universe/t/tesseract-ocr/uninstall/index.html
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:35 PM, Vidushi12<EMAIL_ADDRESS>wrote:

But how to uninstall the already installed tesseract and liptonica .These
two i have installed from source
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>

.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313451,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o7ZN_UaznPN27LsSLyzb68kiXFNbks5rfvHCgaJpZM4LVjQA
.

Thank you for your help n support
On 24 Feb 2017 20:36, "Shreeshrii"<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA
.

But is there a way so that I could resolve my original problem?
On command prompt when i am typing
tesseract img.PNG out
It is giving error as ---
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
DotProductAVX can't be used on Android
Aborted (core dumped)
On Fri, Feb 24, 2017 at 8:48 PM, Vidushi Gupta<EMAIL_ADDRESS>wrote:

Thank you for your help n support
On 24 Feb 2017 20:36, "Shreeshrii"<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o1gQT
wf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA
.

--
Vidushi

You have cloned the master branch, which is not the released code, it is
actively under development.
What commit have you used?
You can use Git log to display the status.
As suggested by Stefan you should try the 3.05 branch.

excuse the brevity, sent from mobile

On 24-Feb-2017 9:33 PM, "Vidushi12"<EMAIL_ADDRESS>wrote:

But is there a way so that I could resolve my original problem?
On command prompt when i am typing
tesseract img.PNG out
It is giving error as ---
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
DotProductAVX can't be used on Android
Aborted (core dumped)
On Fri, Feb 24, 2017 at 8:48 PM, Vidushi Gupta<EMAIL_ADDRESS>
wrote:

Thank you for your help n support
On 24 Feb 2017 20:36, "Shreeshrii"<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/
tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o1gQT
wf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282313481>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282328731,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o4wbSjXcxEL120X1ERZGrmJ2a1HZks5rfv89gaJpZM4LVjQA
.

oks.
Thank You for your help and guidance
Regards
Vidushi
On Fri, Feb 24, 2017 at 9:59 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

You have cloned the master branch, which is not the released code, it is
actively under development.
What commit have you used?
You can use Git log to display the status.
As suggested by Stefan you should try the 3.05 branch.

excuse the brevity, sent from mobile

On 24-Feb-2017 9:33 PM, "Vidushi12"<EMAIL_ADDRESS>wrote:

But is there a way so that I could resolve my original problem?
On command prompt when i am typing
tesseract img.PNG out
It is giving error as ---
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
DotProductAVX can't be used on Android
Aborted (core dumped)
On Fri, Feb 24, 2017 at 8:48 PM, Vidushi Gupta <
<EMAIL_ADDRESS>
wrote:

Thank you for your help n support
On 24 Feb 2017 20:36, "Shreeshrii"<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/
tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar <
<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12 <
<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if
you
would
tell me the steps of properly uninstalling tesseract. And from
where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post
your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o1gQT
wf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282313481>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282328731>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o4wbSjXcxEL120X1ERZGrmJ2a1HZks5rfv89gaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282335846,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm5J_xrzVrVyHLO_qv05zmiDBJy_nks5rfwVUgaJpZM4LVjQA
.

--
Vidushi

https://github.com/tesseract-ocr/tesseract/releases/tag/3.05.00
Use the source from the zip/tar file

excuse the brevity, sent from mobile

Last thing i want to know ... can we use .png, .jpeg with 3.05 version of
tesseract ? On some sites it is written tesseract 4.0 version only works
with png file.
Will tesseract 3.05 version work with leptonica version 1.74?
Regards
Vidushi Gupta
On Fri, Feb 24, 2017 at 11:04 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

https://github.com/tesseract-ocr/tesseract/releases/tag/3.05.00
Use the source from the zip/tar file

excuse the brevity, sent from mobile

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282353146,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm5xy0MycRfFhg9piC99w7mVXQ_LTks5rfxTBgaJpZM4LVjQA
.

--
Vidushi

3.05 should work with leptonica 1.74.
It will work with png, jpeg etc, depending on the libs installed
tesseract -v
Should show u the info.
4.0 is using a new OCR engine, LSTM.

excuse the brevity, sent from mobile

On 24-Feb-2017 11:12 PM, "Vidushi12"<EMAIL_ADDRESS>wrote:

Last thing i want to know ... can we use .png, .jpeg with 3.05 version of
tesseract ? On some sites it is written tesseract 4.0 version only works
with png file.
Will tesseract 3.05 version work with leptonica version 1.74?
Regards
Vidushi Gupta
On Fri, Feb 24, 2017 at 11:04 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

https://github.com/tesseract-ocr/tesseract/releases/tag/3.05.00
Use the source from the zip/tar file

excuse the brevity, sent from mobile

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282353146>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm5xy0MycRfFhg9piC99w7mVXQ_LTks5rfxTBgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282355013,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o7wPCmXb4EWJ7LWH_TZnLTsJ4dBtks5rfxZvgaJpZM4LVjQA
.

See
https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage
The info was written for 3.04 and should apply to 3.05

excuse the brevity, sent from mobile

On 24-Feb-2017 11:12 PM, "Vidushi12"<EMAIL_ADDRESS>wrote:

Last thing i want to know ... can we use .png, .jpeg with 3.05 version of
tesseract ? On some sites it is written tesseract 4.0 version only works
with png file.
Will tesseract 3.05 version work with leptonica version 1.74?
Regards
Vidushi Gupta
On Fri, Feb 24, 2017 at 11:04 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

https://github.com/tesseract-ocr/tesseract/releases/tag/3.05.00
Use the source from the zip/tar file

excuse the brevity, sent from mobile

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282353146>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm5xy0MycRfFhg9piC99w7mVXQ_LTks5rfxTBgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282355013,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o7wPCmXb4EWJ7LWH_TZnLTsJ4dBtks5rfxZvgaJpZM4LVjQA
.

@Vidushi12, I suggest to use the Tesseract provided by Ubuntu and don't build it yourself. Just run apt-get install tesseract-ocr tesseract-ocr-eng (add more languages as needed) as root user.

i need only english language.but now the problm i m facing is how to
uninstall it....i have build tesseract from source.
On 24 Feb 2017 23:32, "Stefan Weil"<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, I suggest to use the Tesseract
provided by Ubuntu and don't build it yourself. Just run apt-get install
tesseract-ocr tesseract-ocr-eng (add more languages as needed) as root
user.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282360195,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjmxwoJYavRXWwDznBRCPIqAT92bkbks5rfxs5gaJpZM4LVjQA
.

You can either remove /usr/local/bin/tesseract, or don't uninstall it and call /usr/bin/tesseract explicitly.

So i just need to delete tesseract file from usr/local/bin folder . After
that i will again install tesseract using the command apt-get install
tesseract-ocr tesseract-ocr-eng .
On Sat, Feb 25, 2017 at 12:05 AM, Stefan Weil<EMAIL_ADDRESS>wrote:

You can either remove /usr/local/bin/tesseract, or don't uninstall it and
call /usr/bin/tesseract explicitly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282368238,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm5Gz1Gb4vGh3tkwYuotKHYcI_41Yks5rfyLYgaJpZM4LVjQA
.

--
Vidushi

Yes, that's it.

ok
thank you sir for your help and support
On 25 Feb 2017 15:44, "Stefan Weil"<EMAIL_ADDRESS>wrote:

Yes, that's it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282474563,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm_fTM8I4UGbrm2Og8AKefKgUwQhoks5rf_8QgaJpZM4LVjQA
.

I followed the above commands. And when i try to compile the code it is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract -llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282312789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA
.

--
Vidushi

sir i followed the steps but when i try to compile code it gives error.
tesseract/baseapi.h: No such file or directory
On Sat, Feb 25, 2017 at 3:46 PM, Vidushi Gupta<EMAIL_ADDRESS>wrote:

ok
thank you sir for your help and support
On 25 Feb 2017 15:44, "Stefan Weil"<EMAIL_ADDRESS>wrote:

Yes, that's it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282474563,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm_fTM8I4UGbrm2Og8AKefKgUwQhoks5rf_8QgaJpZM4LVjQA
.

--
Vidushi

apt-get install installs the program.
you dont need to compile it.
give the following commands to see what you have.
which tesseract
tesseract -v
tesseract --help
tesseract --list-langs
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 3:22 PM, Vidushi12<EMAIL_ADDRESS>wrote:

I followed the above commands. And when i try to compile the code it is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract -llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282674708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o9-Q81fTzwHqZPg8gEZHrUzA9hVoks5rgpzJgaJpZM4LVjQA
.

i was trying to run this code
http://8086892010.blogspot.in/2013/08/read-scanned-pdf-line-by-line-using.html
On Mon, Feb 27, 2017 at 4:12 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

apt-get install installs the program.
you dont need to compile it.
give the following commands to see what you have.
which tesseract
tesseract -v
tesseract --help
tesseract --list-langs
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 3:22 PM, Vidushi12<EMAIL_ADDRESS>wrote:

I followed the above commands. And when i try to compile the code it is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract
-llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282674708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o9-
Q81fTzwHqZPg8gEZHrUzA9hVoks5rgpzJgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282686155,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm7TEDa6-rWyrqgSt-qWJywC_7ftiks5rgqiugaJpZM4LVjQA
.

--
Vidushi

step 2 > g++ test.cpp -o test -I/usr/include/leptonica
-I/usr/local/include/tesseract -llept -ltesseract
you have used  -l/usr/bin/tesseract in your command
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 5:37 PM, Vidushi12<EMAIL_ADDRESS>wrote:

i was trying to run this code
http://8086892010.blogspot.in/2013/08/read-scanned-pdf-line-
by-line-using.html
On Mon, Feb 27, 2017 at 4:12 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

apt-get install installs the program.
you dont need to compile it.
give the following commands to see what you have.
which tesseract
tesseract -v
tesseract --help
tesseract --list-langs
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 3:22 PM, Vidushi12<EMAIL_ADDRESS>wrote:

I followed the above commands. And when i try to compile the code it is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract
-llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>

wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if
you
would
tell me the steps of properly uninstalling tesseract. And from
where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post
your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282674708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o9-
Q81fTzwHqZPg8gEZHrUzA9hVoks5rgpzJgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282686155>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOjjm7TEDa6-rWyrqgSt-
qWJywC_7ftiks5rgqiugaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282702980,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o7c_Ky2N5toipjWMBnddaBS9UHpyks5rgryNgaJpZM4LVjQA
.

Not able to remove tesseract from /usr/local/bin folder.
On Sat, Feb 25, 2017 at 12:05 AM, Stefan Weil<EMAIL_ADDRESS>wrote:

You can either remove /usr/local/bin/tesseract, or don't uninstall it and
call /usr/bin/tesseract explicitly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282368238,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm5Gz1Gb4vGh3tkwYuotKHYcI_41Yks5rfyLYgaJpZM4LVjQA
.

--
Vidushi

HI
Sorry for disturbing again.Yesterday i was trying on my friend's system.It
works fine.But now when i am trying on my system it is giving same error.
DotProductAVX can't be used on Android
Aborted (core dumped)
Is it the problem of the system??
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#m_-8680517930591390332_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282312789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA
.

--
Vidushi

Can i delete tesseract-ocr from usr/share folder. I am thinking to remove
tesseract completely from ubuntu
On Fri, Feb 24, 2017 at 8:36 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA
.

--
Vidushi

After performing the above steps I am still getting the following error
DotProductAVX can't be used on Android
Aborted (core dumped)
I would be highly obliged if you would help me in resolving the issue.
Regards
Vidushi
On Sat, Feb 25, 2017 at 12:05 AM, Stefan Weil<EMAIL_ADDRESS>wrote:

You can either remove /usr/local/bin/tesseract, or don't uninstall it and
call /usr/bin/tesseract explicitly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282368238,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm5Gz1Gb4vGh3tkwYuotKHYcI_41Yks5rfyLYgaJpZM4LVjQA
.

--
Vidushi

Does tesseract work on 32-bit operating system
On Tue, Feb 28, 2017 at 3:54 PM, Vidushi Gupta<EMAIL_ADDRESS>wrote:

Can i delete tesseract-ocr from usr/share folder. I am thinking to remove
tesseract completely from ubuntu
On Fri, Feb 24, 2017 at 8:36 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o1gQT
wf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA
.

--
Vidushi

--
Vidushi

thanks for your help and guidance.Resolved the error.
On Tue, Feb 28, 2017 at 4:30 PM, Vidushi Gupta<EMAIL_ADDRESS>wrote:

Does tesseract work on 32-bit operating system
On Tue, Feb 28, 2017 at 3:54 PM, Vidushi Gupta<EMAIL_ADDRESS>
wrote:

Can i delete tesseract-ocr from usr/share folder. I am thinking to remove
tesseract completely from ubuntu
On Fri, Feb 24, 2017 at 8:36 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

See the shell scripts in https://github.com/Shreeshrii/tess4eval_marathi
you can change 4.0 by the 3.05 versions
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 8:31 PM, ShreeDevi Kumar<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/+archive/ubuntu/
tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12<EMAIL_ADDRESS>wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if you
would
tell me the steps of properly uninstalling tesseract. And from where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#issue
comment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o1gQT
wf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282313481,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm3ECVBAY1kTVCX5pcrNj2WLlWwq9ks5rfvHagaJpZM4LVjQA
.

--
Vidushi

--
Vidushi

--
Vidushi

hi,
Is there a way to store the result of tesseract compiled code into text or
pdf file.I am using API example
https://github.com/tesseract-ocr/tesseract/wiki/APIExample.
I want to store the result into text or pdf file instead of displaying on
terminal.
Please tell if there is a way to do it.
On Mon, Feb 27, 2017 at 5:45 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

step 2 > g++ test.cpp -o test -I/usr/include/leptonica
-I/usr/local/include/tesseract -llept -ltesseract
you have used -l/usr/bin/tesseract in your command
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 5:37 PM, Vidushi12<EMAIL_ADDRESS>wrote:

i was trying to run this code
http://8086892010.blogspot.in/2013/08/read-scanned-pdf-line-
by-line-using.html
On Mon, Feb 27, 2017 at 4:12 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

apt-get install installs the program.
you dont need to compile it.
give the following commands to see what you have.
which tesseract
tesseract -v
tesseract --help
tesseract --list-langs
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 3:22 PM, Vidushi12<EMAIL_ADDRESS>wrote:

I followed the above commands. And when i try to compile the code it
is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract
-llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii <
<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12 <
<EMAIL_ADDRESS>

wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged if
you
would
tell me the steps of properly uninstalling tesseract. And from
where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post
your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282674708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o9-
Q81fTzwHqZPg8gEZHrUzA9hVoks5rgpzJgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282686155>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm7TEDa6-rWyrqgSt-
qWJywC_7ftiks5rgqiugaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282702980>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o7c_
Ky2N5toipjWMBnddaBS9UHpyks5rgryNgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282704298,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOjjm0N7-WaR6aQmzmAKjuPPsv-6G1eAks5rgr5RgaJpZM4LVjQA
.

--
Vidushi

It should be possible to do it via api. I know it can be done by
commandline.
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Tue, Mar 7, 2017 at 12:43 PM, Vidushi12<EMAIL_ADDRESS>wrote:

hi,
Is there a way to store the result of tesseract compiled code into text or
pdf file.I am using API example
https://github.com/tesseract-ocr/tesseract/wiki/APIExample.
I want to store the result into text or pdf file instead of displaying on
terminal.
Please tell if there is a way to do it.
On Mon, Feb 27, 2017 at 5:45 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

step 2 > g++ test.cpp -o test -I/usr/include/leptonica
-I/usr/local/include/tesseract -llept -ltesseract
you have used -l/usr/bin/tesseract in your command
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 5:37 PM, Vidushi12<EMAIL_ADDRESS>wrote:

i was trying to run this code
http://8086892010.blogspot.in/2013/08/read-scanned-pdf-line-
by-line-using.html
On Mon, Feb 27, 2017 at 4:12 PM, Shreeshrii<EMAIL_ADDRESS>wrote:

apt-get install installs the program.
you dont need to compile it.
give the following commands to see what you have.
which tesseract
tesseract -v
tesseract --help
tesseract --list-langs
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Mon, Feb 27, 2017 at 3:22 PM, Vidushi12<EMAIL_ADDRESS>

wrote:

I followed the above commands. And when i try to compile the code
it
is
giving error as-
fatal error: tesseract/baseapi.h: No such file or directory
compilation terminated.
For compilation i wrote the command
g++ simple.cpp -o sim -l/usr/include/leptonica -l/usr/bin/tesseract
-llept
-ltesseract
Please tell what could be the problem
Regards
Vidushi
On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii <
<EMAIL_ADDRESS>wrote:

Use the ppa from https://launchpad.net/~alex-p/
+archive/ubuntu/tesseract-ocr
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
sudo apt-get update -q
sudo apt-get install tesseract-ocr -y
tesseract -v
tesseract --list-langs
sudo apt-get install tesseract-ocr-hin -y
(if you want to install Hindi, similarly for other languages)
ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12 <
<EMAIL_ADDRESS>

wrote:

Hello sir,
Sorry for the inconvenience caused.I will not repeat my
mistake.I
have
installed tesseract on Ubuntu
16.04 32 bit os with the help of this site.
https://www.linux.com/blog/using-tesseract-ubuntu
Yes I can use tesseract 3.05 but i would you be highly obliged
if
you
would
tell me the steps of properly uninstalling tesseract. And from
where
to
install tesseract 3.05 and which leptonica version to use.
Thank You for your help and guidance
Regards:
Vidushi Gupta
Student(M.Tech)(NSIT Delhi)
On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil <
<EMAIL_ADDRESS>

wrote:

@Vidushi12 https://github.com/Vidushi12, please don't post
your
question on several places (even if it is urgent for you).
Did you compile Tesseract yourself or do you use a pre-build
version?
Can
you use Tesseract 3.05 or an earlier version? Tesseract 4.x
is
experimental
and not for end users currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282265686>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282298890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_
o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282312789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282674708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o9-
Q81fTzwHqZPg8gEZHrUzA9hVoks5rgpzJgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282686155>,
or mute the thread
<https://github.com/notifications/unsubscribe-
auth/AOjjm7TEDa6-rWyrqgSt-
qWJywC_7ftiks5rgqiugaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282702980>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2_o7c_
Ky2N5toipjWMBnddaBS9UHpyks5rgryNgaJpZM4LVjQA>

.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/tesseract-ocr/tesseract/issues/610#
issuecomment-282704298>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOjjm0N7-
WaR6aQmzmAKjuPPsv-6G1eAks5rgr5RgaJpZM4LVjQA>
.

--
Vidushi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-284640944,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o24Wx3WC7atlqW0P8rmxhULchVJjks5rjQOVgaJpZM4LVjQA
.


det module don't work

hello friend.
i run det https://www.baidu.com
tips:'Could not connect to Docker daemon. Please ensure Docker is running.'
but i sure that docker is running.
root@zeng:/var/lib# service docker status docker start/running, process 4232
docker and images info:
`
root@zeng:/var/lib# docker -v
Docker version 1.6.2, build 7c8fca2
root@zeng:/var/lib# docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
scrapinghub/splash   latest              1f7658a4cabf        10 weeks ago        2.172 GB
`

Hi, the user running detectem has access to docker socket? If not, try with sudo.


Update XAssist tests

Description
Updated tests cases for Xassist covering all possible utilities.
Type of change
Please tick all options which are relevant.

[ ] Bug fix
[ ] New feature
[ ] Added/removed dependencies
[ ] Required documentation updates

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.61%. Comparing base (87e0ab2) to head (ffbff4b).

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #160      +/-   ##
==========================================
+ Coverage   75.26%   78.61%   +3.34%
==========================================
  Files          19       19
  Lines         837      837
  Branches       91       91
==========================================
+ Hits          630      658      +28
+ Misses        207      179      -28

see 1 file with indirect coverage changes
see 1 file with indirect coverage changes


[Filebrowser] Add get delegation token logic for secure hadoop (#3301) (Related with: #3324 )

What changes were proposed in this pull request?
I am working on integrating Hue with SecureHadoop as a ProxyUser.
I found that the behavior of ProxyUser in WebHDFS FileBrowser needs to be enhanced.
When "security_enabled" is true, only "read_url" method use delegation token.
I want to modify the code
so that a user who has been impersonated from Hue(a proxy user) can issue a Delegation Token when using WebHDFS.
(https://github.com/cloudera/hue/discussions/3323)

Hi @SoniaComp and thanks for contributing again :-)
@ranade1 @amitsrivastava can you have a look?

I use this bug fix in my secure hadoop environment successfully, so I'm sure that this bug fix work well.
I want to get feedbacks from other engineers. Thank you for checking the codes 🙇♀

@ranade1 friendly reminder from our contributor here, can you take a look at this PR?

@ranade1 Thank you for your comment! I will change that library with better one.

@bjornalm @ranade1
I changed cachetools to django core cache which is thread-safe.

I tested this code and confirmed that it works properly after fixing the bug.

@SoniaComp Thanks! @ranade1 Can you have another look?

Thank you for your reviews! Are there any parts in this PR that could be improved further?

Hello @SoniaComp , Thank you for putting code changes. I have specific questions.

Have you tried this code where Hue HA is enabled? (For example multiple Hue servers are running behind single Hue LB).
Have you tried using multiple users using Hue HA(above configuration)?

Hi! I appreciate for the good questions! 😊

I am running hue on a Kubernetes cluster using the Hue helm chart. I used an image built using the code written in PR.
And multiple users authenticated through in-house LDAP are using Hue's hdfs filebrowser function with separate permissions using this Hue. (hue was set to hdfs proxy user)

Do I need more test for this code?

@ranade1 @bjornalm  Hi! I am currently running hue with this code for over 100 users. If there are any areas that need further development, I will make corrections.

@SoniaComp thank you. @ranade1 @amitsrivastava Can we please take a moment to see if we can get this PR merged or if additional changes/tests are required?

This is needed.

@SoniaComp
It is about to be closed. :sweat_smile:

cc. @SoniaComp

cc. @bjornalm @ranade1 @amitsrivastava


Pymurtree package: source or binary distribution?

Preferably both. The goal is to make the murtree solver accessible for people who are not familiar with C++, so asking them to compile it themselves is what we want to try to avoid


Autofac and Pipeline Behavior

I am trying to get new pipeline working with autofac but it is running the same pipeline many times with different types.
Adding the following class the MediatR example
public class BehaviorOne<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
    {

        private readonly TextWriter _writer;

        public BehaviorOne(TextWriter writer)
        {
            _writer = writer;
        }

        public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next)
        {
            //System.Diagnostics.Trace.WriteLine($"BehaviorOne - Handle {typeof(TRequest).Name}");

            _writer.WriteLine("BehaviorOne - Handle " + typeof(TRequest).Name);

            var response = await next();

            return response;
        }
    }

Added this to the BuildMediator for the autofac example program.cs
builder.RegisterGeneric(typeof(BehaviorOne<,>)).As(typeof(IPipelineBehavior<,>));

Produced the following output:
Sample mediator implementation using send, publish and post-request handlers in sync and async version.
---------------
Sending Ping...
BehaviorOne - Handle Ping
BehaviorOne - Handle Object
BehaviorOne - Handle IRequest`1
Received: Ping Pong
Sending Ping async...
BehaviorOne - Handle PingAsync
BehaviorOne - Handle Object
BehaviorOne - Handle IRequest`1
Received async: Ping Pong
Publishing Pinged...
Got pinged also.
Got pinged.
Got notified.
Got notified also async.
Publishing Pinged async...
Got notified.
Got pinged also async.
Got pinged async.
Got notified also async.

For the structure map example you get:
Sample mediator implementation using send, publish and post-request handlers in sync and async version.
---------------
Sending Ping...
BehaviorOne - Handle Ping
Received: Ping Pong
Sending Ping async...
BehaviorOne - Handle PingAsync
Received async: Ping Pong
Publishing Pinged...
Got notified.
Got pinged.
Got pinged also.
Got notified also async.
Publishing Pinged async...
Got notified.
Got notified also async.
Got pinged async.
Got pinged also async.

I am having the same issue. The pipeline's Handle method gets called 3 times after sending Ping as @martosource describes.
Removing the line
builder.RegisterSource(new ContravariantRegistrationSource());

seems to fix the problem

@JamesFenton all fixed, thanks.

It seems Autofac does not support registering open generics when doing assembly scanning: https://github.com/autofac/Autofac/issues/215
What this means is that the built in pipeline behaviors RequestPreProcessorBehavior and RequestPostProcessorBehavior do not get registered from the following line from the Autofac sample:
builder.RegisterAssemblyTypes(typeof (IMediator).GetTypeInfo().Assembly).AsImplementedInterfaces();

This also means that any open generic IRequestPreProcessor or IRequestPostProcessor implementations will not get registered, for example:
public class GenericPreProcessor<TRequest> : IRequestPreProcessor<TRequest>
    {
        public Task Process(TRequest request)
        {
            return Task.Delay(0);
        }
    }

The built-in behaviours can be registered using
builder.RegisterGeneric(typeof(RequestPreProcessorBehavior<,>)).AsImplementedInterfaces();
builder.RegisterGeneric(typeof(RequestPostProcessorBehavior<,>)).AsImplementedInterfaces();

But registering of all open generic IRequestPreProcessor or IRequestPostProcessor implementations using assembly scanning requires some more specialised code, possibly similar to https://github.com/autofac/Autofac/issues/215#issuecomment-248538820

I switched to using Autofac instead of using the ASP.NET Core default container because Autofac supports better generic constraints.
I wanted to use interfaces as markers for certain pipeline behaviors like this and Autofac does it:
public class DistributedCachingHandler<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
        where TRequest : class, IUseDistributedCache
        where TResponse : class

Anyway, I believe I would see this issue but I don't because I'm still using the IServiceCollection way of registering types instead of the Autofac builder.  I believe it's confirmed above from @JamesFenton
Maybe using IServiceCollection registration and assembly scanning for Autofac is an option.

What I would like to do is write some tests for each of the different containers. Ideally I'd like to keep the registration code in each of the samples so that people can easily find it. I'd also like to avoid "infecting" the current test project with all the different containers, so perhaps another test project that references all the same projects? What do you think @jbogard?

Well we do have the example projects, I wouldn't mind extending those perhaps to highlight what capabilities each container has through tests.

Yeah that sounds good to me!
On Thu, Jan 19, 2017 at 1:29 PM James<EMAIL_ADDRESS>wrote:

What I would like to do is write some tests for each of the different
containers. Ideally I'd like to keep the registration code in each of the
samples so that people can easily find it. I'd also like to avoid
"infecting" the current test project with all the different containers, so
perhaps another test project that references all the same projects? What do
you think @jbogard https://github.com/jbogard?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jbogard/MediatR/issues/128#issuecomment-273873792,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYMrHl61zG8LHvS_VpI-pehPJlogEMks5rT7mFgaJpZM4LfBd5
.

@JamesFenton If you do not register ContravariantRegistrationSource, it seems that you will lose out on the polymorphic dispatch. For example, if you had an implementation of IRequestPreProcessor<IPing> and Ping implemented IPing, this processor would not be found with the current RequestPreProcessorBehavior<TRequest,TResponse>.
Are you seeing this same limitation?

So was there a solution without caveats?

You can look at the way StructureMap does this and borrow its implementation?

I should have checked the autofac issue, just reposting this here for posterity, a suggested workaround for autofac is:
builder.RegisterAssemblyTypes(assemblies)
    .Where(t => t.GetTypeInfo()
        .ImplementedInterfaces.Any(
            i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof (IRepository<>)))
    .AsImplementedInterfaces()
    .InstancePerLifetimeScope();

Swapping IRepository for IPipelineBehavior i guess.  Havent tried it yet.

@barryschulz you are correct, if you remove the ContravariantRegistrationSource, you cannot use contravariance, e.g. IRequestPreProcessor, but if you keep it, you cannot use generic pipeline behaviours. We haven't needed to use contravariance, but we have used generic pipeline behaviours to process every request. I suppose that achieves the same thing as contravariance, provided your container supports generic constraints like @adamhathcock suggested.
The setup of Autofac does seem to require a lot more ceremony than StructureMap, unfortunately.

Hey guys,
Very old topic but I had the same problem this morning and I solved by implementing my own ScopedContravariantRegistrationSource (as advised by jdaigle). It's a very simple implementation but it works quite well with my very easy scenario:
    public class ScopedContravariantRegistrationSource : IRegistrationSource
    {
        private readonly IRegistrationSource _source = new ContravariantRegistrationSource();
        private readonly List<Type> _types = new List<Type>();

        public ScopedContravariantRegistrationSource(params Type[] types)
        {
            if (types == null)
                throw new ArgumentNullException(nameof(types));
            if (!types.All(x => x.IsGenericTypeDefinition))
                throw new ArgumentException("Supplied types should be generic type definition");
            _types.AddRange(types);
        }

        public IEnumerable<IComponentRegistration> RegistrationsFor(
            Service service,
            Func<Service, IEnumerable<IComponentRegistration>> registrationAccessor)
        {
            var components = _source.RegistrationsFor(service, registrationAccessor);
            foreach (var c in components)
            {
                var defs = c.Target.Services
                    .OfType<TypedService>()
                    .Select(x => x.ServiceType.GetGenericTypeDefinition());

                if (defs.Any(_types.Contains))
                    yield return c;
            }
        }

        public bool IsAdapterForIndividualComponents => _source.IsAdapterForIndividualComponents;
    }

@seroche Can you give an example of usage as well?

I have the same behavior on behaviors as @martosource or @JamesFenton described on dotnet core default DI. Any hints on how to fix it without my own error prone ScopedContravariantRegistrationSource?

I'm using the recommended ASP.NET Core DI registration, see below
            services.AddScoped<ServiceFactory>(p => p.GetService);             services.AddScoped(typeof(IPipelineBehavior<,>), typeof(RequestPreProcessorBehavior<,>));             services.Scan(scan => scan                 .FromAssembliesOf(typeof(IMediator), typeof(FeasibilityApplicationService))                 .AddClasses()                 .AsImplementedInterfaces());
Removing the Scrutor part, seems to do the trick for now.

@maldworth I guess you should change your ContravariantRegistrationSource to this
builder.RegisterSource(new ScopedContravariantRegistrationSource ());

I had a similar issue with MediatR and INotificationHandler I finally doing my own registration source that extend the original ContravariantRegistrationSource
/// <summary>
/// Returns contravariant registration source without duplicator target.
///
/// <see cref="ContravariantRegistrationSource" /> returns all contravariant implementation of a type.
/// For example when we resolve IEnumerable<INotificationHandler<SpecificCommand>> it will returns a collection with GenericHandler<SpecificCommand>, GenericHandler<BaseCommand>, SpecificCommandHandler
/// this registration source will first look up for the native registrations and then group registration based on activator limit type.
/// </summary>
/// <remarks>See https://stackoverflow.com/questions/46464944/autofac-contravariance-and-resolving-open-generic-types </remarks>
public class ExplicitContravariantRegistrationSource : IRegistrationSource
{
    private readonly IRegistrationSource _source = new ContravariantRegistrationSource();
    private readonly Type _type;

    public ExplicitContravariantRegistrationSource(Type type)
    {
        if (type == null)
        {
            throw new ArgumentNullException(nameof(type));
        }
        if (!type.IsGenericTypeDefinition)
        {
            throw new ArgumentException("Type should be a generic type definition", nameof(type));
        }
        this._type = type;
    }

    public IEnumerable<IComponentRegistration> RegistrationsFor(
        Service service,
        Func<Service, IEnumerable<ServiceRegistration>> registrationAccessor)
    {
        if (service is IServiceWithType st
                && st.ServiceType.IsGenericType
                && this._type == st.ServiceType.GetGenericTypeDefinition())
        {

            // get all non contravariant registration source
            var originalRegistrations = registrationAccessor(service).ToArray();

            var components = _source
                                // retrieve all contravariant registration source
                                .RegistrationsFor(service, registrationAccessor)
                                // Group will ensure having only a single registration of a activator limit type
                                .GroupBy(this.GetTargetTypeDefinitionOrSelf)
                                // exclude groups if autofac already resolved the same activator limit type
                                .Where(o => !originalRegistrations.Select(oo => this.GetTargetTypeDefinitionOrSelf(oo.Registration)).Contains(o.Key))
                                // taking the last is the default behavior for autofac, it can be improved
                                .Select(o => o.Last());
            return components;
        }
        else
        {
            return Enumerable.Empty<IComponentRegistration>();
        }
    }

    private Type GetTargetTypeDefinitionOrSelf(IComponentRegistration componentRegistration)
    {
        return componentRegistration.Target.Activator.LimitType.IsGenericType ?
                    componentRegistration.Target.Activator.LimitType.GetGenericTypeDefinition()
                    : componentRegistration.Target.Activator.LimitType;
    }

    public bool IsAdapterForIndividualComponents => _source.IsAdapterForIndividualComponents;
}

and I use it like this :
        builder.RegisterSource(new ExplicitContravariantRegistrationSource(typeof(INotificationHandler<>)));

This issue is also discussed here : https://stackoverflow.com/questions/46464944/autofac-contravariance-and-resolving-open-generic-types/71010423#71010423

Autofac fixed this issue in 6.2.0. But my generic IRequestPostProcessor<TRequest, TResponse> still doesn't work.
Did anyone else solve this problem with the latest version?


roudi_lock should use UDS

Required information
Operating system:
Ubuntu 18.04 LTS
Compiler version:
GCC 7.5.0
Observed result or behaviour:
In the RouDiLock Class is a socket used to prevent the startup of multiple instances of RouDi. This socket is an AF_INET socket which binds to a TCP port. A second starting instance is trying to bind that port and fails with that.
Expected result or behaviour:
Instead of using a TCP port Unix Domain Socket with AF_LOCAL should be used to avoid conflicts with other applications who wants to use that port in future.

Are you sure that Unix Domain Sockets are automatically cleaned up when an application crashes?

Are you sure that Unix Domain Sockets are automatically cleaned up when an application crashes?

Are you sure that Unix Domain Sockets are automatically cleaned up when an application crashes?

It seems not, the binding still persist when a crash occurs and the next time when you try to bind it throws [ 98 ]  Address already in use. So the UDS is not an option then anymore.
Maybe we create an internal port with latched topic which sets some value. The next RouDi connect to the Port and see that the value is set.

Are you sure that Unix Domain Sockets are automatically cleaned up when an application crashes?

It seems not, the binding still persist when a crash occurs and the next time when you try to bind it throws [ 98 ]  Address already in use. So the UDS is not an option then anymore.
Maybe we create an internal port with latched topic which sets some value. The next RouDi connect to the Port and see that the value is set.

You still have the race. How does RouDi know to register at another RouDi? When there is no RouDi and you start two of them, how do they decide which one creates the resources?

You still have the race. How does RouDi know to register at another RouDi? When there is no RouDi and you start two of them, how do they decide which one creates the resources?

Closing this issue as the RouDiLock was removed with #687


Label sheet printer

This PR implements a new "builtin" plugin which prints multiple labels onto a single sheet, and then renders to a PDF

Automatically array the labels onto the page
Multiple sheets printed as required

@martonmiklos please review and LMK what you think, I have based this heavily on your PR 👍

Replaces https://github.com/inventree/InvenTree/pull/4805
Closes https://github.com/inventree/InvenTree/issues/4167
Closes https://github.com/inventree/InvenTree/issues/4626

Hello, are there options to adopt label generation to different sheet formats?
Like different padding between labels or from the beginning/top of the page.
As not always label sheets are the same + some printers are not able to print without any border

The default sheet plugin is pretty generic. What sheets are you working with? I have started work on a plugin for standard sheet sizes (for various commercial brands) but has not progressed very far to date.


New release of 1.5.6?

Hey there,
Just wondering if you'd be up to push a new release that includes the DJANGO_STATIC_FILENAME_GENERATOR functionality.  I'm building a package that depends on django-static, and it'd be great to be able to reference a pypi version, instead of a github branch.
Thanks - and thanks for this excellent library!
-Steven

Sure thing!

Done https://pypi.python.org/pypi/django-static

@peterbe Fantastic - thanks for the quick turnaround!