HA 98.4 - Platform error sensor.dht - Requirements for dht not found: ['Adafruit-DHT==1.4.0']

Hello everybody,
during the installation with “Check Home Assistant configuration” Version 98.x I get the error message in the log: “- Platform error sensor.dht - Requirements for dht not found: [‘Adafruit-DHT == 1.4.0’]”. Does anybody have the same Problem? Platform HassOS 2.12, Raspberry Pi3.

error log:

starting version 3.2.8
[08:22:11] INFO: Installing Home Assistant: latest…
[08:22:11] INFO: Please be patient, this might take a few minutes…
WARNING: You are using pip version 19.2.2, however version 19.2.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
[08:25:23] INFO: Installed Home Assistant 0.98.4
[08:25:23] INFO: Don’t worry, this temporary installation is not overwriting your current one.
[08:25:23] INFO: Making a copy of your configuration for checking…
[08:46:42] INFO: Checking your configuration against this version…
[08:52:11] ERROR: The configuration check did not pass!
[08:52:11] ERROR: See the output below for more details.
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /tmp/config
INFO:homeassistant.util.package:Attempting install of mutagen==1.42.0
INFO:homeassistant.util.package:Attempting install of gTTS-token==1.1.3
INFO:homeassistant.util.package:Attempting install of xknx==0.11.1
INFO:homeassistant.util.package:Attempting install of holidays==0.9.11
INFO:homeassistant.util.package:Attempting install of hbmqtt==0.9.4
INFO:homeassistant.util.package:Attempting install of paho-mqtt==1.4.0
INFO:homeassistant.util.package:Attempting install of python-forecastio==1.4.0
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20190828.0
INFO:homeassistant.util.package:Attempting install of xmltodict==0.12.0
INFO:homeassistant.util.package:Attempting install of psutil==5.6.3
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-duw8_9su/Adafruit-DHT/setup.py’"’"’; file=’"’"’/tmp/pip-install-duw8_9su/Adafruit-DHT/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’
‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-yjpjvrbq --python-tag cp37
cwd: /tmp/pip-install-duw8_9su/Adafruit-DHT/
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/platform_detect.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/Beaglebone_Black.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/Raspberry_Pi.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/common.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/init.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/Raspberry_Pi_2.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
copying Adafruit_DHT/Test.py -> build/lib.linux-armv7l-3.7/Adafruit_DHT
running build_ext
building ‘Adafruit_DHT.Raspberry_Pi_2_Driver’ extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/source
creating build/temp.linux-armv7l-3.7/source/Raspberry_Pi_2
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c source/_Raspberry_Pi_2_Driver.c -o build/temp.linux-armv7l-3.7/source/_Raspberry_Pi_2_Driver.o -std=gnu99
unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1

ERROR: Failed building wheel for Adafruit-DHT
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-duw8_9su/Adafruit-DHT/setup.py’"’"’; file=’"’"’/tmp/pip-install-duw8_9su/Adafruit-DHT/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’
‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-j77_n4zl/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-duw8_9su/Adafruit-DHT/
Complete output (11 lines):
running install
running build
running build_py
running build_ext
building ‘Adafruit_DHT.Raspberry_Pi_2_Driver’ extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/source
creating build/temp.linux-armv7l-3.7/source/Raspberry_Pi_2
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c source/_Raspberry_Pi_2_Driver.c -o build/temp.linux-armv7l-3.7/source/_Raspberry_Pi_2_Driver.o -std=gnu99
unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-duw8_9su/Adafruit-DHT/setup.py’"’"’; file=’"’"’/tmp/pip-install-duw8_9su/Adafruit-DHT/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’
‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-j77_n4zl/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.2, however version 19.2.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
INFO:homeassistant.util.package:Attempting install of pysnmp==4.4.11
INFO:homeassistant.util.package:Attempting install of distro==1.4.0
INFO:homeassistant.util.package:Attempting install of homeassistant-pyozw==0.1.4
Failed config
General Errors:
- Platform error sensor.dht - Requirements for dht not found: [‘Adafruit-DHT==1.4.0’].

Greetings
Michael

With some quick searching i found something, but it’s an older HA instance.

Did it work before?

Yes, in 97.x it works without problems

you can use “apt add musl-dev”,aipine docker lose it

Hello,
I have now found a solution:

  • Disable Platform ‘DHT’ and reboot HA
  • Update to 98.X
  • Activate Platform ‘DHT’ again

So the update goes through without a problem.

Best regards
Michael

how to disable dht?