From 45f6f4443aa897a9c9c89cedbf3be6c7748cca94 Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Sat, 24 Jun 2017 07:29:39 +0200 Subject: [PATCH] Uninstall enum34 in python3.6 docker image (#8103) * 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. * Update Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6dae36bb24b0c5..3f8518de8e265f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,11 @@ 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 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet && \ + pip3 uninstall enum34 # Copy source COPY . .