OpenVoiceOS / ovos-utils

Apache License 2.0
3 stars 9 forks source link

No such file or directory: 'tasklist' #113

Open goldyfruit opened 1 year ago

goldyfruit commented 1 year ago

When PHAL service starts it complains about tasklist no such file or directory. Not sure if I'm missing a directory or a binary.

2023-03-27 21:25:24.046 - OVOS - ovos_PHAL.service:on_error:18 - ERROR - PHAL failed to launch ([Errno 2] No such file or directory: 'tasklist').
goldyfruit commented 1 year ago

It appears after the ovos-PHAL-plugin-oauth loading, I don't know if it's related.

ovos_phal           | 2023-04-06 10:44:07.183 - OVOS - ovos_bus_client.session:reset_default_session:171 - INFO - New Default Session Start: 7a5639ea-80e5-4d21-b950-17fa0c8789d8
ovos_phal           | 2023-04-06 10:44:07.196 - OVOS - ovos_PHAL.service:load_plugins:75 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-alsa
ovos_phal           | 2023-04-06 10:44:07.221 - OVOS - ovos_PHAL_plugin_color_scheme_manager:provide_theme:75 - ERROR - cannot access local variable 'theme' where it is not associated with a value
ovos_phal           | 2023-04-06 10:44:07.232 - OVOS - ovos_PHAL.service:load_plugins:75 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-color-scheme-manager
ovos_phal           | 2023-04-06 10:44:07.245 - OVOS - ovos_PHAL.service:load_plugins:75 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-network-manager
ovos_phal           | 2023-04-06 10:44:07.257 - OVOS - ovos_PHAL.service:load_plugins:75 - INFO - PHAL plugin loaded: ovos-PHAL-plugin-oauth
ovos_phal           |  * Serving Flask app 'ovos_PHAL_plugin_oauth'
ovos_phal           |  * Debug mode: off
ovos_phal           | 2023-04-06 10:44:07.276 - OVOS - ovos_PHAL.service:on_error:18 - ERROR - PHAL failed to launch ([Errno 2] No such file or directory: 'tasklist').
ovos_phal           | WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
ovos_phal           |  * Running on all addresses (0.0.0.0)
ovos_phal           |  * Running on http://127.0.0.1:36536
ovos_phal           |  * Running on http://192.168.1.213:36536
ovos_phal           | Press CTRL+C to quit
goldyfruit commented 1 year ago

The only component refering a tasklist is https://github.com/OpenVoiceOS/ovos-utils/blob/dev/ovos_utils/system.py#L276-L286

This means that ps is required.

JarbasAl commented 1 year ago

this is an issue in ovos-utils then, should handle this util some other way