Issue with Matlab runtime 2023b: libmwlmgrimpl.dll failed with error: The specified procedure could not be found.

87 ビュー (過去 30 日間)
Hi, I compiled a Python package with MATLAB Compiler SDK 2023b. Everything works as expected on the computer where the package was compiled. My issue is with another computer where the MATLAB Runtime as been installed along with the compiled python package. I am using Python 3.11.
This is the error I am getting:
std::exception: Loading C:\Program Files\MATLAB\MATLAB Runtime\R2023b\bin\win64\matlab_startup_plugins\lmgrimpl\libmwlmgrimpl.dll failed with error: The specified procedure could not be found.
Now, I saw some other users with similar issues:
  1. https://www.mathworks.com/matlabcentral/answers/375270-why-does-my-matlab-compiler-standalone-application-fail-to-start-with-a-the-operating-system-cannot
  2. https://www.mathworks.com/matlabcentral/answers/373411-compiled-application-does-not-run-because-of-startup-plugin-libmwlmgrimpl-dll
My issue cannot be solved like solutions 1 and 2 as I do not have files named SSLEAY32.DLL and LIBEAY32.DLL in my system32 folder. I seem to stumble on something else.
The python code that will throw this error would be something like this:
import mypackage
MyPackage = mypackage.initialize() # this line throws the error
Now with the very limited message I am getting, I do not know what steps I should take to solve this. I am not admin on this computer and I can get IT support but through a ticket system which can take 1 to 2 day before getting a response. Before writing a ticket, I would like to list all the different possible issues with their solutions so I can get through them with IT when they get available.
Thanks in advance,
  4 件のコメント
Yuqiu Zhao
Yuqiu Zhao 2023 年 12 月 15 日
Thank you for sharing the information. I reinstalled 2022a, and that worked.
CJD
CJD 2024 年 2 月 23 日
Same problem for me. Went back to 2022a.

サインインしてコメントする。

採用された回答

Christian Pronovost
Christian Pronovost 2023 年 12 月 14 日
I found the issue:
I used dependencies.exe (https://github.com/lucasg/Dependencies) to check on libmwlmgrimpl.dll and I noticed that C:\Windows\system32\kernel32.dll had some missing functions. That lead to checking versions of OS and that was it: The OS is Windows Server 2016 which is not supported anymore by MATLAB Runtime 2023b. I tried with MATLAB 2021b and that worked.
It is just too bad that no warnings were issued at installation of the Runtime and that the error message is unmeaningful. Anyway, problem solved in this case. Thank you.
  3 件のコメント
Serhii
Serhii 2024 年 1 月 10 日
I use trial period.
I got same problem.
Only option to handle it - is installing older version of MatLab,
And this option is unavailable for trial type accounts. If I`m not missing something, It feels very bad, empty negative experience.
thank you for sharing method, anyway
Igor Zanetti
Igor Zanetti 2024 年 4 月 12 日
編集済み: Igor Zanetti 2024 年 4 月 12 日
Thanks for the hint, I got the same error on Windows Server 2016, I will just upgrade it to a newer platform to keep Mathworks suite running. I also confirm that 2021b works perfectly, I haven't tried 2022b though.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePython Package Integration についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by