Package Details: frog-ocr 1.3.0-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://tenderowl.com/work/frog
Licenses: MIT
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 0
Popularity: 0.000000
First Submitted: 2022-04-18 18:23 (UTC)
Last Updated: 2023-03-20 22:15 (UTC)

Pinned Comments

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

Latest Comments

1 2 Next › Last »

android_aur commented on 2022-12-16 12:56 (UTC) (edited on 2022-12-16 13:16 (UTC) by android_aur)

Setting export XDG_DATA_HOME="$HOME/.local/share" in ~/.profile (and restarting) did not work for me and still gave me the KeyError: 'XDG_DATA_HOME' error message.

Setting export XDG_DATA_HOME="$HOME/.local/share" in /etc/profile worked

or

setting XDG_DATA_HOME DEFAULT=@{HOME}/.local/share in /etc/security/pam_env.conf/ also worked.

Tio commented on 2022-08-24 21:45 (UTC)

Thank you I added that. Does not work but I suppose I have to reboot my computer for that. Since I am unable for the next days I will get back on this whenever I will reboot.

yochananmarqos commented on 2022-08-24 15:18 (UTC)

@Rabblerouser: Oops. However, notice the pinned comment. ;)

Rabblerouser commented on 2022-08-24 09:24 (UTC) (edited on 2022-08-24 09:31 (UTC) by Rabblerouser)

@yochananmarqos You're giving him the wrong variable to set. He needs data, not config.

@Tio Add this into ~/.profile (per user) or /etc/profile (system-wide):

   export XDG_DATA_HOME="$HOME/.local/share"

I set that and it works for me now.

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.