Package Details: normcap 0.6.0-3

Git Clone URL: https://aur.archlinux.org/normcap.git (read-only, click to copy)
Package Base: normcap
Description: OCR powered screen-capture tool to capture information instead of images
Upstream URL: https://dynobo.github.io/normcap
Licenses: AGPL-3.0-or-later AND MIT
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 27
Popularity: 0.92
First Submitted: 2021-11-07 21:19 (UTC)
Last Updated: 2025-11-08 22:00 (UTC)

Dependencies (20)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5

yochananmarqos commented on 2022-01-05 01:53 (UTC)

Sorry, forgot to update the .SRCINFO when I updated the package last week.

Jake commented on 2021-11-20 22:27 (UTC)

Yes, now it includes py/pyc files as expected (1.5 MiB installed) and runs fine :). Thanks!

yochananmarqos commented on 2021-11-20 22:11 (UTC)

@Jake: I removed the .gitignore, did that make a difference?"

Jake commented on 2021-11-20 21:10 (UTC)

I already have the tesserocr update, but this is completely unrelated to the issue here. The pkgbuild still produces a basically empty package (0.01 MiB only dist-info metadata, no code) and this causes the import error, that most likely experiences Raymo111 too. Did some experiments now and to my surprise poetry build works correctly with the same tarball if it got extracted to another directory, turns out it otherwise picks up the AUR git and your .gitignore is the culprit. Poetry uses it as default exclude list, so everything is excluded... Please fix this @yochananmarqos.

Not sure if using poetry is even worth the hassle though, Arch Python package guidelines still describe setuptools (or converting from PEP 517 to setuptools) on the wiki, it seems to be simpler and more reliable currently.

Jake commented on 2021-11-20 09:46 (UTC) (edited on 2021-11-20 10:26 (UTC) by Jake)

Does not start currently, error:

$ normcap
Traceback (most recent call last):
  File "/usr/bin/normcap", line 5, in <module>
    from normcap.app import main
ModuleNotFoundError: No module named 'normcap'
                                                          [ 1 ]

I don't think it has the be switched to appImage (as packages should be source built by default), but the build does not quite work, there is no python code in the package/wheel:

ll /usr/lib/python3.9/site-packages/normcap*
total 32K
-rw-r--r-- 1 root root  104 20. Nov 10:34 direct_url.json
-rw-r--r-- 1 root root   44 20. Nov 10:34 entry_points.txt
-rw-r--r-- 1 root root    4 20. Nov 10:34 INSTALLER
-rw-r--r-- 1 root root  724 20. Nov 10:34 LICENSE
-rw-r--r-- 1 root root 7,9K 20. Nov 10:34 METADATA
-rw-r--r-- 1 root root  742 20. Nov 10:34 RECORD
-rw-r--r-- 1 root root    0 20. Nov 10:34 REQUESTED
-rw-r--r-- 1 root root   83 20. Nov 10:34 WHEEL

Edit: Normal build with setup.py works, see my fixed PKGBUILD

yochananmarqos commented on 2021-11-14 04:40 (UTC)

@Raymo11, see my edited comment below.

Raymo111 commented on 2021-11-14 04:38 (UTC)

Try installing and running on a clean system (without the pip version of the package installed), you get a python error on run, something about normcap library not found.

yochananmarqos commented on 2021-11-14 04:35 (UTC) (edited on 2021-11-14 04:39 (UTC) by yochananmarqos)

@Raymo111: What "doesn't work"? It builds, installs and runs fine.

EDIT: You might be referring to the outdated python-tesserocr AUR package. See my comment there, I've got an updated PKGBUILD.

Raymo111 commented on 2021-11-14 02:22 (UTC)

Can you package this using the AppImage from https://github.com/dynobo/normcap/releases instead? The way you have it packaged currently doesn't work.