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

When IJULIA_NODEFAULTKERNEL is defined, exe is not. #1075

Closed
jmuchovej opened this issue May 8, 2023 · 1 comment · Fixed by #1079
Closed

When IJULIA_NODEFAULTKERNEL is defined, exe is not. #1075

jmuchovej opened this issue May 8, 2023 · 1 comment · Fixed by #1079

Comments

@jmuchovej
Copy link

👋 I've run into an error while trying to build a container for a project I'm working on. We were trying to sidestep the default Julia kernel for a custom one, but it seems that exe is defined in kspec which is only loaded if IJULIA_NODEFAULTKERNEL is undefined.

Is this an intentional error?

if !haskey(ENV, "IJULIA_NODEFAULTKERNEL")
# Install Jupyter kernel-spec file.
include("kspec.jl")
kernelpath = installkernel("Julia", "--project=@.")
end

condajupyter = normpath(Conda.SCRIPTDIR, exe("jupyter"))

ERROR: Error building `IJulia`: 
#0 49.27 ERROR: LoadError: UndefVarError: exe not defined
#0 49.27 Stacktrace:
#0 49.27  [1] top-level scope
#0 49.27    @ ~/.julia/packages/IJulia/AQu2H/deps/build.jl:18
#0 49.27  [2] include(fname::String)
#0 49.27    @ Base.MainInclude ./client.jl:476
#0 49.27  [3] top-level scope
#0 49.27    @ none:5
#0 49.27 in expression starting at /home/vscode/.julia/packages/IJulia/AQu2H/deps/build.jl:18
@stevengj
Copy link
Member

stevengj commented Jun 2, 2023

Looks like a bug, should be fixed in #1079.

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

Successfully merging a pull request may close this issue.

2 participants