Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when start matlab engine #20

Open
jxpeng98 opened this issue Jan 1, 2023 · 0 comments
Open

Error when start matlab engine #20

jxpeng98 opened this issue Jan 1, 2023 · 0 comments

Comments

@jxpeng98
Copy link

jxpeng98 commented Jan 1, 2023

Hello,

I installed matlab r2022b and python 3.10.9.

After installing python3 -m pip install matlabengine and import matlab.engine,
I failed to start matlab engine. After I enter eng = matlab.engine.start_matlab(), it takes a very long time to get the output:

>>> eng = matlab.engine.start_matlab()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/__init__.py", line 130, in start_matlab
    eng = future.result()
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/futureresult.py", line 67, in result
    return self.__future.result(timeout)
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/matlabfuture.py", line 87, in result
    handle = pythonengine.getMATLAB(self._future)
matlab.engine.EngineError: Connection to process with Exchange: " " was lost.

May I know if there is any solution to fix this?

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

No branches or pull requests

1 participant