JuliaInterop / MATLAB.jl

Calling MATLAB in Julia through MATLAB Engine
MIT License
270 stars 63 forks source link

Mac M1: MATLAB.MEngineError("invalid engine session... #198

Open kocvara opened 2 years ago

kocvara commented 2 years ago

UPDATE: This was already (partially) answered in Issue #195:

When I try running a Matlab command in Julia (e.g. mat"x=1"), I am getting

ERROR: MATLAB.MEngineError("invalid engine session (err = 1)")

This is on my new MacBook with M1 Pro processor, where Matlab runs via Rosetta.

With exactly the same setting, all works fine on my old MacBook with Intel. Is the problem caused by the M1 or Rosetta? Anyone else has experienced this?