Skip to content
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

Error in @sk_import datasets #129

Open
Vilin97 opened this issue May 31, 2024 · 5 comments
Open

Error in @sk_import datasets #129

Vilin97 opened this issue May 31, 2024 · 5 comments

Comments

@Vilin97
Copy link

Vilin97 commented May 31, 2024

The code I try to run:

using ScikitLearn # no error
@sk_import datasets: (make_circles, make_moons, make_blobs) # Error

Error stacktrace:

[ Info: Running `conda install -y -c anaconda conda` in root environment
Channels:
 - anaconda
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
    current version: 24.3.0
    latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c conda-forge conda



# All requested packages already installed.

[ Info: Running `conda install -y -c conda-forge libstdcxx-ngnothing` in root environment
Channels:
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - libstdcxx-ngnothing

Current channels:

  - https://conda.anaconda.org/conda-forge

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


[ Info: scikit-learn isn't properly installed.Please make sure PyCall is using the default Conda or non-conda local python.
ERROR: failed process: Process(setenv(`/home/vilin/.julia/conda/3/x86_64/bin/conda install -y -c conda-forge libstdcxx-ngnothing`,["PATH=/home/vilin/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:/home/vilin/.elan/bin:/home/vilin/.local/bin:/home/vilin/.juliaup/bin:/home/vilin/julia-1.9.0/bin:/home/vilin/anaconda3/bin:/usr/local/texlive/2023/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/2474/bus", "MANPATH=/usr/bin/local/texlive/2023/texmf-dist/doc/man:", "OPENBLAS_DEFAULT_NUM_THREADS=1", "USER=vilin", "JULIA_EDITOR=code", "LESSCLOSE=/usr/bin/lesspipe %s %s", "MATHEMATICA_HOME=/home/mathematica", "XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop", "LESSOPEN=| /usr/bin/lesspipe %s"  …  "GRDIR=/home/vilin/.julia/artifacts/2118fab1644a0abb3dd43fb741c68b42e8a92505", "TERM_PROGRAM=vscode", "VSCODE_GIT_ASKPASS_MAIN=/home/vilin/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/extensions/git/dist/askpass-main.js", "SSH_CONNECTION=71.212.7.86 55462 128.95.224.237 22", "MAIL=/var/mail/vilin", "FONTCONFIG_PATH=/home/vilin/.julia/artifacts/558980a93131f08be5335521b84e137ee3172296/etc/fonts", "CONDA_PREFIX=/home/vilin/.julia/conda/3/x86_64", "XDG_SESSION_ID=1912", "OPENBLAS_MAIN_FREE=1", "LS_COLORS="]), ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error
   @ ./process.jl:598 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base ./process.jl:513
 [3] run
   @ ./process.jl:510 [inlined]
 [4] runconda(args::Cmd, env::String)
   @ Conda ~/.julia/packages/Conda/sDjAP/src/Conda.jl:182
 [5] add(pkg::String, env::String; channel::String, satisfied_skip_solve::Bool, args::Cmd)
   @ Conda ~/.julia/packages/Conda/sDjAP/src/Conda.jl:343
 [6] add
   @ ~/.julia/packages/Conda/sDjAP/src/Conda.jl:326 [inlined]
 [7] import_sklearn()
   @ ScikitLearn.Skcore ~/.julia/packages/ScikitLearn/sqLdT/src/Skcore.jl:208
 [8] macro expansion
   @ ~/.julia/packages/ScikitLearn/sqLdT/src/Skcore.jl:272 [inlined]
 [9] top-level scope
   @ ~/GradientFlows.jl/scripts/sample.jl:67

Version info:

(@v1.11) pkg> st ScikitLearn
Status `~/.julia/environments/v1.11/Project.toml`
  [3646fa90] ScikitLearn v0.7.0

julia> versioninfo()
Julia Version 1.11.0-beta1
Commit 08e1fc0abb9 (2024-04-10 08:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 80 × Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, broadwell)
Threads: 10 default, 0 interactive, 5 GC (on 80 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 10
@cstjean
Copy link
Owner

cstjean commented May 31, 2024

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.

@tylerjthomas9
Copy link
Contributor

tylerjthomas9 commented May 31, 2024

I think this is related to #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: #118

@cstjean
Copy link
Owner

cstjean commented Jun 3, 2024

@Vilin97 To be clear: please try ]add ScikitLearn#master and rerun your code to see if it solves the error.

@Vilin97
Copy link
Author

Vilin97 commented Jun 3, 2024

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`

@cstjean
Copy link
Owner

cstjean commented Jun 3, 2024

Do you get the same problems on Julia 1.10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants