cstjean / ScikitLearn.jl

Julia implementation of the scikit-learn API https://cstjean.github.io/ScikitLearn.jl/dev/
Other
546 stars 74 forks source link

Failure to precompile in Julia 1.7.1 #105

Open daler6 opened 2 years ago

daler6 commented 2 years ago

After installing Julia 1.7.1., I receive the following error when trying to use ScikitLearn:

[ Info: Precompiling ScikitLearn [3646fa90-6ef7-5e7e-9f22-8aca16db6324] ImportError: No module named site ERROR: Failed to precompile ScikitLearn [3646fa90-6ef7-5e7e-9f22-8aca16db6324] to /Users/dsr/.julia/compiled/v1.7/ScikitLearn/jl_0p2qlg. Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool) @ Base ./loading.jl:1466 [3] compilecache(pkg::Base.PkgId, path::String) @ Base ./loading.jl:1410 [4] _require(pkg::Base.PkgId) @ Base ./loading.jl:1120 [5] require(uuidkey::Base.PkgId) @ Base ./loading.jl:1013 [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:997

cstjean commented 2 years ago

Ouch, PRs are appreciated... Thank you for the report.

ablaom commented 2 years ago

I am not able to reproduce but did have a different issue that was resolved with

import Conda
Conda.update()

You may have to add Conda to your environment.

I believe I am using the python installation private to julia (ENV["PYTHON"] is not defined). Do you know what installation you are using (what is ENV["PYTHON"] for you?).