b0mbays / continuously_casting_dashboards

HACS Integration for continuously casting a Home Assistant dashboard to your Google Chromecast Displays
MIT License
230 stars 11 forks source link

catt not installed #70

Open bin101 opened 4 months ago

bin101 commented 4 months ago

I tried to use this on my ha core installation running inside lxc on my proxmox host.

Followed the README so far but catt doesn't seems to be installed correctly:

Jul 18 18:18:53 homeassistant-core hass[1748]: 2024-07-18 18:18:53.753 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Jul 18 18:18:53 homeassistant-core hass[1748]: Traceback (most recent call last):
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.homeassistant/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 578, in start
Jul 18 18:18:53 homeassistant-core hass[1748]:     if (await self.check_both_states(device_name)) is None:
Jul 18 18:18:53 homeassistant-core hass[1748]:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.homeassistant/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 253, in check_both_states
Jul 18 18:18:53 homeassistant-core hass[1748]:     status_output = await self.check_status(device_name, dashboard_state_name)
Jul 18 18:18:53 homeassistant-core hass[1748]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.homeassistant/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 172, in check_status
Jul 18 18:18:53 homeassistant-core hass[1748]:     process = await asyncio.create_subprocess_exec(
Jul 18 18:18:53 homeassistant-core hass[1748]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/asyncio/subprocess.py", line 224, in create_subprocess_exec
Jul 18 18:18:53 homeassistant-core hass[1748]:     transport, protocol = await loop.subprocess_exec(
Jul 18 18:18:53 homeassistant-core hass[1748]:                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/asyncio/base_events.py", line 1728, in subprocess_exec
Jul 18 18:18:53 homeassistant-core hass[1748]:     transport = await self._make_subprocess_transport(
Jul 18 18:18:53 homeassistant-core hass[1748]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/asyncio/unix_events.py", line 211, in _make_subprocess_transport
Jul 18 18:18:53 homeassistant-core hass[1748]:     transp = _UnixSubprocessTransport(self, protocol, args, shell,
Jul 18 18:18:53 homeassistant-core hass[1748]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/asyncio/base_subprocess.py", line 36, in __init__
Jul 18 18:18:53 homeassistant-core hass[1748]:     self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/asyncio/unix_events.py", line 820, in _start
Jul 18 18:18:53 homeassistant-core hass[1748]:     self._proc = subprocess.Popen(
Jul 18 18:18:53 homeassistant-core hass[1748]:                  ^^^^^^^^^^^^^^^^^
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/subprocess.py", line 1026, in __init__
Jul 18 18:18:53 homeassistant-core hass[1748]:     self._execute_child(args, executable, preexec_fn, close_fds,
Jul 18 18:18:53 homeassistant-core hass[1748]:   File "/root/.pyenv/versions/3.12.1/lib/python3.12/subprocess.py", line 1950, in _execute_child
Jul 18 18:18:53 homeassistant-core hass[1748]:     raise child_exception_type(errno_num, err_msg, err_filename)
Jul 18 18:18:53 homeassistant-core hass[1748]: FileNotFoundError: [Errno 2] No such file or directory: 'catt'

Even after switching into the pyenv and installing catt manually via pip it still shows the same error FileNotFoundError: [Errno 2] No such file or directory: 'catt'. Any idea?