dask-sql
dask-sql copied to clipboard
[QST] pytest fails on mac
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
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
Pull didn't help. I changed test_postgres.py
-
to expose ports network="dask-sql", environment={"POSTGRES_HOST_AUTH_METHOD": "trust"}, ports={"5432": "5432"}
-
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