-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homeassistant docker image doesn't include build tools. DHT can't work #624
Comments
@technicalpickles commented on Aug 3, 2018, 5:15 PM UTC: Is there any other output in the failure? I don't see anything mentioning gcc specifically. I'm trying to figure out what tags and publishes these, but there isn't any info on dockerhub 🤔 https://hub.docker.com/r/homeassistant/raspberrypi3-homeassistant/ |
@technicalpickles commented on Aug 3, 2018, 11:52 PM UTC: I think this might be a duplicate of #15712 ... no solution there though. |
@Vanuan commented on Aug 4, 2018, 7:31 AM UTC: Well, here's how I figured it was absense of gcc:
|
@Vanuan commented on Aug 4, 2018, 8:06 AM UTC: I've tried to figure out the source Dockerfile for raspberry too. So I went to microbadger service which decompiles "closed source" images (apparently there's no such thing, unless you squash the layers): |
@Vanuan commented on Aug 4, 2018, 10:08 AM UTC: Ok, I think I found what puts images to Docker Hub: According to the source it does the following (looping forever each 10 minutes):
Now the important part. Where are these dockerfiles for each architecture and machine are stored? That was quite hard to find. That's the most advanced build system for docker images I've ever seen. It builds images with container builders built in containers by cloning git repo with dockerfiles for each machine. |
@Vanuan commented on Aug 4, 2018, 10:18 AM UTC: So now I can track it down: all these
So the final image doesn't have gcc and all other build dependencies in place. But why it does |
@Vanuan commented on Aug 4, 2018, 11:34 AM UTC: I think I have an idea. The new Dockerfile change now installs "Adafruit_Python_DHT==1.3.3" while homeassistant dht plugin still requires 1.3.2 So here's a much bigger problem: there's disconnect between hassio images and pip requirement in the source code of dht: Well, I don't even know how that would work. This whole system is so complicated. I don't think it's gonna work without extracting all the plugins into their own containers with some kind of rpc (grpc?) to talk with homeassistant core. |
@Vanuan commented on Aug 4, 2018, 11:44 AM UTC: Yeah, it looks like I have latest image of raspberrypi3-homeassistant which has dht 0.3.2 hardcoded in dht.py, but 0.3.3 in the Dockerfile. Even if we pull dev branch of hass and latest branch of hassio-hass there's mismatch: Adafruit-DHT==1.3.3 vs Adafruit_Python_DHT=1.3.3 |
@Vanuan commented on Aug 4, 2018, 5:29 PM UTC: awarecan Even with this change, are you sure it won't require changes on hassio-homeassistant repo? Have you read anything I wrote about missing gcc? |
@technicalpickles commented on Aug 4, 2018, 7:49 PM UTC: Vanuan nice sleuthing 🎉 One trick I'm using over in #15698 to avoid mentioning a version number in a Dockerfile is to |
@awarecan commented on Aug 5, 2018, 12:58 AM UTC: Vanuan please report hassio issue in its repo https://github.com/home-assistant/hassio/issues |
With home-assistant 0.75.1 is the problem fix and it install the needed variant |
@pvizeli is that a question? Because in my test on hassOS/hassIO with 0.75.1 the dht sensor still does not work. |
Can confirm the issue as well. I planned on trying to fix it by using the development SSH but I couldn't even get that to work on a Rpi1-ModelB and didn't get the time or will to debug that. I would just change to clean debian if performance was not that much worse on an Rpi1. |
Got this issue on home-assistant v0.80.0 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Vanuan commented on Aug 2, 2018, 12:44 AM UTC:
Home Assistant release with the issue:
Docker hub image:
homeassistant/raspberrypi3-homeassistant
Looks like alpine based
Last working Home Assistant release (if known):
N/A
Operating environment (Hass.io/Docker/Windows/etc.):
Raspbian, hassio, docker
Component/platform:
https://www.home-assistant.io/components/sensor.dht/
Description of problem:
It requires a wheel module which can't be build without gcc.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
Apart of that,
Adafruit_Python_DHT==1.3.2
looks broken: adafruit/Adafruit_Python_DHT#102So 2 issues to fix:
This issue was moved by awarecan from home-assistant/home-assistant#15788.
The text was updated successfully, but these errors were encountered: