core: Bluepy fails to install on 0.94.1
After upgrading to 0.94.1 I’m seeing the following in the logs. Reverted to 0.91.4 and the issue is no longer present. This happened on multiple instances of homeassistant.
core-ssh:~# hassio info
arch: armhf
channel: stable
hassos: "2.12"
homeassistant: 0.94.1
hostname: hassio-livingroom
logging: info
machine: raspberrypi
supervisor: "166"
supported_arch:
- armhf
2019-06-09 11:52:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 11:52:07 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of pySwitchmate==0.4.5
2019-06-09 11:58:04 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pySwitchmate==0.4.5: ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-qdury00u/bluepy/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-e_9fw9gq --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
Working dir is /tmp/pip-install-qdury00u/bluepy
execute make -C ./bluepy clean
error: [Errno 2] No such file or directory: 'make': 'make'
----------------------------------------
ERROR: Failed building wheel for bluepy
ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-qdury00u/bluepy/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-l3ep0hlg/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
Working dir is /tmp/pip-install-qdury00u/bluepy
execute make -C ./bluepy clean
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-qdury00u/bluepy/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-l3ep0hlg/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-qdury00u/bluepy/
2019-06-09 11:58:04 ERROR (MainThread) [homeassistant.requirements] Not initializing switchmate because could not install requirement pySwitchmate==0.4.5
2019-06-09 11:58:04 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 11:58:05 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pySwitchmate==0.4.5
2019-06-09 12:04:02 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package pySwitchmate==0.4.5: ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ol9afe0z/bluepy/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-gp2fxsmp --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
Working dir is /tmp/pip-install-ol9afe0z/bluepy
execute make -C ./bluepy clean
error: [Errno 2] No such file or directory: 'make': 'make'
----------------------------------------
ERROR: Failed building wheel for bluepy
ERROR: Complete output from command /usr/local/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ol9afe0z/bluepy/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-81fv17df/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
Working dir is /tmp/pip-install-ol9afe0z/bluepy
execute make -C ./bluepy clean
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-ol9afe0z/bluepy/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-81fv17df/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ol9afe0z/bluepy/
2019-06-09 12:04:02 ERROR (MainThread) [homeassistant.requirements] Not initializing switchmate because could not install requirement pySwitchmate==0.4.5
2019-06-09 12:04:02 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switchmate.switch: Could not install all requirements.
2019-06-09 12:04:10 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2019-06-09 12:04:11 INFO (MainThread) [homeassistant.setup] Setting up cloud
2019-06-09 12:04:16 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 1093.6 seconds.
2019-06-09 12:04:17 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2019-06-09 12:04:18 INFO (MainThread) [homeassistant.setup] Setting up frontend
2019-06-09 12:04:18 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.1 seconds.
2019-06-09 12:04:19 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 9.0 seconds.
2019-06-09 12:04:20 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 9.4 seconds.
2019-06-09 12:04:21 INFO (MainThread) [homeassistant.setup] Setting up logbook
2019-06-09 12:04:21 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.``
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 28 (10 by maintainers)
With limited knowledge how pip works I used Hass.io add_on store repository
https://github.com/home-assistant/hassio-addons-developmentwith add-onCustom deps deployment.{ "pypi": [ "https://wheels.home-assistant.io/alpine-3.9/armhf/bluepy-1.3.0-cp37-cp37m-linux_armv7l.whl bluepy==1.3.0" ], "apk": [] }Then bluepy was installed correctly in
depsfolder, hope this helps somehow