richardzone / homeassistant-dht

Support for Adafruit DHT temperature and humidity sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with HA update 2024.06

DanieleNeo opened this issue · comments

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.

I have the same issue since yesterday.

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

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 (Edit: updated command docker exec homeassistant apk add build-base)
  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

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.

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

The same issue. Unfortunately integration doesn't work nomore...

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

I made it, but it did not resolve the issue. Using HAOS.

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

I made it, but it did not resolve the issue. Using HAOS.

Can you show me the error log related to dht from home assistant logs?

If it's related to installing the sysv_ipc package (which has happened to me since the last home assistant update), the workaround I currently use is to download and extract the source (sysv_ipc-1.1.0.tar.gz) to the homeassistant container and install it manually by using python setup.py install command inside the container. (osvenskan/sysv_ipc#6)

Core			2024.7.3
Supervisor		2024.06.2
Operating System	12.4
Frontend		20240710.0

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.

Sorry for the late reply. I'm using HAOS as well, and the docker command runs fine. Did you ssh directly into HAOS using port 22222?

Here is mine:

image

commented

Did anyone find some solution?

Tried to roll-back to previous HA core versions and it did not work for me unfortunately..