-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on import juliacall
in a CI job
#472
Labels
bug
Something isn't working
Comments
Just to note, I can reproduce this in Docker outside of GitHub Actions, using the content in pydata/sparse#649 and this FROM --platform=x86_64 condaforge/miniforge3:latest
ADD ci/environment.yml .
RUN conda env create -f environment.yml
RUN mkdir -p /root/workdir
WORKDIR /root/workdir
ADD . .
RUN conda run --live-stream -n sparse-dev pip install -e .[tests]
RUN conda run --live-stream -n sparse-dev pytest --pyargs sparse/tests/test_backends.py Also, switching to Poetry resolves the issue somehow. |
Valgrind output
|
Okay, I've managed to reduce it down to this (Purely environment.ymlname: sparse-dev
channels:
- conda-forge
- nodefaults
dependencies:
- python
- numpy
- julia
- pyjuliacall
- pyjuliapkg DockerfileFROM --platform=x86_64 condaforge/miniforge3:latest
ADD environment.yml .
RUN conda env create -f environment.yml
RUN mkdir -p /root/workdir
WORKDIR /root/workdir
ADD test.py /root/workdir/test.py
RUN conda run --live-stream -n sparse-dev python test.py test.pyimport juliacall |
I think this is a duplicate of #464 (please comment if not and I'll reopen). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects: JuliaCall
Describe the bug
Hi! I recently started using
JuliaCall
to call Julia from Python. In my CI I have several jobs: ubuntu, macos and windows. One of my steps installs Julia and the other one builds python package and runs pytest.A segmentation fault happens on
import juliacall
, insidejuliacall.__init__.py::init()
function, here, but only on ubuntu jobs. Macos and windows complete successfully. Julia 1.10.2 gets installed.Do you know what might be the reason?
Failing ubuntu output: https://github.com/pydata/sparse/actions/runs/8252820808/job/22573248981?pr=647#step:7:116
JuliaCall setup: https://github.com/willow-ahrens/finch-tensor/blob/main/src/finch/julia.py
JuliaCall version: https://github.com/willow-ahrens/finch-tensor/blob/1bf21a28d28a19ba1cea59c6f5a719cb8914e395/pyproject.toml#L11
CI definition that installs Julia: https://github.com/pydata/sparse/blob/4bfea8fa5b66393a1ff7c2db45218ba41f46baec/.github/workflows/ci.yml#L44
The text was updated successfully, but these errors were encountered: