unicharset_extractor error

129 views
Skip to first unread message

anne

unread,
May 20, 2019, 7:20:14 AM5/20/19
to tesseract-ocr
Hi, I got this error while running the unicharset_extractor command "ERROR: shared library version mismatch (was 4.1.0-rc1-170-gb6bf, expected 4.1.0-rc2-48-g5320
". I have already uninstalled Tesseract and reinstalled it again but i still keep getting this error. Any suggestions on how I can solve this?

Shree Devi Kumar

unread,
May 20, 2019, 7:52:01 AM5/20/19
to tesser...@googlegroups.com
You need to make sure that you build/install tesseract as well as training_tools, otherwise they may get out of sync.

How are you reinstalling it?

On Mon, May 20, 2019 at 4:50 PM anne <christinea...@gmail.com> wrote:
Hi, I got this error while running the unicharset_extractor command "ERROR: shared library version mismatch (was 4.1.0-rc1-170-gb6bf, expected 4.1.0-rc2-48-g5320
". I have already uninstalled Tesseract and reinstalled it again but i still keep getting this error. Any suggestions on how I can solve this?

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/69dc3713-a621-40dc-9e11-315793bca4b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

anne

unread,
May 20, 2019, 8:32:06 AM5/20/19
to tesseract-ocr
i did "sudo apt-get install tesseract-ocr"

Shree Devi Kumar

unread,
May 20, 2019, 9:44:24 AM5/20/19
to tesser...@googlegroups.com
What is your Ubuntu version?

Are you using the ppa for installing? 

On Mon, 20 May 2019, 18:02 anne, <christinea...@gmail.com> wrote:
i did "sudo apt-get install tesseract-ocr"

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Shree Devi Kumar

unread,
May 20, 2019, 9:45:02 AM5/20/19
to tesser...@googlegroups.com
Also check if you have two versions of program installed?

anne

unread,
May 23, 2019, 6:14:58 AM5/23/19
to tesseract-ocr
I'm using ubuntu version 18.04
and if I check for tesseract's version this is what I get
tesseract 4.1.0-rc1-170-gb6bf
 leptonica-1.78.0
  libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11
 Found AVX2
 Found AVX
 Found SSE

Shree Devi Kumar

unread,
May 23, 2019, 6:54:23 AM5/23/19
to tesser...@googlegroups.com
what's the output of

which tesseract
which text2image
which unicharset_extractor

tesseract -v
text2image -v
unicharset_extractor -v

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.

anne

unread,
May 23, 2019, 6:59:58 AM5/23/19
to tesseract-ocr
These are the outputs
which tesseract: /usr/bin/tesseract
which text2image: /usr/bin/text2image
which unicharset_extractor: /usr/bin/unicharset_extractor

tesseract -v:
tesseract 4.1.0-rc1-170-gb6bf
 leptonica-1.78.0
  libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11
 Found AVX2
 Found AVX
 Found SSE

