dask-sql icon indicating copy to clipboard operation
dask-sql copied to clipboard

[QST] pytest fails on mac

Open PeterLappo opened this issue 4 years ago • 2 comments

Hi pytests are failing on my Mac using pytest tests e.g. ERROR tests/integration/test_postgres.py::test_select - docker.errors.APIError: 400 Client Error for http+docker://localhost/v1.41/containers/eb41afb2350c9a5f82a7f872db25539aed6115bf5cf2ae3e813b68d9e2e0736b/... I have docker installed Any ideas? Thanks Peter

PeterLappo avatar Nov 25 '21 23:11 PeterLappo

Thanks for your contributions @PeterLappo 😄 do you have the relevant Docker images for Hive/Postgres testing pulled?

https://github.com/dask-contrib/dask-sql/blob/a3fc92d72383fcc4b72e3092477c67fb5903f4a2/.github/workflows/test.yml#L104-L105

charlesbluca avatar Nov 29 '21 14:11 charlesbluca

Pull didn't help. I changed test_postgres.py

  1. to expose ports network="dask-sql", environment={"POSTGRES_HOST_AUTH_METHOD": "trust"}, ports={"5432": "5432"}

  2. set address to be my IP address = '192.168.1.98' # postgres.attrs["NetworkSettings"]["Networks"]["dask-sql"]["IPAddress"]

Maybe my Docker Desktop setup is different

PeterLappo avatar Nov 30 '21 21:11 PeterLappo