Error 127 Details: Unable to load bundle binary C:\Program Files\MATL​AB\R2020b\​bin\win64\​builtins\m​atlab_tool​box_genera​l_builtins​\mwwkspint​rospect_bu​iltinimpl.​dll

조회 수: 103 (최근 30일)
I have compiled a python package for a matlab function. But when i run the same by initializing the mcr instance in python i get the error below. I suspect that the startup.m script is not being called and hence Matlab is not able to find the .dll file. How can this be fixed ?
I get this error while executing the matlab function from a flask app. But it runs without any errors when executed through a standalone python script or through the interpreter.
PS: I have a feeling that if i somehow call startup.m in my main function then it should solve the problem.
File "C:\Program Files\MATLAB\R2020b\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\deployablefunc.py", line 80, in __call__
nlhsWasSpecified, stdoutObj, stderrObj).result()
File "C:\Program Files\MATLAB\R2020b\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\futureresult.py", line 135, in result
raise e
File "C:\Program Files\MATLAB\R2020b\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\futureresult.py", line 123, in result
raise e
File "C:\Program Files\MATLAB\R2020b\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\futureresult.py", line 113, in result
self._nlhs, out=self._out, err=self._err)
matlab_pysdk.runtime.MatlabRuntimeError: An error occurred when evaluating the result from a function. Details: Unable to load bundle binary C:\Program Files\MATLAB\R2020b\bin\win64\builtins\matlab_toolbox_general_builtins\mwwkspint
rospect_builtinimpl.dll. Error: 127: state not recoverable

답변 (2개)

Priysha LNU
Priysha LNU 2020년 10월 7일
This issue is potentially caused by spaces in the Windows "%temp%" directory path. Once your Windows "%temp%" directory path does not have a space, the script should be able to execute without error. Spaces in the Windows "%temp%" directory may be caused by spaces in the Windows username.
Here "C:\Program Files\" seems to contain a space character. Changing to a directory without the "space character" in the path might help resolve this issue.
This is a known issue and you can find a workaround in the following bug report:
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
  댓글 수: 9
Antony Smith
Antony Smith 2022년 11월 28일
If this is an issue with the space in "Program Files" then that is clearly a major bug in the installation of Matlab.
A while back I had this issues and it took me days to figure out the cause was the space in my User Account name. To solve it I had to create a new User Account with a single word name.
Now I have gotten a new laptop and installed Matlab on the single named user account, which ran fine at first. After several hours of installing all of the required Add-Ons and libraries, I switch my laptop on today and when trying to create new Simulink file, I am getting the Error:
Failed to load bundle #441: C:\Program Files\MATLAB\R2022b\bin\win64\dastudio.dll
I REALLY do not want to uninstall and go through all of this again.
How can Matlab overlook something as obvious as a SPACE character in the file recall system. Especially when it is the one that chose the installtion path of "C:/Program Files"???
Has nobody figured out a quicker work around for this sissue?
Gary
Gary 2023년 3월 18일
reinstall all the matlab with path without space, still not Ok. Error still.......

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


Mohammad
Mohammad 2023년 12월 20일
how can matlab overlook this problem? i still face similar issue with no solution

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by