Not initializing device_tracker.owntracks

Hi,
I adedd tracking service to my configuration.yaml:

device_tracker:

  • platform: owntracks

and during start HA I get error message:

Not initializing device_tracker.owntracks because could not install dependency libnacl==1.5.0

libnacl was installed pip install libnacl
HA running on Raspberry Pi.

What is wrong?

Are you running HA in a virtual environment? If so, you’ll have to switch to the HA user, activate the virtual environment and install it to that with pip3.

Thanks, it works.

1 Like

Glad I could help!

Sorry I guess I was too quick, it doesn’t work.

Hmm, that should have satisfied the requirement. Not sure why this didn’t work. Maybe someone else has a better idea or approach.

When you are in the virtual environment, what is the output of this command:

pip3 install libnacl -V

homeassistant@raspberrypi:/home/pi$ pip3 install libnacl -V
Requirement already satisfied (use --upgrade to upgrade): libnacl in /usr/local/lib/python3.4/dist-packages
Cleaning up…

Hi. It doesn’t look you are in de virtualenv, did you execute the activate first?

homeassistant@raspberrypi:~ $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@raspberrypi:~ $ pip3 install libnacl -V
Requirement already satisfied: libnacl in /srv/homeassistant/lib/python3.4/site-packages

Now it works, really :slight_smile: Thank so much for help.