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

eval() does not work with DaemonMode? #44

Open
rczerminski-valo opened this issue Nov 11, 2021 · 3 comments
Open

eval() does not work with DaemonMode? #44

rczerminski-valo opened this issue Nov 11, 2021 · 3 comments

Comments

@rczerminski-valo
Copy link

I was very happy to discover DaemonMode pkg!
One problem I just encounter is that it fails on eval()
Is this a user error? Can I somehow make it work?
Or is it a bug?
See below for simple example:

$ cat test.jl
println("test the daemon!")
v = eval(Meta.parse("pi"))
println("test the daemon! v= ", v)
$ julia -e 'using DaemonMode; runargs()' test.jl
est the daemon!
31mERROR: LoadError: MethodError: no method matching eval(::Symbol)
Stacktrace:
 [1] top-level scope at /private/tmp/test.jl:2

$ julia test.jl 
test the daemon!
test the daemon! v= π
$ 

Versions:

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
julia>
@dmolina
Copy link
Owner

dmolina commented Nov 11, 2021

Thank you. Yes, it is actually a limitation with DaemonMode that I have scheduled to solve, because in several packages (for instance, to use models for MLJ) it is required. I hope to fix in few days.

@dmolina
Copy link
Owner

dmolina commented Nov 11, 2021

Dear @rczerminski-valo, I have actually solved the eval problem in a new version 0.1.10. It was a priority for me because loading several models for MLJ was not possible without allowing eval function in DaemonMode. Please, when the new version is available, check it to be sure it is working.

@rczerminski-valo
Copy link
Author

Awesome! I will whenever new version is available.
In the meantime, I have encountered another problem. I am getting:
ERROR: LoadError: REvalError: Error in .julia$cmd(paste0(Rhomeset, "Base.include(Main,\"", system.file("julia/setup.jl", :
when I run using DaemonMode. The same script works fine when executed directly. The script is using R code (RCall Julia pkg and JuliaCall R pkg).

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

2 participants