From 9b768c8816fe47a2fa1f78eadc48453bbba43fce Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Mon, 19 Jun 2017 11:48:37 +0200 Subject: [PATCH 1/2] Uninstall enum34 in python3.6 docker image This is a short term fix for #7733 What's happening is the following dependencies are pulling enum34: - pygatt - libsoundtouch - yeelight However, enum34 is not meant to be installed in Python versions 3.4+ and causing the `AttributeError: module 'enum' has no attribute 'IntFlag'`` I've submitted patches to these projects so we don't have to do this manual uninstall in the future. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6dae36bb24b0c5..7e51d02d0ceb21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,8 @@ RUN virtualization/Docker/setup_docker_prereqs # Install hass component dependencies COPY requirements_all.txt requirements_all.txt RUN pip3 install --no-cache-dir -r requirements_all.txt && \ - pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet + pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet && \ + pip3 uninstall enum34 # Copy source COPY . . From 895510c4a716cafdec3bd8764945198d6f1978bf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 23 Jun 2017 22:23:32 -0700 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7e51d02d0ceb21..3f8518de8e265f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ RUN virtualization/Docker/setup_docker_prereqs # Install hass component dependencies COPY requirements_all.txt requirements_all.txt +# Uninstall enum34 because some depenndecies install it but breaks Python 3.4+. +# See PR #8103 for more info. RUN pip3 install --no-cache-dir -r requirements_all.txt && \ pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet && \ pip3 uninstall enum34