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
Tradfri dependencies not installed in docker container #10376
Comments
Manually adding the dependencies fixes the issue:
|
I don't know much about docker. Is |
I suspect this is introduced by #9875 which comments out the two missing dependencies (the PR contains a discussion wrt these deps) @MartinHjelmare autoconf is available in the docker container |
Ahh, yes, I think we should add a docker script back for coap install where it just installs the two tradfri requirements that are commented in requirements_all.txt. CC @lwis |
@MartinHjelmare yeah, alternatively just install cython and let HA install the dependency itself? |
Duplicate of #10048 |
@lwis I think that's what's failing now. I'm not a docker wiz, but I thought that installing deps during run time doesn't work in docker, and that's why all deps in requirements_all.txt are installed before starting home assistant in docker. |
Ok, I just wanted to avoid us having to maintain those dependency versions. |
Tried to install those packages
in 0.59 docker without success. |
With the latest tag 0.61 it finally started working again for me. |
I have the dependency problem running in Docker with version 0.63.3. pytradfri is missing. I noticed the dependencies are located in /config/deps/lib/python3.6/site-packages/, but they are obviously not loaded. I scrolled through the code and found this bit in requirements.py
Looks like that has to define the /config/deps. Is there something going wrong with the detection of this virtualenv? For me a workaround to get it to work was running this inside the docker image:
|
Docker install is not using a virtual environment. All requirements besides the commented ones are installed before home assistant is started. I'm not sure if installing requirements during runtime as home assistant normally does works for docker. |
#12662 should close this, pending builds. |
Home Assistant release (
hass --version
):0.57.1
docker containter: docker.io/homeassistant/home-assistant 0.57.1 5444bcc80f82
Python release (
python3 --version
):Python 3.6.3
Component/platform:
Tradfri
Description of problem:
Starting from the default config, the gateway is discovered, but when trying to configure the security code, I get the backtrace below.
Expected:
Work as expected
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
The text was updated successfully, but these errors were encountered: