Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Debian Buster #107

Closed
liolio6 opened this issue May 11, 2021 · 5 comments · Fixed by #108
Closed

Not working on Debian Buster #107

liolio6 opened this issue May 11, 2021 · 5 comments · Fixed by #108

Comments

@liolio6
Copy link

liolio6 commented May 11, 2021

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
Copy link
Owner

dynobo commented May 11, 2021

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
Copy link
Owner

dynobo commented May 11, 2021

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
Copy link
Author

liolio6 commented May 11, 2021

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
Copy link
Owner

dynobo commented May 12, 2021

@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
Copy link
Author

liolio6 commented May 16, 2021

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

@liolio6 liolio6 closed this as completed May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants