RPI3 ovos cpu usage

Hi,
running raspovos headless image on rpi3+
I noticed average load is a bit high, constant 0.3.
top shows 2 python and 1 python3 processes taking up between 20% - 30%, pulseaudio 3%…
is this expected and normal? I guess picroft was a bit less harsh to the machine…

I do have some python exceptions in the logs, not sure if this can be ignored as well…

May 03 17:09:46 mycroft python[985]: 2024-05-03 17:09:46.742 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-balena-wifi
May 03 17:09:46 mycroft python[985]: 2024-05-03 17:09:46.814 - PHAL - ovos_PHAL_plugin_wifi_setup:_watchdog:455 - INFO - Wifi watchdog started
May 03 17:09:46 mycroft python[985]: 2024-05-03 17:09:46.868 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-wifi-setup
May 03 17:09:46 mycroft python[985]: 2024-05-03 17:09:46.930 - PHAL - ovos_phal_plugin_connectivity_events:update_state:82 - INFO - Network state changed to: FULL
May 03 17:09:46 mycroft python[985]: 2024-05-03 17:09:46.936 - PHAL - ovos_PHAL_plugin_wifi_setup:handle_register_client:290 - INFO - Registered wifi client: ovos-PHAL-plugin-balena-wifi
May 03 17:09:47 mycroft python[985]: /home/ovos/.venv/lib/python3.11/site-packages/gpiozero/devices.py:300: PinFactoryFallback: Falling back from lgpio: No module named 'lgpio'
May 03 17:09:47 mycroft python[985]:   warnings.warn(
May 03 17:09:47 mycroft python[984]: 2024-05-03 17:09:47.197 - voice - ovos_dinkum_listener.service:on_alive:86 - INFO - DinkumVoiceService is alive.
May 03 17:09:47 mycroft python[985]: exception calling callback for <Future at 0x7f785d0550 state=finished raised UnboundLocalError>
May 03 17:09:47 mycroft python[985]: Traceback (most recent call last):
May 03 17:09:47 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 03 17:09:47 mycroft python[985]:     callback(self)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 03 17:09:47 mycroft python[985]:     self.emit("error", exc)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 03 17:09:47 mycroft python[985]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
May 03 17:09:47 mycroft python[985]:     raise error
May 03 17:09:47 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 03 17:09:47 mycroft python[985]:     result = self.fn(*self.args, **self.kwargs)
May 03 17:09:47 mycroft python[985]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_system/__init__.py", line 227, in handle_ntp_sync_request
May 03 17:09:47 mycroft python[985]:     if check_service_installed('ntp'):
May 03 17:09:47 mycroft python[985]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/system.py", line 202, in check_service_installed
May 03 17:09:47 mycroft python[985]:     status_command = f"{status_command} | grep -i {service_name}"
May 03 17:09:47 mycroft python[985]:                         ^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]: UnboundLocalError: cannot access local variable 'status_command' where it is not associated with a value
May 03 17:09:47 mycroft python[984]: 2024-05-03 17:09:47.457 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:108 - INFO - creating hotword engines
May 03 17:09:47 mycroft python[984]: 2024-05-03 17:09:47.469 - voice - ovos_plugin_manager.wakewords:load_module:165 - INFO - Loading "hey_mycroft" wake word via ovos-ww-plugin-precise-lite with config: {'module': 'ovos-ww-plugin-precise-lite', 'model': '/home/ovos/.local/share/precise_lite/hey_mycroft.tflite', 'ex>
May 03 17:09:47 mycroft python[985]: 2024-05-03 17:09:47.621 - PHAL - ovos_PHAL_plugin_wifi_setup:_watchdog:462 - INFO - Network is active
May 03 17:09:47 mycroft python[985]: exception calling callback for <Future at 0x7f7861a6d0 state=finished raised UnboundLocalError>
May 03 17:09:47 mycroft python[985]: Traceback (most recent call last):
May 03 17:09:47 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 03 17:09:47 mycroft python[985]:     callback(self)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 03 17:09:47 mycroft python[985]:     self.emit("error", exc)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 03 17:09:47 mycroft python[985]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
May 03 17:09:47 mycroft python[985]:     raise error
May 03 17:09:47 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 03 17:09:47 mycroft python[985]:     result = self.fn(*self.args, **self.kwargs)
May 03 17:09:47 mycroft python[985]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_system/__init__.py", line 227, in handle_ntp_sync_request
May 03 17:09:47 mycroft python[985]:     if check_service_installed('ntp'):
May 03 17:09:47 mycroft python[985]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/system.py", line 202, in check_service_installed
May 03 17:09:47 mycroft python[985]:     status_command = f"{status_command} | grep -i {service_name}"
May 03 17:09:47 mycroft python[985]:                         ^^^^^^^^^^^^^^
May 03 17:09:47 mycroft python[985]: UnboundLocalError: cannot access local variable 'status_command' where it is not associated with a value
May 03 17:09:48 mycroft python[984]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
May 03 17:09:48 mycroft python[984]:   setattr(self, word, getattr(machar, word).flat[0])
May 03 17:09:48 mycroft python[984]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
May 03 17:09:48 mycroft python[984]:   return self._float_to_str(self.smallest_subnormal)
May 03 17:09:48 mycroft python[984]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
May 03 17:09:48 mycroft python[984]:   setattr(self, word, getattr(machar, word).flat[0])
May 03 17:09:48 mycroft python[984]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
May 03 17:09:48 mycroft python[984]:   return self._float_to_str(self.smallest_subnormal)
May 03 17:09:48 mycroft python[985]: 2024-05-03 17:09:48.918 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-respeaker-4mic
May 03 17:09:48 mycroft systemd[915]: Started ovos-phal.service - OVOS PHAL.
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.100 - voice - ovos_plugin_manager.wakewords:load_module:172 - INFO - Loaded the Wake Word hey_mycroft with module ovos-ww-plugin-precise-lite
May 03 17:09:50 mycroft python[984]: INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.365 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:157 - INFO - Loading hotword: hey_mycroft with engine: <ovos_ww_plugin_precise_lite.PreciseLiteHotwordPlugin object at 0x7f5e4eab50>
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.377 - voice - ovos_plugin_manager.wakewords:load_module:165 - INFO - Loading "wake_up" wake word via ovos-ww-plugin-pocketsphinx with config: {'module': 'ovos-ww-plugin-pocketsphinx', 'phonemes': 'W EY K . AH P', 'threshold': 1e-20, 'lang': 'en-us', 'wakeup':>
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.630 - voice - ovos_plugin_manager.wakewords:load_module:172 - INFO - Loaded the Wake Word wake_up with module ovos-ww-plugin-pocketsphinx
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.977 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:157 - INFO - Loading hotword: wake_up with engine: <ovos_ww_plugin_pocketsphinx.PocketsphinxHotWordPlugin object at 0x7f67e5b310>
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.982 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:189 - WARNING - No stop words loaded
May 03 17:09:50 mycroft python[984]: 2024-05-03 17:09:50.993 - voice - ovos_dinkum_listener.voice_loop.voice_loop:start:177 - INFO - Listening mode: ListeningMode.WAKEWORD
May 03 17:09:51 mycroft python[984]: 2024-05-03 17:09:51.003 - voice - ovos_dinkum_listener.service:on_started:90 - INFO - DinkumVoiceService started.
May 03 17:09:51 mycroft python[984]: 2024-05-03 17:09:51.008 - voice - ovos_dinkum_listener.service:on_started:90 - INFO - DinkumVoiceService started.
May 03 17:09:51 mycroft systemd[915]: Started ovos-dinkum-listener.service - OVOS Dinkum Listener.
May 03 17:09:51 mycroft python[984]: Startup of Mycroft Voice service complete
May 03 17:09:51 mycroft python[984]: 2024-05-03 17:09:51.016 - voice - ovos_dinkum_listener.service:run:316 - INFO - Service ready
May 03 17:09:51 mycroft python[984]: 2024-05-03 17:09:51.020 - voice - ovos_dinkum_listener.voice_loop.voice_loop:run:203 - INFO - Starting loop in mode: ListeningMode.WAKEWORD
May 03 17:09:52 mycroft python[983]: 2024-05-03 17:09:52.910 - audio - ovos_plugin_manager.tts:create:209 - INFO - Loaded plugin ovos-tts-plugin-google-tx
May 03 17:09:52 mycroft python[983]: 2024-05-03 17:09:52.916 - audio - ovos_audio.service:_maybe_reload_tts:332 - INFO - (re)loading fallback TTS engine
May 03 17:09:53 mycroft python[986]: 2024-05-03 17:09:53.071 - OVOS - mycroft:<module>:37 - WARNING - mycroft has been deprecated! please start importing from ovos_core and companion packages
May 03 17:09:53 mycroft python[986]: mycroft module remains available for backwards compatibility and will be removed in version 0.2.0
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.130 - audio - ovos_plugin_manager.tts:create:205 - INFO - Found plugin ovos-tts-plugin-mimic
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.287 - audio - ovos_plugin_manager.utils.tts_cache:load_persistent_cache:263 - INFO - Persistent TTS cache files loaded successfully.
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.565 - audio - ovos_plugin_manager.tts:create:209 - INFO - Loaded plugin ovos-tts-plugin-mimic
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.762 - audio - ovos_audio.audio:find_default:72 - INFO - Finding default audio backend...
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.767 - audio - ovos_audio.audio:find_default:80 - INFO - no default found
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.773 - audio - ovos_audio.service:on_alive:35 - INFO - TTS service is alive.
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.778 - audio - ovos_audio.service:run:243 - WARNING - audio service has moved to ovos-media, if you already migrated to ovos-media set "enable_old_audioservice": false in mycroft.conf
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.886 - audio - ovos_audio.service:run:247 - WARNING - No audio backends loaded! Audio playback is not available
May 03 17:09:53 mycroft python[983]: 2024-05-03 17:09:53.891 - audio - ovos_audio.service:run:249 - INFO - Running audio service in TTS only mode
May 03 17:09:53 mycroft systemd[915]: Started ovos-audio.service - OVOS Audio.
May 03 17:09:55 mycroft python[986]: 2024-05-03 17:09:55.168 - skills - ovos_plugin_manager.language:create:233 - INFO - Loaded the Language Translation plugin ovos-translate-plugin-server
May 03 17:09:56 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LabelBinarizer from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info >
May 03 17:09:56 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:56 mycroft python[986]:   warnings.warn(
May 03 17:09:56 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator MLPClassifier from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info p>
May 03 17:09:56 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:56 mycroft python[986]:   warnings.warn(
May 03 17:09:56 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator _SigmoidCalibration from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more >
May 03 17:09:56 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:56 mycroft python[986]:   warnings.warn(
May 03 17:09:56 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator CalibratedClassifierCV from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For mo>
May 03 17:09:56 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:56 mycroft python[986]:   warnings.warn(
May 03 17:09:56 mycroft systemd[1]: systemd-hostnamed.service: Deactivated successfully.
May 03 17:09:56 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator Perceptron from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info plea>
May 03 17:09:56 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:56 mycroft python[986]:   warnings.warn(
May 03 17:09:57 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator CountVectorizer from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info>
May 03 17:09:57 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:57 mycroft python[986]:   warnings.warn(
May 03 17:09:57 mycroft python[986]: /home/ovos/.venv/lib/python3.11/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator Pipeline from version 1.3.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info please>
May 03 17:09:57 mycroft python[986]: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
May 03 17:09:57 mycroft python[986]:   warnings.warn(
May 03 17:10:01 mycroft python[986]: 2024-05-03 17:10:01.207 - skills - ovos_core.transformers:load_plugins:29 - INFO - loaded utterance transformer plugin: ovos-utterance-normalizer
May 03 17:10:01 mycroft python[986]: 2024-05-03 17:10:01.403 - skills - ovos_bus_client.util.scheduler:run:145 - INFO - EventScheduler Started
May 03 17:10:01 mycroft python[986]: 2024-05-03 17:10:01.409 - skills - ovos_core.skill_manager:on_started:60 - INFO - Skills Manager is starting up.
May 03 17:10:01 mycroft python[986]: 2024-05-03 17:10:01.475 - skills - ovos_core.skill_manager:on_alive:64 - INFO - Skills Manager is alive.
May 03 17:10:01 mycroft python[986]: 2024-05-03 17:10:01.478 - skills - ovos_core.skill_manager:_load_on_startup:628 - INFO - Loading offline skills...
May 03 17:10:10 mycroft python[986]: 2024-05-03 17:10:10.303 - skills - ovos_core.skill_manager:_load_on_internet:585 - INFO - Loading skills that require internet (and network)...
May 03 17:10:10 mycroft python[986]: 2024-05-03 17:10:10.371 - skills - ovos_core.intent_services.padatious_service:train:145 - INFO - Training complete.
May 03 17:10:10 mycroft python[985]: exception calling callback for <Future at 0x7f78633190 state=finished raised UnboundLocalError>
May 03 17:10:10 mycroft python[985]: Traceback (most recent call last):
May 03 17:10:10 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 03 17:10:10 mycroft python[985]:     callback(self)
May 03 17:10:10 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 03 17:10:10 mycroft python[985]:     self.emit("error", exc)
May 03 17:10:10 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 03 17:10:10 mycroft python[985]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 03 17:10:10 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
May 03 17:10:10 mycroft python[985]:     raise error
May 03 17:10:10 mycroft python[985]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 03 17:10:10 mycroft python[985]:     result = self.fn(*self.args, **self.kwargs)
May 03 17:10:10 mycroft python[985]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:10:10 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_system/__init__.py", line 227, in handle_ntp_sync_request
May 03 17:10:10 mycroft python[985]:     if check_service_installed('ntp'):
May 03 17:10:10 mycroft python[985]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 03 17:10:10 mycroft python[985]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/system.py", line 202, in check_service_installed
May 03 17:10:10 mycroft python[985]:     status_command = f"{status_command} | grep -i {service_name}"
May 03 17:10:10 mycroft python[985]:                         ^^^^^^^^^^^^^^
May 03 17:10:10 mycroft python[985]: UnboundLocalError: cannot access local variable 'status_command' where it is not associated with a value
May 03 17:10:10 mycroft systemd[915]: Started ovos-skills.service - OVOS Skills.
May 03 17:10:10 mycroft systemd[915]: Startup finished in 48.570s.
May 03 17:10:10 mycroft python[986]: Startup of Mycroft Skills service complete

Hi @vanja1

0.3 of load average on Raspberry Pi 3B+ 4 cores is not high at all, in fact its pretty low. :stuck_out_tongue:

About the Python trace, it looks like you are missing the lgpio Python library.

ping @builderjer for the trace above

what load average were you expecting? do you consider it high in comparison to picroft? what are the values picroft gets you?

i did pip install lgpio and rebooted the machine (to restart ovos and check logs again)
now load average is 0.5

well, I don’t remember picroft running that hot (66C) constantly, even when doing nothing…
I understand its always active and waiting for the wake word but still…it’s not processing anything at the moment, just waiting…
not an issue, I can live with it, just asking how it is for other users

now with lgpio installed, still some errors

May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.536 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovo>
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.563 - PHAL - ovos_PHAL.service:load_plugins:85 - ERROR - failed to load PHAL pl>
May 06 19:11:54 mycroft python[982]: Traceback (most recent call last):
May 06 19:11:54 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL/service.py", line 82, in load_plugi>
May 06 19:11:54 mycroft python[982]:     self.drivers[name] = plug(bus=self.bus, config=config)
May 06 19:11:54 mycroft python[982]:                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 06 19:11:54 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_phal_plugin_aiy_v2/__init__.py", line 30>
May 06 19:11:54 mycroft python[982]:     self.leds = Leds()
May 06 19:11:54 mycroft python[982]:                 ^^^^^^
May 06 19:11:54 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/aiy/leds.py", line 306, in __init__
May 06 19:11:54 mycroft python[982]:     raise RuntimeError('Leds are not available on this board.')
May 06 19:11:54 mycroft python[982]: RuntimeError: Leds are not available on this board.
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.603 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovo>
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.644 - PHAL - ovos_PHAL_plugin_wifi_setup:_watchdog:455 - INFO - Wifi watchdog s>
May 06 19:11:54 mycroft python[981]: 2024-05-06 19:11:54.648 - voice - ovos_dinkum_listener.service:on_alive:86 - INFO - DinkumVoiceServ>
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.663 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovo>
May 06 19:11:54 mycroft python[981]: 2024-05-06 19:11:54.663 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:108>
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.783 - PHAL - ovos_phal_plugin_connectivity_events:update_state:82 - INFO - Netw>
May 06 19:11:54 mycroft python[982]: 2024-05-06 19:11:54.787 - PHAL - ovos_PHAL_plugin_wifi_setup:handle_register_client:290 - INFO - Re>
May 06 19:11:54 mycroft python[981]: 2024-05-06 19:11:54.836 - voice - ovos_plugin_manager.wakewords:load_module:165 - INFO - Loading "h>
May 06 19:11:55 mycroft python[982]: exception calling callback for <Future at 0x7f6166d150 state=finished raised UnboundLocalError>
May 06 19:11:55 mycroft python[982]: Traceback (most recent call last):
May 06 19:11:55 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 06 19:11:55 mycroft python[982]:     callback(self)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 06 19:11:55 mycroft python[982]:     self.emit("error", exc)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 06 19:11:55 mycroft python[982]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_pote>
May 06 19:11:55 mycroft python[982]:     raise error
May 06 19:11:55 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 06 19:11:55 mycroft python[982]:     result = self.fn(*self.args, **self.kwargs)
May 06 19:11:55 mycroft python[982]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_system/__init__.py", line 22>
May 06 19:11:55 mycroft python[982]:     if check_service_installed('ntp'):
May 06 19:11:55 mycroft python[982]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/system.py", line 202, in check_ser>
May 06 19:11:55 mycroft python[982]:     status_command = f"{status_command} | grep -i {service_name}"
May 06 19:11:55 mycroft python[982]:                         ^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]: UnboundLocalError: cannot access local variable 'status_command' where it is not associated with a >
May 06 19:11:55 mycroft python[982]: 2024-05-06 19:11:55.476 - PHAL - ovos_PHAL_plugin_wifi_setup:_watchdog:462 - INFO - Network is acti>
May 06 19:11:55 mycroft python[982]: exception calling callback for <Future at 0x7f616ce290 state=finished raised UnboundLocalError>
May 06 19:11:55 mycroft python[982]: Traceback (most recent call last):
May 06 19:11:55 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 06 19:11:55 mycroft python[982]:     callback(self)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 06 19:11:55 mycroft python[982]:     self.emit("error", exc)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 06 19:11:55 mycroft python[982]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_pote>
May 06 19:11:55 mycroft python[982]:     raise error
May 06 19:11:55 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 06 19:11:55 mycroft python[982]:     result = self.fn(*self.args, **self.kwargs)
May 06 19:11:55 mycroft python[982]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_PHAL_plugin_system/__init__.py", line 22>
May 06 19:11:55 mycroft python[982]:     if check_service_installed('ntp'):
May 06 19:11:55 mycroft python[982]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/system.py", line 202, in check_ser>
May 06 19:11:55 mycroft python[982]:     status_command = f"{status_command} | grep -i {service_name}"
May 06 19:11:55 mycroft python[982]:                         ^^^^^^^^^^^^^^
May 06 19:11:55 mycroft python[982]: UnboundLocalError: cannot access local variable 'status_command' where it is not associated with a >
May 06 19:11:56 mycroft python[982]: 2024-05-06 19:11:56.719 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovo>
May 06 19:11:56 mycroft systemd[912]: Started ovos-phal.service - OVOS PHAL.
May 06 19:11:56 mycroft python[981]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:549: UserWarning: The value o>
May 06 19:11:56 mycroft python[981]:   setattr(self, word, getattr(machar, word).flat[0])
May 06 19:11:56 mycroft python[981]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of>
May 06 19:11:56 mycroft python[981]:   return self._float_to_str(self.smallest_subnormal)
May 06 19:11:56 mycroft python[981]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:549: UserWarning: The value o>
May 06 19:11:56 mycroft python[981]:   setattr(self, word, getattr(machar, word).flat[0])
May 06 19:11:56 mycroft python[981]: /home/ovos/.venv/lib/python3.11/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of>
May 06 19:11:56 mycroft python[981]:   return self._float_to_str(self.smallest_subnormal)
May 06 19:11:57 mycroft python[981]: 2024-05-06 19:11:57.995 - voice - ovos_plugin_manager.wakewords:load_module:172 - INFO - Loaded the>
May 06 19:11:58 mycroft python[981]: INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
May 06 19:11:58 mycroft python[981]: 2024-05-06 19:11:58.218 - voice - ovos_dinkum_listener.voice_loop.hotwords:load_hotword_engines:157>
May 06 19:11:58 mycroft python[981]: 2024-05-06 19:11:58.232 - voice - ovos_plugin_manager.wakewords:load_module:165 - INFO - Loading "w>
May 06 19:12:20 mycroft python[983]: 2024-05-06 19:12:20.003 - skills - ovos_core.intent_services.padatious_service:train:145 - INFO - T>
May 06 19:12:20 mycroft python[982]: exception calling callback for <Future at 0x7f616e0190 state=finished raised UnboundLocalError>
May 06 19:12:20 mycroft python[982]: Traceback (most recent call last):
May 06 19:12:20 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
May 06 19:12:20 mycroft python[982]:     callback(self)
May 06 19:12:20 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
May 06 19:12:20 mycroft python[982]:     self.emit("error", exc)
May 06 19:12:20 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
May 06 19:12:20 mycroft python[982]:     self._emit_handle_potential_error(event, args[0] if args else None)
May 06 19:12:20 mycroft python[982]:   File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_pote>
May 06 19:12:20 mycroft python[982]:     raise error
May 06 19:12:20 mycroft python[982]:   File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
May 06 19:12:20 mycroft python[982]:     result = self.fn(*self.args, **self.kwargs)
May 06 19:12:20 mycroft python[982]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.5 of load average on Raspberry Pi 3B+ means you are using halt of a core, basically you still have 3.5 cores to go.

Looks like you are running a Google AIY V2, did you install everything? Did you compile the kernel modules required by this board?

hi, no I’m using RPI3. I’m just using google engine for TTS and STT

So why using the ovos_phal_plugin_aiy_v2 plugin if not required? :upside_down_face:

I don’t know, it might be a part of raspovos headless image? As I for sure was not installing any plugins…
how do I disable or uninstall it?

edit: those python exception happen only during initial boot/startup of ovos services, so maybe other users don’t care about it, as everything works so nobody reported it

Yes, it is included in raspOVOS. The plugins need validation fixes to verify if it is needed before load. It is something I have been working on.

I have noticed that also. I will look into it

The newest image does not seem to have the error and the plugin loads fine. If I catch the error again, I can trace it from there.

2024-05-09 06:52:13.475 - PHAL - ovos_PHAL.service:load_plugins:83 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-system
1 Like