Python Library failed to completely extract component

9 次查看(过去 30 天)
Using MATLAB Compiler I have produced a Python library. The output function depends on a variety of m and p files. The Compiler fails on the packaging step each time, but only on the for_redistribution step. It successfully generates the for_redistribution_files_only folder.
I ran `python setup.py install` in that directory and it was successful with one piece of output that may be relevant:
removing 'build\lib' (and everything under it)
'build\bdist.win-amd64' does not exist -- can't clean it
'build\scripts-3.6' does not exist -- can't clean it
removing 'build'
I can then import the library, but get the following error when I call the initialize() function on it:
>>> import SimDataGen
>>> SimDataGen.initialize()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\<myname>\AppData\Local\Continuum\anaconda3\lib\site-packages\SimDataGen\__init__.py", line 305, in initialize
return _pir.initialize_package()
File "C:\Users\<myname>\AppData\Local\Continuum\anaconda3\lib\site-packages\SimDataGen\__init__.py", line 253, in initialize_package
package_handle.initialize()
File "C:\Program Files\MATLAB\R2018a\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\deployablepackage.py", line 33, in initialize
mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path)
SystemError: Could not access the MATLAB Runtime component cache. Details: Some error has occurred in the file: b:\matlab\standalone\mclmcr\mcr_cache\mclcomponentcache.cpp, at line: 260.
The error message is:
Failed to completely extract component!
; component cache root:C:\Users\<myname>\AppData\Local\Temp\<myname>\mcrCache9.4; componentname: SimDataGen
I really have no idea what to do next. I have looked at other similar questions to no avail. I'm running on a Windows 10 environment.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Python Package Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by