Package Details: frog-ocr 1.5.1-1

Git Clone URL: https://aur.archlinux.org/frog-ocr.git (read-only, click to copy)
Package Base: frog-ocr
Description: Intuitive text extraction tool (OCR) for GNOME.
Upstream URL: https://getfrog.app
Licenses: MIT
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 1
Popularity: 0.007697
First Submitted: 2022-04-18 18:23 (UTC)
Last Updated: 2024-02-12 16:15 (UTC)

Latest Comments

« First ‹ Previous 1 2

Tio commented on 2022-08-04 18:34 (UTC)

I rebooted the system but the app still doesnt start:

~ >>> frog                                                                     
Traceback (most recent call last):
  File "/usr/bin/frog", line 59, in <module>
    from frog import main
  File "/usr/lib/python3.10/site-packages/frog/main.py", line 40, in <module>
    from .about_dialog import AboutDialog
  File "/usr/lib/python3.10/site-packages/frog/about_dialog.py", line 29, in <module>
    from frog.config import APP_ID, RESOURCE_PREFIX
  File "/usr/lib/python3.10/site-packages/frog/config.py", line 33, in <module>
    if not os.path.exists(os.path.join(os.environ['XDG_DATA_HOME'], 'tessdata')):
  File "/usr/lib/python3.10/os.py", line 679, in __getitem__
    raise KeyError(key) from None
KeyError: 'XDG_DATA_HOME'

Tio commented on 2022-08-04 04:02 (UTC)

Thanks! I suppose I'd have to restart the system to take effect?

yochananmarqos commented on 2022-08-03 17:41 (UTC) (edited on 2022-08-03 17:41 (UTC) by yochananmarqos)

@Tio: Add the following to your ~/.profile (per user) or /etc/profile (system-wide):

export XDG_CONFIG_HOME="$HOME/.config"

Tio commented on 2022-08-03 03:57 (UTC)

@yochananmarqos That linked wiki is massive. Is there a quick way to set that variable or is it more complex? I was curious to test this package.

yochananmarqos commented on 2022-06-15 23:21 (UTC)

You must have the XDG_DATA_HOME variable set otherwise this program will not run!

See https://wiki.archlinux.org/title/XDG_Base_Directory

yochananmarqos commented on 2022-05-25 16:25 (UTC)

@demolg: You need a Tesseract language pack installed like tesseract-data-eng.

demolg commented on 2022-05-25 15:22 (UTC)

Run command same with /usr/share/applications/com.github.tenderowl.frog.desktop:

$ env XDG_DATA_HOME="\\$HOME/.local/share/" frog
Traceback (most recent call last):
  File "/usr/bin/frog", line 59, in <module>
    from frog import main
  File "/usr/lib/python3.10/site-packages/frog/main.py", line 41, in <module>
    from .about_dialog import AboutDialog
  File "/usr/lib/python3.10/site-packages/frog/about_dialog.py", line 29, in <module>
    from frog.config import APP_ID, RESOURCE_PREFIX
  File "/usr/lib/python3.10/site-packages/frog/config.py", line 34, in <module>
    os.mkdir(os.path.join(os.environ['XDG_DATA_HOME'], 'tessdata'))
FileNotFoundError: [Errno 2] No such file or directory: '\\/home/deemo/.local/share/tessdata'