HADashboard install problems: pip3, missing dependencies and other issues

Hello,

I tried installing HADashboard following the tutorial at Getting started — AppDaemon 4.4.3 documentation, but ran into several erros.

I am running HA on the latest Hassbian (on stretch).

I am adding a couple of additionnal steps for people who might run into the same difficulties.

We install the appdaemon package with following command:

$ sudo pip3 install appdaemon

which gave an error for me:

sudo: pip3: command not found

which can be solved by installing pip with following command:

sudo apt-get install python3-pip

After trying to re-install appdaemon I ran into the next error:

Exception:
Traceback (most recent call last):
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 594, in urlopen
chunked=chunked)
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 391, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 387, in _make_request
httplib_response = conn.getresponse()
File “/usr/lib/python3.5/http/client.py”, line 1198, in getresponse
response.begin()
File “/usr/lib/python3.5/http/client.py”, line 297, in begin
version, status, reason = self._read_status()
File “/usr/lib/python3.5/http/client.py”, line 266, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
http.client.RemoteDisconnected: Remote end closed connection without response

Did:

$ sudo apt-get update && sudo apt-get upgrade

which solved the traceback issue.

Next issue I ran into was an error regarding libffi:

Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found

which was solved by:

sudo apt-get install libffi6 libffi-dev

Which solved the appdaemon installation errors.

Edit: I had to update chardet as well:

pip3 install chardet --upgrade

Hopefully these steps can be useful for other HA newbies like me :grin:

Next Steps for installing HADashboard for noobs like me :grinning: (this is going to take the full day).

Create the directory as foreseen in the tutorial: /home/homeassistant/conf and creating the files

cd /home
cd homeassistant
mkdir conf
cd conf
sudo nano appdaemon.yaml

and copy-paste the config from the tutorial in there

mkdir apps
sudo nano apps.yaml

and copy-paste the config from the tutorial

cd apps
sudo nano hello.py

and yes, copy-paste the config from the tutorial

start appdaemon with debug mode on

$ appdaemon -c /home/homeassistant/conf -D DEBUG

and solve the next issues you will encounter.

e.g. finding the fullchain.pem for the cert_path: <path/to/root/CA/cert>

sudo find -name fullchain.pem

and copy the right path in appdaemon.yaml

if you have still an error message, you might not have the right accesses to it, which I solved by

sudo chmod 777 path/to/root/CA/cert/fullchain.pem

Final error was a SSL: CERTIFICATE_VERIFY_FAILED

I changed the cert_verify = True to False in appdaemon.yaml and it is finally working ! :star_struck:

Not sure all is done as it should though…

Edit: Next error was the one described in AppDaemon 2.1.9 - no compiled dir error

I had to manually create the compiled folder in the conf folder and the javascript and css folders in the compiled folder. Did a chmod 777 on all these folders + on the dashboards folder in conf which youneed to creat according to: Dashboard Install and Configuration — AppDaemon 4.4.3 documentation

Edit: Finally after reading HADashboard (dash_password) directive causing "500 Internal Server Error" - #3 by teodorangel
I deleted the dashboard password as it is not working yet.

IT IS FINALLY WORKING !!! GREAT WORK FROM THE HADAshboard TEAM - Thanks!

1 Like