DLL fails to load - matlabruntimeforpython_abi3
이전 댓글 표시
Hi all,
I've been struggling with this one for a few days now. I'm looking for proof of concept program that I can package a matlab function and then import it to my python executable. So far everything runs great in a terminal, but after using PyInstaller to generate the executable the I cannot get it to run. I've installed the MATLAB 2025b runtime and did install the package that was generated using the Python Package Compiler in MATLAB.
I get the following output in my command window when I attempt to launch matlab_test.exe:

My MATLAB function:
function a = matlab2python(b)
a = sqrt(b);
end
My python code:
import os
import sys
import time
import matlabsdk as sdk_python_test
import matlab
if __name__ == "__main__":
pkg = sdk_python_test.initialize()
result = pkg.matlab2python(9.0)
print(result)
pkg.terminate()
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Python Package Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!