Closed RokeJulianLockhart closed 1 year ago
thank you for giving it a try ... can you please confirm that tesseract(1) is installed alongside by checking this via
type -p tesseract
in a terminal?
https://github.com/c-hartmann/read-it/issues/1#issuecomment-1743237843
@c-hartmann, I didn't realize that I would need to manually install it. Apologies. I don't know how I missed it in https://github.com/c-hartmann/read-it?tab=readme-ov-file#requirements. Perhaps others as smooth-brained as I shall locate this issue the next time they attempt to do the same thing!
...However, that command regardless doesn't work:
type -p tesseract # https://bash.cyberciti.biz/guide/Logical_Not_!
sudo zypper install -y tesseract && type -p tesseract
```log RokeJulianLockhart@s1e8h4:~> sudo zypper install tesseract [sudo] password for root: Retrieving repository 'Packman' metadata .............................................................................................................................................................................................................................................................................[done] Building repository 'Packman' cache ..................................................................................................................................................................................................................................................................................[done] Retrieving repository 'snappy' metadata ..............................................................................................................................................................................................................................................................................[done] Building repository 'snappy' cache ...................................................................................................................................................................................................................................................................................[done] Loading repository data... Reading installed packages... Resolving package dependencies... The following 4 NEW packages are going to be installed: libSDL2_mixer-2_0-0 libxmp4 tesseract tesseract-data 4 new packages to install. Overall download size: 247.6 MiB. Already cached: 0 B. After the operation, additional 261.3 MiB will be used. Continue? [y/n/v/...? shows all options] (y): y Retrieving: libxmp4-4.6.0-1.1.x86_64 (Main Repository (OSS)) (1/4), 296.4 KiB Retrieving: libxmp4-4.6.0-1.1.x86_64.rpm ...............................................................................................................................................................................................................................................................[done (953.5 KiB/s)] Retrieving: libSDL2_mixer-2_0-0-2.6.3-1.4.x86_64 (Main Repository (OSS)) (2/4), 88.3 KiB Retrieving: libSDL2_mixer-2_0-0-2.6.3-1.4.x86_64.rpm ....................................................................................................................................................................................................................................................[done (62.5 KiB/s)] Retrieving: tesseract-2018_02_01-3.13.x86_64 (Main Repository (OSS)) (3/4), 1.1 MiB Retrieving: tesseract-2018_02_01-3.13.x86_64.rpm .......................................................................................................................................................................................................................................................[done (977.1 KiB/s)] Retrieving: tesseract-data-2018_02_01-3.13.noarch (Main Repository (OSS)) (4/4), 246.1 MiB Retrieving: tesseract-data-2018_02_01-3.13.noarch.rpm ..................................................................................................................................................................................................................................................[done (992.2 KiB/s)] Checking for file conflicts: .........................................................................................................................................................................................................................................................................................[done] (1/4) Installing: libxmp4-4.6.0-1.1.x86_64 ...........................................................................................................................................................................................................................................................................[done] (2/4) Installing: libSDL2_mixer-2_0-0-2.6.3-1.4.x86_64 ...............................................................................................................................................................................................................................................................[done] (3/4) Installing: tesseract-2018_02_01-3.13.x86_64 ...................................................................................................................................................................................................................................................................[done] (4/4) Installing: tesseract-data-2018_02_01-3.13.noarch ..............................................................................................................................................................................................................................................................[done] RokeJulianLockhart@s1e8h4:~> type -p tesseract RokeJulianLockhart@s1e8h4:~> ```
nor does the plugin.
from all in know ... type is an internal command of bash and might be hashed (cached) somehow. if so, the command type would not immidiatly know the complete path to tesseract command right after installation. for KDE this might be the same reasoning .. actualy KDE (i.e. Plasma) does not make use of a user ($) PATH .. it just uses the default system wide (by default - there are was to circumvent this ... another story)
said all that ... a reboot or logout/login could fix it
i'm not experienced with openSUSE, but to me it looks like the packe name is tesseract-ocr
, that will do the trick
@c-hartmann,
https://github.com/c-hartmann/read-it/issues/1#issuecomment-1743486631
systemctl reboot
https://github.com/c-hartmann/read-it/issues/1#issuecomment-1744403931
RokeJulianLockhart@s1e8h4:~> bash -c 'type -p tesseract-ocr'
RokeJulianLockhart@s1e8h4:~>
Nothing seems to work.
tesseract-ocr is the package name to install with zypper:
sudo zypper install tesseract-ocr
to get the command tesseract:
/usr/bin/tesseract
note:
sudo zypper install tesseract
install a game, that unfortunately has the same name
Oh, yeah...
RokeJulianLockhart@s1e8h4:~> zypper info tesseract
Loading repository data...
Reading installed packages...
Information for package tesseract:
----------------------------------
Repository : Main Repository (OSS)
Name : tesseract
Version : 2018_02_01-3.13
Arch : x86_64
Vendor : openSUSE
Installed Size : 2.5 MiB
Installed : Yes
Status : up-to-date
Source package : tesseract-2018_02_01-3.13.src
Upstream URL : http://tesseract.gg/
Summary : First-person shooter with cooperative in-game map editing
Description :
Tesseract is a first-person shooter game focused on instagib deathmatch
and capture-the-flag gameplay as well as cooperative in-game map editing.
Tesseract is based on Cube2/Sauerbraten. New rendering features include fully
dynamic omnidirectional shadows, global illumination, HDR lighting, deferred
shading and morphological/temporal/multisample anti-aliasing.
RokeJulianLockhart@s1e8h4:~>
Sorry, I think I need to sleep a little more. XD
It works perfectly now.
Installed because of https://discuss.kde.org/t/ocr-in-kde-image-viewers-editors/5651/5?u=rokejulianlockhart, and expected to be able to use it as https://store.kde.org/p/1800609 depicts after installation. However, the option in the context menu doesn't appear