dynobo / normcap

OCR powered screen-capture tool to capture information instead of images
https://dynobo.github.io/normcap/
Other
1.96k stars 89 forks source link

Not working on Debian Buster #107

Closed liolio6 closed 3 years ago

liolio6 commented 3 years ago

Hello, I try to install normcap on debian Buster, the install work correctly but I got Segmentation fault when I run it I of course installed dependencies sudo apt-get install tesseract-ocr xclip python3-dev python3-tk python3-pil.imagetk libleptonica-dev libtesseract-dev libnotify-bin

View Bellow

pip3 install normcap Requirement already satisfied: normcap in /usr/local/lib/python3.7/dist-packages (0.1.11) Requirement already satisfied: pyclip>=0.5.4 in /usr/local/lib/python3.7/dist-packages (from normcap) (0.5.4) Requirement already satisfied: notify-py>=0.3.1 in /usr/local/lib/python3.7/dist-packages (from normcap) (0.3.2) Requirement already satisfied: importlib-resources>=5.1.2 in /usr/local/lib/python3.7/dist-packages (from normcap) (5.1.2) Requirement already satisfied: Pillow>=8.2.0 in /usr/local/lib/python3.7/dist-packages (from normcap) (8.2.0) Requirement already satisfied: pyscreenshot>=2.3 in /usr/local/lib/python3.7/dist-packages (from normcap) (3.0) Requirement already satisfied: tesserocr>=2.4.0 in /usr/local/lib/python3.7/dist-packages (from normcap) (2.5.1) Requirement already satisfied: mss>=6.1.0 in /usr/local/lib/python3.7/dist-packages (from normcap) (6.1.0) Requirement already satisfied: jeepney; platform_system == "Linux" in /usr/local/lib/python3.7/dist-packages (from notify-py>=0.3.1->normcap) (0.6.0) Requirement already satisfied: loguru in /usr/local/lib/python3.7/dist-packages (from notify-py>=0.3.1->normcap) (0.5.3) Requirement already satisfied: zipp>=0.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-resources>=5.1.2->normcap) (3.4.1) Requirement already satisfied: entrypoint2 in /usr/local/lib/python3.7/dist-packages (from pyscreenshot>=2.3->normcap) (0.2.4) Requirement already satisfied: EasyProcess in /usr/local/lib/python3.7/dist-packages (from pyscreenshot>=2.3->normcap) (0.3)

normcap !strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 209 Segmentation fault

dynobo commented 3 years ago

Hi @liolio6, thanks for reporting the bug! Do you get additional output, if you execute normcap --verbose? And which display manager do you use? Gnome on X11?

dynobo commented 3 years ago

I investaged a bit deeper. One of the dependencies of normcap, tesserocr, seem to be the cause of this issue. There seem to be workarounds which I can add to make it more robust. But it would helpful to know: Can you confirm, that the version of tesseract on your system is 4.0.x? Because the issue states, that the problem does not occure for tesseract >4.1...

liolio6 commented 3 years ago

HI @dynobo thanks for your help

Here the output of normcap --verbose (the same) !strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 209 Erreur de segmentation (core dumped)

And tesseract --version tesseract 4.0.0 leptonica-1.76.0 libgif 5.1.4 : libjpeg 6b (libjpeg-turbo 1.5.2) : libpng 1.6.36 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0 Found AVX2 Found AVX Found SSE

dynobo commented 3 years ago

@liolio6, could you please upgrade NormCap to the version I just released and report back, if the workaround works for you?

pip3 install normcap==0.1.12

Thanks!

liolio6 commented 3 years ago

Hey @dynobo Its work perfectly Really thanks Your soft is awesome