cstjean / ScikitLearn.jl

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

Error on Julia v 0.6 #30

Open mirestrepo opened 7 years ago

mirestrepo commented 7 years ago

After upgrading to Julia v0.6 ERROR: LoadError: Module ScikitLearn declares precompile(true) but require failed to create a usable precompiled cache file. Stacktrace:

running Pkg.build("ScikitLearn") after fixes it but should that be necessary?

cstjean commented 7 years ago

Yeah, I've hit that a few times during the 0.6 alpha period, but restarting Julia usually solved the problem. I've never used Pkg.build("ScikitLearn"). I posted a question about it on Discourse, we'll see if there's a solution. Thank you for the bug report.

stevengj commented 7 years ago

Possibly related to JuliaLang/julia#18150 and JuliaLang/julia#12508 ... precompiling succeeds, but it can't be loaded because you already have an older conflicting version of a module loaded. Nothing to do but to restart Julia.

cstjean commented 7 years ago

Ok, thank you for looking into it.

dsweber2 commented 6 years ago

I've been having this issue with 0.6.2. Restarting did make the problem go away. However, when I run from within Atom, the problem refuses to go away, even after restarting atom. I'm guessing there are some strange interactions going on with https://github.com/JunoLab/Atom.jl

harryscholes commented 6 years ago

Same. In Atom I'm getting error:

julia> using ScikitLearn
INFO: Recompiling stale cache file /Users/harry/.julia/lib/v0.6/ScikitLearn.ji for module ScikitLearn.
WARNING: The call to compilecache failed to create a usable precompiled cache file for module ScikitLearn. Got:
WARNING: Module Iterators uuid did not match cache file.

But import works fine in the REPL.

fdabhi commented 6 years ago

Same is the case with my system. Error when using in Atom but not otherwise.

stevengj commented 6 years ago

Probably you should file an issue with JunoLab/atom-julia-client Atom.jl … I'm guessing there is some issue with the Julia process persisting even when you quit Atom?

cstjean commented 6 years ago

I'm pretty sure that these problems are caused by the hokey reexporting I do in the submodules. I just don't have time to fix it at the moment (would welcome a PR if anyone's interested, but it's not trivial).

Does anyone object if I turn off precompilation in the meanwhile? It seems to affect many users.