I recently upgraded to 0.42.2 on my HASSBIAN (Pi3) setup and my call monitor stops working.
The log gives me the following error message
17-04-11 19:37:58 ERROR (MainThread) [homeassistant.setup] Not initializing sensor.fritzbox_callmonitor because could not install dependency fritzconnection==0.6.3
17-04-11 19:37:58 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.fritzbox_callmonitor: Could not install all requirements.
I tried installing it manually using the following command: $ sudo su -s /bin/bash homeassistant $ pip3 install fritzconnection==0.6.3
And got this error in return:
compilation terminated.
Compile failed: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitbe_btu7f.c -o tmp/xmlXPathInitbe_btu7f.o
/tmp/xmlXPathInitbe_btu7f.c:1:26: fatal error: libxml/xpath.h: No such file or directory
#include "libxml/xpath.h"
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-z7hj2vex/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lhfuf7oe-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-z7hj2vex/lxml
Storing debug log for failure in /home/homeassistant/.pip/pip.log
@erickjoaquin, not using hassbian, but does HA run in a virtualenv on it?
Maybe activate the venv before pip install.
My fritz callmonitor runs without problems on ubuntu server with virtualenv and HA 0.42.2.
17-04-14 20:32:36 ERROR (MainThread) [homeassistant.setup] Not initializing sensor.fritzbox_callmonitor because could not install dependency fritzconnection==0.6.3
17-04-14 20:32:36 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.fritzbox_callmonitor: Could not install all requirements.
17-04-14 20:47:14 ERROR (MainThread) [homeassistant.setup] Not initializing device_tracker.fritz because could not install dependency fritzconnection==0.6.3
17-04-14 20:47:14 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.fritz: Could not install all requirements.
This failed for me when having the same problem after upgrading to HASS 0.77.3 on Debian jessie in a virtual environment on a Pi Zero W with Python 3.6.
I would get a ācomponent is misconfiguredā message in the web interface even with a barebones
Couldnāt install lxml kept running into
āCompile failed: command āgccā failed with exit status 1ā ā it was runnning out of memory.
The trick that worked for me was to create a swap file to avoid the memory problem. Hereās the step by step of what worked for me, starting as pi user