@lambtho wrote:
I am running home assistant on a raspberry pi 3b+. I have a DHT sensor and a PIR sensor directly connected on the PI (using DHT and GPIO components).
I am currently trying to use gitlab CI/CD to automatically check and deploy the configuration. However, it seems that it can not pass because the DHT and GPIO can not be configured on non-rapsberries.
The following error is what the pipeline outputs. Then a few other errors are reported because Adafruit-DHT is not installed.
INFO:homeassistant.util.package:Attempting install of Adafruit-DHT==1.4.0 ERROR:homeassistant.util.package:Unable to install package Adafruit-DHT==1.4.0: ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wp0cm_ji/Adafruit-DHT/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wp0cm_ji/Adafruit-DHT/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-gcf1zq0y --python-tag cp37 cwd: /tmp/pip-install-wp0cm_ji/Adafruit-DHT/ Complete output (1 lines): Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively.
Can anyone help me debug this ? Should I just exclude the DHT and PIR sensors ?
Posts: 1
Participants: 1