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'
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