I am trying to instal HABapp, however, after installing with openhabian-config the output of sudo systemctl status habapp
shows:
type or● habapp.service - HABApp
Loaded: loaded (/etc/systemd/system/habapp.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-12-13 08:40:28 CET; 12s ago
Docs: https://habapp.readthedocs.io
Process: 14364 ExecStart=/opt/habapp/bin/habapp -c /etc/openhab/habapp (code=exited, status=1/FAILURE)
Main PID: 14364 (code=exited, status=1/FAILURE)
Dec 13 08:40:28 Jedha habapp[14364]: import HABApp.config
Dec 13 08:40:28 Jedha habapp[14364]: File "/opt/habapp/lib/python3.7/site-packages/HABApp/config/__init__.py", line 1, in <module>
Dec 13 08:40:28 Jedha habapp[14364]: from .config import Openhab, Mqtt
Dec 13 08:40:28 Jedha habapp[14364]: File "/opt/habapp/lib/python3.7/site-packages/HABApp/config/config.py", line 7, in <module>
Dec 13 08:40:28 Jedha habapp[14364]: from ._conf_location import Location
Dec 13 08:40:28 Jedha habapp[14364]: File "/opt/habapp/lib/python3.7/site-packages/HABApp/config/_conf_location.py", line 3, in <module>
Dec 13 08:40:28 Jedha habapp[14364]: import eascheduler
Dec 13 08:40:28 Jedha habapp[14364]: ModuleNotFoundError: No module named 'eascheduler'
Dec 13 08:40:28 Jedha systemd[1]: habapp.service: Main process exited, code=exited, status=1/FAILURE
Dec 13 08:40:28 Jedha systemd[1]: habapp.service: Failed with result 'exit-code'. paste code here
My systems (al config changes done on the Pi2 which is not essential for ‘production use’):
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.10.63-v7+
Platform = Raspberry Pi 2 Model B Rev 1.1
ACME System CM3-Home:
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.10.63-v7+
Platform = Raspberry Pi Compute Module 3 Rev 1.0
OpenHAB 3.2.0.M5
I have no experience with venv. But use pyenv on mac and thus have some understanding of python version seggregation in virtual environments.
Suspecting it had something to do with the installed virtual environment I went to /opt/habapp
and did a source ./bin/activate.
From the activated venv I confirmed Python 3.7 with python -V
and did a python -m pip install pydantic
.
The above output is the third output after trying to install libraries.
Initially HABapp startup fails because of the said ModuleNotFoundError for ‘pydantic’.
Thereafter ‘EasyCo’ is missing and a python -m pip install easyco also downloads ‘voluptuous’. This however gives the above ModuleNotFoundError for ‘eascheduler’.
The HABapp documentation https://habapp.readthedocs.io/en/latest/configuration.html does not adress the need to install modules. That leeds me to think it should not be necessary.
This table shows the differences (both python 3.7.3 environment) between the Raspberry Pi Compute Module 3 (non modified after HABapp installation) and the Rasperry Pi 2 (updated libraries with python -m pip install ).
Package Version Versions after
pip install original install
----------------- ------- ------
EasyCo 0.2.3
HABApp 0.31.1 0.31.1
pip 21.3.1 21.3.1
pkg_resources 0.0.0 0.0.0
pydantic 1.8.2
ruamel.yaml 0.17.17
ruamel.yaml.clib 0.2.6
setuptools 40.8.0 40.8.0
typing_extensions 4.0.1
voluptuous 0.12.2
Is this an installation issue? Am I doing something wrong?