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

Failure to precompile in Julia 1.7.1 #105

Open
daler6 opened this issue Dec 23, 2021 · 2 comments
Open

Failure to precompile in Julia 1.7.1 #105

daler6 opened this issue Dec 23, 2021 · 2 comments

Comments

@daler6
Copy link

daler6 commented Dec 23, 2021

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
Copy link
Owner

cstjean commented Dec 24, 2021

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

@ablaom
Copy link

ablaom commented Dec 27, 2021

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?).

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