Hello,
I have been struggling with MCP23017 for a few days and it is not working. I’m new to Home Assistant so it’s possible that I’m doing some stupid things.
I have installed hass.io and I need to use several GPIO expanders based on MCP23017 chip. I did everything according to this instruction: github.com/jardiamj/homeassistant/tree/master/custom_components . Unfortunately it does not work I am connecting the logic analyzer but nothing appears on the i2c pins.
I2C is enabled correctly, because when I initialize the bme280 sensor it works as it should.
According to log, it looks like there is a problem with importing adafruit module. Should I copy them somewhere? I thought they would be downloaded on the fly, but not … I will add that “Sheck Config” script says “Configuration valid!”.
Thank you very much in advance for any help.
My log:
2019-05-20 18:35:53 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
2019-05-20 18:35:53 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for mcp23017 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-05-20 18:37:04 ERROR (SyncWorker_18) [homeassistant.util.package] Unable to install package adafruit-blinka==1.2.1: ERROR: Complete output from command /usr/local/bin/python3 -u -c ‘import setuptools, tokenize;file=’"’"’/tmp/pip-install-hgvbqqcc/rpi-ws281x/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-2wgqsdfh --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
Compiling ws281x library…
error: [Errno 2] No such file or directory: ‘make’: ‘make’
----------------------------------------
ERROR: Failed building wheel for rpi-ws281x
ERROR: Complete output from command /usr/local/bin/python3 -u -c ‘import setuptools, tokenize;file=’"’"’/tmp/pip-install-hgvbqqcc/sysv-ipc/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-qz7yhj14 --python-tag cp37:
ERROR: ******************************************************************************
* Setup can’t determine the value of PAGE_SIZE on your system, so it will
* default to 4096 which may not be correct.
*
* Please report this message and your operating system info to the package
* maintainer listed in the README file.
******************************************************************************
running bdist_wheel
running build
running build_ext
building ‘sysv_ipc’ extension
creating build
creating build/temp.linux-armv7l-3.7
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c sysv_ipc_module.c -o build/temp.linux-armv7l-3.7/sysv_ipc_module.o
unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for sysv-ipc
ERROR: Complete output from command /usr/local/bin/python3 -u -c ‘import setuptools, tokenize;file=’"’"’/tmp/pip-install-hgvbqqcc/rpi-ws281x/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-j77vidoc/install-record.txt --single-version-externally-managed --prefix ‘’ --compile --user --prefix=:
ERROR: running install
running build
running build_py
Compiling ws281x library…
error: [Errno 2] No such file or directory: ‘make’: ‘make’
----------------------------------------
ERROR: Command “/usr/local/bin/python3 -u -c ‘import setuptools, tokenize;file=’”’"’/tmp/pip-install-hgvbqqcc/rpi-ws281x/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-j77vidoc/install-record.txt --single-version-externally-managed --prefix ‘’ --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-hgvbqqcc/rpi-ws281x/
2019-05-20 18:37:04 ERROR (MainThread) [homeassistant.requirements] Not initializing mcp23017 because could not install requirement adafruit-blinka==1.2.1
2019-05-20 18:37:04 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform mcp23017: Could not install all requirements.