Unable to run python commands on the ls.io homeassistant container

(this isn’t habridge it’s homeassistant but there is no tag for that available)

(reposting without links as the system hides my post with them)

As per the Common Tasks for the Container installation instructions, I have tried the standard commands but they do not work. Here’s an example:

$ docker exec homeassistant python -m homeassistant --script check_config --config /config
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown

I need to be able to run commands. To add the iRobot integration the following command is required:

docker exec -it CONTAINER_NAME_OR_ID python -c 'import roombapy.entry_points; roombapy.entry_points.password()' ROOMBA_IP

Any ideas why this command isn’t working?

Yes. Python is not installed in the container, python3 is, however

Confirming that using python3 works.

$ docker exec homeassistant python3 -m homeassistant --script check_config --config /config
Testing configuration at /config

Getting an odd response from one of the commands though:

$ docker exec homeassistant python3 -m homeassistant --script check_config --files
Testing configuration at /config/.homeassistant
yaml files (used / not used)
Failed config
  General Errors:
    - File configuration.yaml not found.

Successful config (partial)

Not sure why this is.