pyjulia icon indicating copy to clipboard operation
pyjulia copied to clipboard

JuliaInfo.load cannot find julia executable

Open thautwarm opened this issue 5 years ago • 5 comments

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.

thautwarm avatar Sep 16 '19 12:09 thautwarm

Is julia on os.environ["PATH"]?

tkf avatar Sep 16 '19 18:09 tkf

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.

thautwarm avatar Sep 17 '19 00:09 thautwarm

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.

tkf avatar Sep 17 '19 01:09 tkf

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.

thautwarm avatar Sep 17 '19 01:09 thautwarm

Share us the full traceback next time you got the error. It may be helpful.

tkf avatar Sep 17 '19 01:09 tkf