JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

julia_setup() Error #102

Closed wpeterman closed 5 years ago

wpeterman commented 5 years ago

When trying to run julia_setup with R 3.5.2, I get the error pasted below. I'm not sure where to begin troubleshooting this issue. I've previously had no problems with this same computer running JuliaCall with julia v0.6.3 on R 3.5.0

Error Message

> JuliaCall::julia_setup(JULIA_HOME = "/users/PAS1396/osu10267/local/julia/1.1.0/bin")
Julia version 1.1.0 at location /users/PAS1396/osu10267/local/julia/1.1.0/bin will be used.
Loading setup script for JuliaCall...
ERROR: LoadError: RCall not properly installed. Please run Pkg.build("RCall")
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] top-level scope at /users/PAS1396/osu10267/.julia/packages/RCall/ffM0W/src/RCall.jl:34
 [3] include at ./boot.jl:326 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include(::Module, ::String) at ./sysimg.jl:29
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:328 [inlined]
 [8] eval(::Expr) at ./client.jl:404
 [9] top-level scope at ./none:3
in expression starting at /users/PAS1396/osu10267/.julia/packages/RCall/ffM0W/src/RCall.jl:31
LoadError("/users/PAS1396/osu10267/R/x86_64-pc-linux-gnu-library/3.5/JuliaCall/julia/setup.jl", 72, ErrorException("Failed to precompile RCall [6f49c342-dc21-5d91-9882-a32aef131414] to /users/PAS1396/osu10267/.julia/compiled/v1.1/RCall/8GFyb.ji.")) Error in .julia$cmd(paste0("Base.include(Main,\"", system.file("julia/setup.jl",  : 
  Error happens when you try to execute command Base.include(Main,"/users/PAS1396/osu10267/R/x86_64-pc-linux-gnu-library/3.5/JuliaCall/julia/setup.jl") in Julia.

Session Info

R version 3.5.2 (2018-12-20)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux

Matrix products: default
BLAS/LAPACK: /opt/intel/18.0.3/compilers_and_libraries_2018.3.222/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] JuliaCall_0.16.5

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2    Rcpp_1.0.0     knitr_1.20  
Non-Contradiction commented 5 years ago

Thanks for the feedback!

Maybe you can try to solve the problem by usingJuliaCall::julia_setup(JULIA_HOME = "/users/PAS1396/osu10267/local/julia/1.1.0/bin", rebuild = TRUE) in R, or run using Pkg; Pkg.build("RCall") in Julia.

wpeterman commented 5 years ago

Thanks. Rebuilding in Julia worked with one side effect: all printed outputs to the Julia console are transferred/printed to the R console. This is annoying, but manageable.

Non-Contradiction commented 5 years ago

Yeah. The rebuilding output can be quite annoying. But the good thing is that rebuilding does not need to run every time., and the information in the rebuilding stage can be beneficial if something goes wrong. If rebuilding is required repeatedly, then something is wrong, and you are welcome to reopen this issue again. Thanks for the feedback!