Package Details: normcap 0.5.9-1

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: 15
Popularity: 1.00
First Submitted: 2021-11-07 21:19 (UTC)
Last Updated: 2024-12-13 02:40 (UTC)

Dependencies (17)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

tujir commented on 2022-10-16 16:38 (UTC)

[...]
copying src/normcap/screengrab/qt.py -> build/lib/normcap/screengrab
error: package directory 'src/package/platforms' does not exist

domryba commented on 2022-10-16 10:53 (UTC) (edited on 2022-10-16 10:55 (UTC) by domryba)


dom@acer ~ $ normcap 
Traceback (most recent call last):
  File "/usr/bin/normcap", line 5, in <module>
    from normcap.app import main
  File "/usr/lib/python3.10/site-packages/normcap/app.py", line 15, in <module>
    from normcap.gui.tray import SystemTray
  File "/usr/lib/python3.10/site-packages/normcap/gui/tray.py", line 17, in <module>
    from normcap.gui.update_check import UpdateChecker
  File "/usr/lib/python3.10/site-packages/normcap/gui/update_check.py", line 12, in <module>
    from normcap.gui.downloader_urllib import Downloader
  File "/usr/lib/python3.10/site-packages/normcap/gui/downloader_urllib.py", line 6, in <module>
    import certifi
ModuleNotFoundError: No module named 'certifi'

dynobo commented on 2022-03-22 10:48 (UTC) (edited on 2022-03-22 10:51 (UTC) by dynobo)

Hi, author of NormCap here. I just found out about the AUR package, and wanted to say thanks for maintaining it! If I can do something to ease your efforts, just give me a ping :-)

BTW, NormCap v0.3.1 was released 2 days ago. Updating to it might solve some of the existing issues, at least the incompatibility with tesseract 5 EDIT: Oh, I just saw you are already using that version. Great! :-)

Jake commented on 2022-03-12 10:25 (UTC)

It is currently broken on an up to date system with tesseract 5.x: https://github.com/dynobo/normcap/issues/170

Updating to 0.3.0 (beta) solves this:

diff --git a/.SRCINFO b/.SRCINFO
index b6a22dd..c8b198d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = normcap
    pkgdesc = OCR powered screen-capture tool to capture information instead of images
-   pkgver = 0.2.10
+   pkgver = 0.3.0b1
    pkgrel = 1
    url = https://dynobo.github.io/normcap
    arch = any
@@ -8,15 +8,15 @@ pkgbase = normcap
    makedepends = python-pip
    makedepends = python-poetry
    depends = leptonica
-   depends = pyside2
+   depends = pyside6
    depends = python-importlib-metadata
    depends = python-importlib_resources
    depends = python-jeepney
-   depends = python-tesserocr
+   depends = python-pytesseract
    depends = tesseract-data-eng
-   source = normcap-0.2.10.tar.gz::https://github.com/dynobo/normcap/archive/refs/tags/v0.2.10.tar.gz
+   source = normcap-0.3.0b1.tar.gz::https://github.com/dynobo/normcap/archive/refs/tags/v0.3.0b1.tar.gz
    source = normcap.desktop
-   sha256sums = 0bcf20fe4497b05127cca07a236a6448eb97ba86ee19e89cf66a7ca4beea29ab
+   sha256sums = f92293a6b7d027d986d1463c529a99a39e4e3a2e37e463f455cc14d472c3ed76
    sha256sums = 29992fdb19773faa7582e44fe4394d4772984d5b7b9b7b347617c387f0a260f9

 pkgname = normcap
diff --git a/PKGBUILD b/PKGBUILD
index 3fe766e..735682f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,20 @@
 # Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
 pkgname=normcap
-pkgver=0.2.10
+pkgver=0.3.0b1
 pkgrel=1
 pkgdesc="OCR powered screen-capture tool to capture information instead of images"
 arch=('any')
 url="https://dynobo.github.io/normcap"
 license=('GPL')
-depends=('leptonica' 'pyside2' 'python-importlib-metadata' 'python-importlib_resources'
-         'python-jeepney' 'python-tesserocr' 'tesseract-data-eng')
+depends=('leptonica' 'pyside6' 'python-importlib-metadata' 'python-importlib_resources'
+         'python-jeepney' 'python-pytesseract' 'tesseract-data-eng')
 makedepends=('python-pip' 'python-poetry')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/dynobo/normcap/archive/refs/tags/v$pkgver.tar.gz"
 #        "https://pypi.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
         "$pkgname.desktop")
-sha256sums=('0bcf20fe4497b05127cca07a236a6448eb97ba86ee19e89cf66a7ca4beea29ab'
+sha256sums=('f92293a6b7d027d986d1463c529a99a39e4e3a2e37e463f455cc14d472c3ed76'
             '29992fdb19773faa7582e44fe4394d4772984d5b7b9b7b347617c387f0a260f9')

-prepare() {
-  cd "$pkgname-$pkgver"
-
-  # Relax requirements
-  sed -i 's/python = ">=3.7.1,<3.10"/python = ">=3.7.1"/g' pyproject.toml
-}
-
 build() {
   cd "$pkgname-$pkgver"
   poetry build --format wheel

csts commented on 2022-01-05 02:39 (UTC)

On a new Arch installation you have to manually install python-pip and python-wheel first, if you use Openbox it needs a compositor like picom to work. Works fine, thank you.

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.