text2image -v:
ERROR: shared library version mismatch (was 4.1.0-rc1-170-gb6bf, expected 4.1.0-rc2-73-g3452c
Did you use a wrong shared tesseract library?

unicharset_extractor -v:
ERROR: shared library version mismatch (was 4.1.0-rc1-170-gb6bf, expected 4.1.0-rc2-73-g3452c
Did you use a wrong shared tesseract library?

Shree Devi Kumar

unread,
May 23, 2019, 7:47:55 AM5/23/19
to tesser...@googlegroups.com
sudo apt-get purge --auto-remove tesseract-ocr

also, in your tesseract directory
make clean
make uninstall
Then reinstall again by

sudo add-apt-repository ppa:alex-p/tesseract-ocr
sudo apt-get update
sudo apt-get install -y \
  libleptonica-dev \
  libtesseract4 \
  libtesseract-dev \
  tesseract-ocr



--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted

anne

unread,
May 23, 2019, 9:20:20 AM5/23/19
to tesseract-ocr
I'm sorry if this may sound dumb but uh, where exactly is the tesseract directory located?

Shree Devi Kumar

unread,
May 23, 2019, 11:50:57 AM5/23/19
to tesser...@googlegroups.com
You would have had tesseract directory in case you had built it from source.

>I still have the same error
are you still getting same version numbers?


On Thu, May 23, 2019 at 6:50 PM anne <christinea...@gmail.com> wrote:
I'm sorry if this may sound dumb but uh, where exactly is the tesseract directory located?

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.

Shree Devi Kumar

unread,
May 23, 2019, 11:53:45 AM5/23/19
to tesser...@googlegroups.com
sudo apt-get purge --auto-remove   libtesseract4 
sudo apt-get purge --auto-remove    libtesseract-dev 

sudo apt-get purge --auto-remove    tesseract-ocr

Share the console output log from the above

anne

unread,
May 24, 2019, 4:22:32 AM5/24/19
to tesseract-ocr
sudo apt-get purge --autore-remove libtesseract4

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  libtesseract-dev* libtesseract4* tesseract-ocr* tesseract-ocr-osd*
0 upgraded, 0 newly installed, 4 to remove and 272 not upgraded.
After this operation, 22.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 203490 files and directories currently installed.)
Removing libtesseract-dev:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing tesseract-ocr (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing libtesseract4:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing tesseract-ocr-osd (1:4.00~git30-7274cfa-1ppa1~bionic1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

sudo apt-get purge --auto-remove libtesseractdev

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'libtesseract-dev' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 272 not upgraded.

sudo apt-get purge --auto-remove tesseract-ocr

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'tesseract-ocr' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 272 not upgraded.

As for the errors, I removed tesseract again after that hence the output for "sudo apt-get purge --auto-remove tesseract-ocr" but yes, I still got the same version numbers when I checked it before removing it.

Shree Devi Kumar

unread,
May 24, 2019, 5:08:06 AM5/24/19
to tesser...@googlegroups.com
Please run following commands again, just to check

what's the output of

which tesseract
which text2image
which unicharset_extractor

tesseract -v
text2image -v
unicharset_extractor -v
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.

Shree Devi Kumar

unread,
May 24, 2019, 5:09:10 AM5/24/19
to tesser...@googlegroups.com
After that, run the following and post the console output 

sudo add-apt-repository ppa:alex-p/tesseract-ocr
sudo apt-get update
sudo apt-get install -y \
  libleptonica-dev \
  libtesseract4 \
  libtesseract-dev \
  tesseract-ocr

Shree Devi Kumar

unread,
May 24, 2019, 5:12:46 AM5/24/19
to tesser...@googlegroups.com
The version you reported and the one removed are different.

>I'm using ubuntu version 18.04
and if I check for tesseract's version this is what I get
tesseract 4.1.0-rc1-170-gb6bf


>text2image -v:
ERROR: shared library version mismatch (was 4.1.0-rc1-170-gb6bf, expected 4.1.0-rc2-73-g3452c
Did you use a wrong shared tesseract library?


>Removing libtesseract-dev:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing tesseract-ocr (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing libtesseract4:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Removing tesseract-ocr-osd (1:4.00~git30-7274cfa-1ppa1~bionic1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...


anne

unread,
May 24, 2019, 5:35:31 AM5/24/19
to tesseract-ocr
which tesseract: /snap/bin/tesseract
which text2image: no output
which unicharset_extractor: no output

tesseract -v: bash: /usr/bin/tesseract: No such file or directory
text2image -v: bash: /usr/bin/text2image: No such file or directory
unicharset_extractor -v: bash: /usr/bin/unicharset_extractor: No such file or directory

sudo add-apt-repository ppa: alex-p/tesseract-ocr:
Hit:1 http://ph.archive.ubuntu.com/ubuntu bionic InRelease          
Get:2 http://ph.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu bionic InRelease
Hit:5 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
Hit:6 http://ph.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:7 https://download.sublimetext.com apt/stable/ InRelease        
Get:8 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [517 kB]
Hit:9 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease   
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [353 kB]
Hit:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
Get:12 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [618 kB]
Get:13 http://ph.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [229 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [265 kB]
Get:15 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [925 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [125 kB]
Get:17 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [937 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [242 kB]
Get:19 http://ph.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [275 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [247 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [140 kB]
Fetched 5,050 kB in 38s (133 kB/s)                                  
Reading package lists... Done

sudo apt-get update:
Hit:1 http://ph.archive.ubuntu.com/ubuntu bionic InRelease          
Hit:2 http://ph.archive.ubuntu.com/ubuntu bionic-updates InRelease  
Hit:3 http://ph.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease   
Hit:5 http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu bionic InRelease
Hit:6 https://download.sublimetext.com apt/stable/ InRelease        
Hit:7 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease   
Hit:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
Reading package lists... Done

last command:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libleptonica-dev is already the newest version (1.78.0-1+nmu1ppa1~bionic1).
The following NEW packages will be installed:
  libtesseract-dev libtesseract4 tesseract-ocr tesseract-ocr-osd
0 upgraded, 4 newly installed, 0 to remove and 257 not upgraded.
Need to get 0 B/6,045 kB of archives.
After this operation, 22.8 MB of additional disk space will be used.
Selecting previously unselected package libtesseract4:amd64.
(Reading database ... 203379 files and directories currently installed.)
Preparing to unpack .../libtesseract4_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb ...
Unpacking libtesseract4:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Selecting previously unselected package libtesseract-dev:amd64.
Preparing to unpack .../libtesseract-dev_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb ...
Unpacking libtesseract-dev:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Selecting previously unselected package tesseract-ocr-osd.
Preparing to unpack .../tesseract-ocr-osd_1%3a4.00~git30-7274cfa-1ppa1~bionic1_all.deb ...
Unpacking tesseract-ocr-osd (1:4.00~git30-7274cfa-1ppa1~bionic1) ...
Selecting previously unselected package tesseract-ocr.
Preparing to unpack .../tesseract-ocr_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb ...
Unpacking tesseract-ocr (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Setting up libtesseract4:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...
Setting up tesseract-ocr-osd (1:4.00~git30-7274cfa-1ppa1~bionic1) ...

Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libtesseract-dev:amd64 (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...

Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up tesseract-ocr (4.1.0~git3914-3452c8eb-1ppa1~bionic1) ...



anne

unread,
May 24, 2019, 5:36:36 AM5/24/19
to tesseract-ocr
To be honest, I am very confused right now. I'm new to Ubuntu and Tesseract so if my questions are  a bit eccentric, I do apologize for that.

Shree Devi Kumar

unread,
May 24, 2019, 5:49:27 AM5/24/19
to tesser...@googlegroups.com
which tesseract: /snap/bin/tesseract
which text2image: no output
which unicharset_extractor: no output

This shows that you have a version of tesseract installed in  /snap/bin/tesseract

This needs to be removed. 

On Fri, May 24, 2019 at 3:06 PM anne <christinea...@gmail.com> wrote:
To be honest, I am very confused right now. I'm new to Ubuntu and Tesseract so if my questions are  a bit eccentric, I do apologize for that.

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.

anne

unread,
May 24, 2019, 6:05:07 AM5/24/19
to tesseract-ocr
I removed it, checked which commands to which no outputs are shown.
Checked versions of tesseract, text2image, unicharset_extractor, console log tells me there is no such file or directory.

Reinstalled tesseract, and I still get the same version number and error

Shree Devi Kumar

unread,
May 24, 2019, 6:14:21 AM5/24/19
to tesser...@googlegroups.com, zdenko podobny
I am at the limit of my Linux knowledge now :-(

Someone else will need to help you fix the library mismatch.

@zdenop @amitdo @stweil ...... 



--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

For more options, visit https://groups.google.com/d/optout.

anne

unread,
May 24, 2019, 6:17:03 AM5/24/19
to tesseract-ocr
 It's okay Shree, thank you very much for your help

Stefan Weil

unread,
May 24, 2019, 9:10:14 AM5/24/19
to tesseract-ocr
Hi Anne,

please try this command sequence and report the result:

    type tesseract
    type unicharset_extractor
    ls -l /usr/bin/tesseract
    ls -l /usr/bin/unicharset_extractor

Regards
Stefan

anne

unread,
May 24, 2019, 9:16:21 AM5/24/19
to tesseract-ocr
Hi Stefan, these are the results:
type tesseract
tesseract is hashed (/usr/bin/tesseract)

type unicharset_extractor
unicharset_extractor is hashed (/usr/bin/unicharset_extractor)

ls -l /usr/bin/tesseract
-rwxr-xr-x 1 root root 30808 May 19 16:14 /usr/bin/tesseract

ls -l /usr/bin/unicharset_extractor
-rwxr-xr-x 1 root root 108704 May 19 16:14 /usr/bin/unicharset_extractor

Message has been deleted

Stefan Weil

unread,
May 24, 2019, 9:27:01 AM5/24/19
to tesseract-ocr
Thank you. Now try and report

    ldd /usr/bin/tesseract
    ldd /usr/bin/unicharset_extractor

anne

unread,
May 24, 2019, 9:37:18 AM5/24/19
to tesseract-ocr
These are what I get
ldd /usr/bin/tesseract
    linux-vdso.so.1 (0x00007ffff27a6000)
    libtesseract.so.4 => /usr/local/lib/libtesseract.so.4 (0x00007f249a528000)
    liblept.so.5 => /usr/local/lib/liblept.so.5 (0x00007f249a0a0000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2499e81000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2499af8000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f24998e0000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f24994ef000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2499151000)
    libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f2498f22000)
    libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f2498cf0000)
    libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2498a88000)
    libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f2498811000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f24985f4000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f249acd6000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f24983f0000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f24981ca000)
    libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f2497fbc000)

ldd /usr/bin/unicharset_extractor
    linux-vdso.so.1 (0x00007ffc91158000)
    libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f064b77f000)
    libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f064b3c8000)
    libtesseract.so.4 => /usr/local/lib/libtesseract.so.4 (0x00007f064ae22000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f064aa99000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f064a881000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f064a490000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f064a0f2000)
    libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f0648549000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f064832a000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0648126000)
    liblept.so.5 => /usr/local/lib/liblept.so.5 (0x00007f0647c9e000)
    libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f0647a6f000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f064be3b000)
    libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f064783d000)
    libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f06475d5000)
    libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f064735e000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0647141000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f0646f1b000)
    libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f0646d0d000)

