필터 지우기
필터 지우기

"AsyncStream not terminated correctly" when using matlab engine in Python with slurm

조회 수: 7 (최근 30일)
Julian
Julian 2022년 11월 18일
답변: Abhijeet 2023년 8월 28일
Hi,
I'm using matlab in a Python Script that I'm running with Slurm.
Python is version 3.6 and Matlab 2020a but I also tried 2019a.
Even when I'm running a minimal Example
import matlab.engine
eng = matlab.engine.start_matlab()
A week ago the code worked without problems but now I'm getting the following Error:
python: export/include/msg_svc/transport/layers/stream/AsyncStream.hpp:68: foundation::msg_svc::transport::layers::stream::AsyncStream<HANDLE>::~AsyncStream() [with HANDLE = foundation::msg_svc::transport::layers::media::LocalSocket]: Zusicherung »AsyncStream not terminated correctly« nicht erfüllt.
srun: error: paris3: task 0: Aborted (core dumped)
I tried reinstalling the conda environment and the matlab engine but nothing worked.
  댓글 수: 1
David
David 2022년 11월 29일
Julian, you probably solved your issue by now but for the record, I had a MATLAB instance opened and got the same error. I closed MATLAB and then the matlab.engine.start_matlab() command worked correctly.

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhijeet
Abhijeet 2023년 8월 28일
Hi Julian,
I can understand that you have observed unexpected behaviour on using MATLAB in python script while running on Slurm. For troubleshooting you can refer the following steps: -
  1. Check MATLAB and Python Versions: Ensure that you are using compatible versions of MATLAB and Python. In your case, MATLAB 2020a and Python 3.6 should be compatible, but make sure there have not been any changes or updates that might have affected the compatibility.
  2. Check Slurm Environment: Make sure there were no changes in the Slurm environment, such as updates or configuration changes, that could affect the way MATLAB interacts with Python.

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by