Skip to content

Set JULIA_PYTHONCALL_EXE instead of JULIA_PYTHONCALL_EXECUTABLE in juliacall - #814

Merged
cjdoris merged 1 commit into
JuliaPy:mainfrom
MilesCranmerBot:fix-juliacall-exe-envvar
Sep 9, 2026
Merged

Set JULIA_PYTHONCALL_EXE instead of JULIA_PYTHONCALL_EXECUTABLE in juliacall#814
cjdoris merged 1 commit into
JuliaPy:mainfrom
MilesCranmerBot:fix-juliacall-exe-envvar

Conversation

@MilesCranmerBot

Copy link
Copy Markdown
Contributor

Fixes #813.

JuliaCall set the environment variable JULIA_PYTHONCALL_EXECUTABLE, which nothing reads, instead of JULIA_PYTHONCALL_EXE. Since PythonCall reads JULIA_PYTHONCALL_EXE (with a Preferences fallback) to locate the Python executable, child Julia processes spawned from an embedded Julia did not see the running Python and instead resolved a fresh CondaPkg environment.

This sets the correct variable at the process level before jl_init, so it is visible both to PythonCall during initialization (e.g. when baked into a sysimage) and to any child Julia processes.

…liacall

JuliaCall set JULIA_PYTHONCALL_EXECUTABLE, which nothing reads, so the
Python executable was not visible to Julia at the process level and
child Julia processes resolved a new CondaPkg environment.

Fixes JuliaPy#813

Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
@cjdoris
cjdoris merged commit 80d2988 into JuliaPy:main Sep 9, 2026
14 of 18 checks passed
@cjdoris

cjdoris commented Sep 9, 2026

Copy link
Copy Markdown
Member

Yikes that's embarrassing. Thanks for the fix!

@MilesCranmer

Copy link
Copy Markdown
Contributor

Thanks!

Do you think you could cut a release please? Need it to fix my conda-forge CI

@cjdoris

cjdoris commented Sep 10, 2026

Copy link
Copy Markdown
Member

On my hols but will do when back next week.

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 this pull request may close these issues.

Bug introduced by JuliaCall 0.9.35 - mistakenly uses JULIA_PYTHONCALL_EXECUTABLE not JULIA_PYTHONCALL_EXE

3 participants