richardzone / homeassistant-dht

Support for Adafruit DHT temperature and humidity sensor
Apache License 2.0
9 stars 6 forks source link

Issue with HA update 2024.06 #133

Open DanieleNeo opened 2 weeks ago

DanieleNeo commented 2 weeks ago

I don't know if it's an dht issue but after updating HA to last release dht is not working and I have these in the log

2024-06-22 01:18:23.096 ERROR (SyncWorker_6) [homeassistant.util.package] Unable to install package adafruit-circuitpython-dht==3.7.0: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
******************************************************************************
* 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-aarch64-cpython-312
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.12 -c common.c -o build/temp.linux-aarch64-cpython-312/common.o
error: command 'gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.

Thanks D.

fer4droid commented 1 week ago

I have the same issue since yesterday.

599316527 commented 1 week ago

I have the same issue.

Platform error 'sensor' from integration 'dht' - Requirements for dht not found: ['adafruit-circuitpython-dht==3.7.0'].
Core               2024.6.4
Supervisor         2024.06.0
Operating System   12.4
Frontend           20240610.1
bilguun0203 commented 1 week ago

I had the same problem and fixed it by installing gcc, musl-dev, and linux-headers in the homeassistant container.

  1. SSH into HA
  2. Install necessary packages docker exec homeassistant apk add gcc musl-dev linux-headers
  3. (Optional) If you are using Raspberry Pi, add the use_pulseio=False parameter to the initialization of the DHT sensor in sensor.py at line 191.
  4. Restart HA
DanieleNeo commented 6 days ago

I had the same problem and fixed it by installing gcc, musl-dev, and linux-headers in the homeassistant container.

  1. SSH into HA
  2. Install necessary packages docker exec homeassistant apk add gcc musl-dev linux-headers
  3. (Optional) If you are using Raspberry Pi, add the use_pulseio=False parameter to the initialization of the DHT sensor in sensor.py at line 191.
  4. Restart HA

Hi @bilguun0203,

thanks for your solution but I'm using HAOS, and I think that this is not working for me. I tried docker exec homeassistant apk add gcc musl-dev linux-headers, but I got "docker command not found".

D.