I have these libraries installed: This code: I am trying to get a generic container with clickhouse DB running. But it gives me: EOFError: Unexpected EOF while reading bytes. I am using Python 3.5.2. How to fix this? Answer It takes some time to run a container. Add a time delay before executing operations.