Skip to content

Commit

Permalink
Uninstall enum34 in python3.6 docker image (home-assistant#8103)
Browse files Browse the repository at this point in the history
* Uninstall enum34 in python3.6 docker image

This is a short term fix for home-assistant#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
  • Loading branch information
jeanregisser authored and balloob committed Jun 24, 2017
1 parent f1290d3 commit 45f6f44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down

0 comments on commit 45f6f44

Please sign in to comment.