Closed caspervdw closed 3 years ago
I was able to reproduce locally with the following dockerfile:
FROM python:3.7
RUN apt-get update && apt-get install -y libhdf5-dev --no-install-recommends
RUN pip install --disable-pip-version-check --upgrade pip && pip install --upgrade wheel
RUN pip install --no-build-isolation numpy==1.16.*
RUN pip install --no-build-isolation pytest scipy==1.3.* matplotlib==2.2.* pillow==5.3.* pandas==0.23.* scikit-image==0.14.* tables==3.5.* scikit-learn==0.20.* pyyaml==3.13 numba==0.39.* llvmlite==0.24.*
COPY . /code
WORKDIR /code
The problems are caused by numba. I started to gradually bump numpy and they dissappeared with numba==0.45. I think this has to do with https://github.com/numba/numba/issues/4323 ; so an incompatibilty between numba <0.45 and python 3.7.4 (we test with 3.7.10, but I guess the incompatibility persists accross these micro versions).
Solution is: test with numba 0.45 in our py37 env.
Sounds good. Cool that you found it so fast!
See: https://github.com/soft-matter/trackpy/runs/2236528914 and discussion in #654
The command
pytest trackpy
ends with:So the segfault happens probably when the interpreter shuts down.