When I tried to make a backup script for Home Assistant made a mistake and lost some files (Python and HomeAssistnat related) → Home Assistant don’t work anymore.
When I try to reinstall Home Assistant with dietpi-software reinstall 157 then I got an error: The Python ssl extension was not compiled. Missing the OpenSSL lib? So Python could not be installed
At this moment the openssl version is 1.1.1
OpenSSL 1.1.1g 21 Apr 2020
I think that the install is suposing a lower version?
Below is the log of the reinstall. What can I do to recover Python and Home Assist?
#### Details: - Date | Fri Jun 4 13:07:57 CEST 2021 - DietPi version | v7.2.3 (MichaIng/master) - Image creator | DietPi Core Team - Pre-image | Raspbian Lite - Hardware | RPi 2 Model B (armv7l) (ID=2) - Kernel version | Linux VanDerMedPlay 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux - Distro | stretch (ID=4,RASPBIAN=1) - Command | sudo -u homeassistant dash -c . /home/homeassistant/pyenv-activate.sh pyenv install 3.8.10 pyenv local 3.8.10 pip3 install -U pip wheel [ -z '' ] || pip3 install exec pip3 install homeassistant - Exit code | 127 - Software title | DietPi-Software
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
BUILD FAILED (Raspbian GNU/Linux 9 using python-build 20180424)
Inspect or clean up the working tree at /tmp/python-build.20210604125011.7473
Results logged to /tmp/python-build.20210604125011.7473.log
Last 10 log lines:
./python -E -m ensurepip
$ensurepip --root=/ ;
Looking in links: /tmp/tmptuh0woss
Installing collected packages: setuptools, pip
WARNING: The scripts pip3 and pip3.8 are installed in ‘/home/homeassistant/.pyenv/versions/3.8.10/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-21.1.1 setuptools-56.0.0
pyenv: version `3.8.10’ not installed
dash: 5: pip3: not found
dash: 7: exec: pip3: not found