Lorenzo Bolzani

unread,
May 24, 2019, 9:44:28 AM5/24/19
to tesser...@googlegroups.com
Also try:

locate tesseract

ldconfig -p | grep tesseract

ls -l /usr/local/lib/libtesseract*

and run:

sudo ldconfig

after you uninstall tesseract (or even right now).



--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

anne

unread,
May 24, 2019, 9:50:01 AM5/24/19
to tesseract-ocr
locate tesseract
/etc/apt/sources.list.d/alex-p-ubuntu-tesseract-ocr-bionic.list
/etc/apt/sources.list.d/alex-p-ubuntu-tesseract-ocr-bionic.list.save
/etc/apt/trusted.gpg.d/alex-p_ubuntu_tesseract-ocr.gpg
/etc/systemd/system/snap-tesseract-1566.mount
/etc/systemd/system/snap-tesseract-1574.mount
/etc/systemd/system/snap-tesseract-1598.mount
/etc/systemd/system/multi-user.target.wants/snap-tesseract-1566.mount
/etc/systemd/system/multi-user.target.wants/snap-tesseract-1574.mount
/etc/systemd/system/multi-user.target.wants/snap-tesseract-1598.mount
/home/christine/.cache/pip/wheels/d5/90/56/ab7b652592da86821293f7cadc1c554aa376a0d57ce414d0a0/pytesseract-0.2.6-py2.py3-none-any.whl
/home/christine/.local/bin/pytesseract
/home/christine/.local/lib/python2.7/site-packages/pytesseract
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info
/home/christine/.local/lib/python2.7/site-packages/pytesseract/__init__.py
/home/christine/.local/lib/python2.7/site-packages/pytesseract/__init__.pyc
/home/christine/.local/lib/python2.7/site-packages/pytesseract/pytesseract.py
/home/christine/.local/lib/python2.7/site-packages/pytesseract/pytesseract.pyc
/home/christine/.local/lib/python2.7/site-packages/pytesseract/test-european.jpg
/home/christine/.local/lib/python2.7/site-packages/pytesseract/test.png
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/DESCRIPTION.rst
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/INSTALLER
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/METADATA
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/RECORD
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/WHEEL
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/entry_points.txt
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/metadata.json
/home/christine/.local/lib/python2.7/site-packages/pytesseract-0.2.6.dist-info/top_level.txt
/snap/tesseract
/snap/bin/tesseract
/usr/local/bin/pytesseract
/usr/local/lib/libtesseract.so.4
/usr/local/lib/libtesseract.so.4.0.1
/usr/local/lib/python2.7/dist-packages/pytesseract
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info
/usr/local/lib/python2.7/dist-packages/pytesseract/__init__.py
/usr/local/lib/python2.7/dist-packages/pytesseract/__init__.pyc
/usr/local/lib/python2.7/dist-packages/pytesseract/pytesseract.py
/usr/local/lib/python2.7/dist-packages/pytesseract/pytesseract.pyc
/usr/local/lib/python2.7/dist-packages/pytesseract/test-european.jpg
/usr/local/lib/python2.7/dist-packages/pytesseract/test.png
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/PKG-INFO
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/SOURCES.txt
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/dependency_links.txt
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/entry_points.txt
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/installed-files.txt
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/requires.txt
/usr/local/lib/python2.7/dist-packages/pytesseract-0.2.6.egg-info/top_level.txt
/usr/share/tesseract-ocr
/usr/share/doc/tesseract-ocr-eng
/usr/share/doc/tesseract-ocr-eng/changelog.Debian.gz
/usr/share/doc/tesseract-ocr-eng/copyright
/usr/share/tesseract-ocr/4.00
/usr/share/tesseract-ocr/4.00/tessdata
/usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata
/var/cache/apparmor/snap-update-ns.tesseract
/var/cache/apparmor/snap.tesseract.tesseract
/var/cache/apt/archives/libtesseract-dev_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb
/var/cache/apt/archives/libtesseract4_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb
/var/cache/apt/archives/tesseract-ocr-osd_1%3a4.00~git30-7274cfa-1ppa1~bionic1_all.deb
/var/cache/apt/archives/tesseract-ocr_4.1.0~git3889-5320320b-1ppa1~bionic1_amd64.deb
/var/cache/apt/archives/tesseract-ocr_4.1.0~git3914-3452c8eb-1ppa1~bionic1_amd64.deb
/var/lib/apt/lists/ppa.launchpad.net_alex-p_tesseract-ocr_ubuntu_dists_bionic_InRelease
/var/lib/apt/lists/ppa.launchpad.net_alex-p_tesseract-ocr_ubuntu_dists_bionic_main_binary-amd64_Packages
/var/lib/apt/lists/ppa.launchpad.net_alex-p_tesseract-ocr_ubuntu_dists_bionic_main_binary-i386_Packages
/var/lib/apt/lists/ppa.launchpad.net_alex-p_tesseract-ocr_ubuntu_dists_bionic_main_i18n_Translation-en
/var/lib/dpkg/info/tesseract-ocr-eng.list
/var/lib/dpkg/info/tesseract-ocr-eng.md5sums
/var/lib/snapd/apparmor/profiles/snap-update-ns.tesseract
/var/lib/snapd/apparmor/profiles/snap.tesseract.tesseract
/var/lib/snapd/seccomp/bpf/snap.tesseract.tesseract.bin
/var/lib/snapd/seccomp/bpf/snap.tesseract.tesseract.src
/var/lib/snapd/sequence/tesseract.json
/var/lib/snapd/snaps/tesseract_1566.snap
/var/lib/snapd/snaps/tesseract_1574.snap
/var/lib/snapd/snaps/tesseract_1598.snap
/var/snap/tesseract

