pyjulia
pyjulia copied to clipboard
JuliaInfo.load cannot find julia executable
Although JuliaInfo.load
is defined with necessary information, it's always invoked with default argument julia="julia"
, and Popen
raised an exception.
Not have an idea why but setting julia = <abspath of my julia exe>
works.
Is julia
on os.environ["PATH"]
?
Yes, the julia binary directory is in PATH.
Another thing strange is... If I open a Python interactive shell or use IPython, subprocess.Popen(['julia'])
does work.
Hmm... That's very strange. Do you have trouble when invoking julia.api.JuliaInfo.load()
directly or via julia.api.Julia()
? Can you share your full traceback? I'm asking this because julia.api.Julia
does some pre-processing before caling JuliaInfo.load
.
In fact, with my conda python it didn't work. It got raised when I was trying this to use my custom sysimg: https://github.com/JuliaPy/pyjulia/issues/310#issuecomment-514034208
However, last night I change to the Python distributed by arch linux according to your suggestions in some post, and now julia.api.JuliaInfo.load()
works.
After my ddl I'll rebuild PyCall with my conda python and track this.
Share us the full traceback next time you got the error. It may be helpful.