Short version:
ran into error:
mozversion.errors.LocalAppNotFoundError: Application not found at: /usr/bin
Long version:
Aim: to generate animations from building hive temp matrix snapshots.
Done:
- installed
grafanimate
following how to setup - created folder
animations
- created
scenario.py
:
import logging
from datetime import datetime
from grafanimate.model import AnimationScenario, AnimationSequence, SequencingMode
logger = logging.getLogger(__name__)
def hourly():
logger.info("Running Bautraube hourly")
return AnimationScenario(
grafana_url="https://swarm.hiveeyes.org/",
dashboard_uid="epWh_vyIz",
sequences=[
AnimationSequence(
start="2024-05-21T17:00:00Z",
stop="now",
every="1h",
mode=SequencingMode.CUMULATIVE,
),
],
)
def daily():
logger.info("Running Bautraube daily")
return AnimationScenario(
grafana_url="https://swarm.hiveeyes.org/",
dashboard_uid="epWh_vyIz",
sequences=[
AnimationSequence(
start="2024-05-22T01:00:00Z",
stop="now",
every="1d",
mode=SequencingMode.CUMULATIVE,
),
],
)
- ran
./grafanimate --scenario=scenario.py:daily --output=animations/daily
Error:
mozversion.errors.LocalAppNotFoundError: Application not found at: /usr/bin
Complete run output:
2024-05-31 12:41:54,855 [<unknown> ] INFO : Running Bautraube daily
2024-05-31 12:41:54,858 [grafanimate.grafana ] INFO : Starting GrafanaWrapper on https://swarm.hiveeyes.org/
2024-05-31 12:41:54,858 [grafanimate.marionette ] INFO : Starting Marionette Gecko wrapper
2024-05-31 12:41:54,858 [grafanimate.marionette ] INFO : Found "firefox" program at /usr/bin/firefox
2024-05-31 12:41:54,858 [grafanimate.marionette ] INFO : Check for running instance of Marionette/Firefox at localhost:2828
2024-05-31 12:41:54,859 [grafanimate.marionette ] INFO : Will launch new Marionette/Firefox instance
Traceback (most recent call last):
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/bin/./grafanimate", line 8, in <module>
sys.exit(run())
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/grafanimate/commands.py", line 172, in run
grafana = make_grafana(scenario.grafana_url, options["use-panel-events"])
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/grafanimate/core.py", line 32, in make_grafana
grafana.boot_firefox(headless=False)
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/grafanimate/marionette.py", line 80, in boot_firefox
self.marionette = Marionette(
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/marionette_driver/marionette.py", line 543, in __init__
self.instance = GeckoInstance.create(
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/marionette_driver/geckoinstance.py", line 332, in create
app_id = mozversion.get_version(binary=kwargs["bin"])["application_id"]
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/mozversion/mozversion.py", line 127, in get_version
version = LocalVersion(binary)
File "/home/mois/Dokumente/bienen/bienenwaage/opt/.venv/lib/python3.10/site-packages/mozversion/mozversion.py", line 100, in __init__
raise errors.LocalAppNotFoundError(path)
mozversion.errors.LocalAppNotFoundError: Application not found at: /usr/bin