ldconfig -p | grep tesseract
    libtesseract.so.4 (libc6,x86-64) => /usr/local/lib/libtesseract.so.4
    libtesseract.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libtesseract.so.4
    libtesseract.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libtesseract.so


ls -l /usr/local/lib/libtesseract*
lrwxrwxrwx 1 root root       21 Mar 26 20:35 /usr/local/lib/libtesseract.so.4 -> libtesseract.so.4.0.1
-rwxr-xr-x 1 root root 36047048 Mar 26 20:35 /usr/local/lib/libtesseract.so.4.0.1



Stefan Weil

unread,
May 24, 2019, 10:19:31 AM5/24/19
to tesseract-ocr
Programs installed in /usr/bin typically should not get shared libraries from /usr/local/lib,
so /usr/local/lib/libtesseract.so.4 looks bad.

Please try

    ls /usr/local/lib/libtesseract.so.4
    dpkg -S /usr/local/lib/libtesseract.so.4

I expect that the library has not the same timestamp as the two executables.
The 2nd command looks where the shared library comes from.

Stefan Weil

unread,
May 24, 2019, 10:28:45 AM5/24/19
to tesseract-ocr
Anne, you have a /usr/local/bin/pytesseract which also installed /usr/local/lib/libtesseract.so.4.
That conflicts with /usr/lib/x86_64-linux-gnu/libtesseract.so.4.

Maybe it is sufficient to rename or remove /usr/local/lib/libtesseract.so.4.

anne

unread,
May 24, 2019, 10:33:09 AM5/24/19
to tesseract-ocr
i get this result from the ls command: /usr/local/lib/libtesseract.so.4
but when I ran dpkg, it said that there is no path matching the pattern path but when I look at my directories, it's there.
I'll try removing it now and maybe uninstalling pytesseract for now.

anne

unread,
May 24, 2019, 11:01:48 AM5/24/19
to tesseract-ocr
I tried ldd /usr/bin/tesseract
and this is the result
libtesseract.so.4 => /usr/lib/x86_64-linux-gnu/libtesseract.so.4 (0x00007ff4ef930000).
However I still have this libtesseract.so.4.0.1 in /usr/local/lib. Should I also remove this?

anne

unread,
May 24, 2019, 11:09:20 AM5/24/19
to tesseract-ocr
Oh wait, my unicharset_extractor is working now. That libtesseract.so.4 must have been the culprit all along. Thank you very much for your help Stefan and to the others too as well :)
Reply all
Reply to author
Forward
0 new messages