Open Vilin97 opened 5 months ago
conda install -y -c conda-forge libstdcxx-ngnothing
Sounds like this is the problem, and it looks unrelated to ScikitLearn. Sorry, I cannot help, but I would try posting it to Conda.jl or discourse.
I think this is related to https://github.com/cstjean/ScikitLearn.jl/pull/126. Does installing ScikitLearn.jl from the master branch fix this?
It may be worth removing this patch because the latest Julia versions (1.8.3+) work with scikit-learn v1.2+.
The patch was introduced here: https://github.com/cstjean/ScikitLearn.jl/pull/118
@Vilin97 To be clear: please try ]add ScikitLearn#master
and rerun your code to see if it solves the error.
Now I get a segfault, @cstjean
(@v1.11) pkg> add ScikitLearn#master
Cloning git-repo `https://github.com/cstjean/ScikitLearn.jl.git`
Updating git-repo `https://github.com/cstjean/ScikitLearn.jl.git`
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Precompiling CUDA_Driver_jll...
1 dependency successfully precompiled in 3 seconds. 30 already precompiled.
Precompiling CUDA_Runtime_jll...
1 dependency successfully precompiled in 3 seconds. 31 already precompiled.
Updating `~/.julia/environments/v1.11/Project.toml`
[3646fa90] ~ ScikitLearn v0.7.0 ⇒ v0.7.0 `https://github.com/cstjean/ScikitLearn.jl.git#master`
Updating `~/.julia/environments/v1.11/Manifest.toml`
[3646fa90] ~ ScikitLearn v0.7.0 ⇒ v0.7.0 `https://github.com/cstjean/ScikitLearn.jl.git#master`
Precompiling project...
27 dependencies successfully precompiled in 152 seconds. 453 already precompiled.
julia> using ScikitLearn
julia> @sk_import datasets: (make_circles, make_moons, make_blobs) # Error
[11952] signal 11 (1): Segmentation fault
in expression starting at REPL[4]:1
_Z10call_thunkcPKcPFxiiPPvEP7_object at /usr/local/lib/python3.6/dist-packages/scipy/sparse/_sparsetools.cpython-36m-x86_64-linux-gnu.so (unknown line)
Allocations: 28198171 (Pool: 28194033; Big: 4138); GC: 25
Segmentation fault (core dumped)
(@v1.11) pkg> st ScikitLearn
Status `~/.julia/environments/v1.11/Project.toml`
[3646fa90] ScikitLearn v0.7.0 `https://github.com/cstjean/ScikitLearn.jl.git#master`
Do you get the same problems on Julia 1.10?
The code I try to run:
Error stacktrace:
Version info: