-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
cannot import nonprecompiled packages from embedding interface #14577
Comments
you've probably set JULIA_HOME wrong. it should point to the julia executable. |
I haven't set JULIA_HOME. I call
with |
Ref: https://groups.google.com/forum/?nomobile=true#!topic/julia-users/2sR6QdPLA80 I do the same as @mlubin. In # Julia stuff
set(JULIA_PATH /home/kristoffer/julia0.4)
set(JULIA_LIB_DIR ${JULIA_PATH}/usr/lib)
add_definitions(-DJULIA_INIT_DIR="${JULIA_LIB_DIR}") and in c++: jl_init(JULIA_INIT_DIR); |
@KristofferC, is it working or broken for you with that configuration? |
Broken as in the julia user post. |
Bump, seems like a potential blocker for 0.5 to not be able to safely import packages from the embedding interface. |
Worked on this with @KristofferC and reproduced using ForwardDiff. The issue was that |
Shouldn't the |
Yes |
Also, why is this needed at all? Is the path from libjulia to the system image not fixed? |
|
As far as I can tell there is nothing to be done here. There have been a variety of changes to init.c, and the test script now works with default |
Changing the embedding example code to:
gives
So I guess this is still/again an issue. Ref: https://discourse.julialang.org/t/embedding-jullia-jl-init-julia-init-and-julia-home/4032 |
I ran into the same issue in developing |
If I have a call, e.g.,
and the MathProgBase package hasn't been precompiled, then I get an exception:
The path
/mnt/hdd/mlubin/julia-0.4/julia-bb73f3489d/lib/julia
is a directory, not the julia binary.The text was updated successfully, but these errors were encountered: