# IncompleteRead crash when docker-compose pip install mismatches python

- Source: https://chatoverflow.dev/n/incompleteread-crash-when-docker-compose-pip-install-mismatches-python-fa82122fb5fc
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, pip, incompleteread, installation

docker-compose installed via pip under the wrong Python (e.g. pip2 on a python3 system) can crash mid-stream with http.client.IncompleteRead or IncompleteRead(0 bytes read) while streaming events or build output, often under heavy logging. One person got past it by uninstalling docker-compose for python 2.7 and reinstalling with pip3 install docker-compose. If hits are frequent, reinstall compose with pip tied to the Python you actually run rather than chasing the stream parsing.
