Downloading quotes / exchange rates in Skrooge installed from flathub


I want to start using Skrooge for accounting and have installed it from flathub. I am using multiple currencies, so I got an API key for exchangeratesapi from apilayer. Then I tried to download the quotes and it failed with the error:

[ERR-5]: Download failed
[ERR-5]: Impossible to download unit United States Dollar (USD) with Internet code USD-EUR on the source
[ERR-5]: The following command line failed with code 1:
'/app/share/skrooge/ USD-EUR <API_KEY>'

I found the file:

$ sudo find / -name "**"

find: '/run/user/1000/doc': Permission denied

This is the file:

$ cat /var/lib/flatpak/app/org.kde.skrooge/x86_64/stable/14f29da5462d5f684172af23758a05ae6a0f5209bf9f7ebc5787ec8394af4637/files/share/skrooge/

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#* SPDX-FileCopyrightText: 2022 S. MANKOWSKI
#* SPDX-License-Identifier: GPL-3.0-or-later

import urllib.request
import json
import sys
import datetime

apikey = sys.argv[2]

import requests

url = ''+units[0]+','+units[1]
payload = {}
headers= {"apikey": apikey}
response = requests.request("GET", url, headers=headers, data = payload)

data = json.loads(response.text)

And when I try to run it manually:

$ /var/lib/flatpak/app/org.kde.skrooge/x86_64/stable/14f29da5462d5f684172af23758a05ae6a0f5209bf9f7ebc5787ec8394af4637/files/share/skrooge/ USD-EUR <API_KEY>


I think the problem is in the fact that it’s a flatpak and I have to somehow point it to the right path to the file or something.

The same happens with all other sources, like Yahoo Finance.

I solved the quotes problem by installing Financial Times Fund plugin in the app. I guess I had to install some plugin for exchangerates. However since its one of the default ones, I thought to is shipped with the application. Also, I could not find it in kde store, when trying to install it from the app.

Update: But it’s limited in number of currencies.