MATDaemon.jl icon indicating copy to clipboard operation
MATDaemon.jl copied to clipboard

error getting matdaemon to call Julia

Open sasandoval opened this issue 2 years ago • 4 comments

I get an error when trying to run the example jlcall('sort', {rand(2,5)}, struct('dims', int64(2))) function from the readme. I have tried adding Julia to the PATH in multiple ways (along with @pdetrempe), including creating an alias and I still get a status = 127 error when using jlcall > try_run

sasandoval avatar Dec 13 '23 23:12 sasandoval

Please include the error message. Also, you can pass the path to the Julia binary directly using the 'runtime' flag.

jondeuce avatar Dec 16 '23 22:12 jondeuce

Hi, thanks for your reply. Here is the error that I get:

Screenshot 2023-12-13 at 4 35 04 PM

On your comment about passing the path to the Julia binary directly. I am not familiar with that 'runtime' flag, can you point me to a good reference to do that?

Thank you.

sasandoval avatar Dec 19 '23 21:12 sasandoval

The runtime flag can be used to directly pass the path of the julia executable: jlcall(..., 'runtime', '/path/to/julia')

kamesy avatar Dec 20 '23 16:12 kamesy

Thanks for the suggestion, when I tried doing that, I didn't get the error anymore but MATLAB did not get past the following:

Screenshot 2023-12-21 at 11 51 57 AM

When I stopped the simulation after ~20 minutes, I got the following:

Screenshot 2023-12-21 at 11 56 28 AM

sasandoval avatar Dec 21 '23 17:12 sasandoval