Library Compiler Python code generation error
8 次查看(过去 30 天)
显示 更早的评论
HI,
I was trying to use the library compiler to generate some .m files into python. I select the ffunctions and an example exection file(.m) as well as specified in the guide:
however, I see this error in the command window in matlab and ther eis no file generated in the folder
for_redistribution_files_only\samples
Here is the error message in cmd window: Please let mek now of any solutions to this. Thanks.
com.mathworks.mvm.exec.MvmExecutionException: compiler.internal.ExampleParser.getArgumentValidation
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:404)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:262)
at com.mathworks.toolbox.compiler_examples.generation.ExampleValidator.validateExample(ExampleValidator.java:41)
at com.mathworks.toolbox.compiler.plugin.PackageCommand$3.iterate(PackageCommand.java:409)
at com.mathworks.project.impl.plugin.XmlReaderImpl.loop(XmlReaderImpl.java:232)
at com.mathworks.toolbox.compiler.plugin.PackageCommand.packageSamples(PackageCommand.java:402)
at com.mathworks.toolbox.compiler.plugin.PackageCommand.execute(PackageCommand.java:661)
at com.mathworks.project.impl.engine.DeploymentEngine.executeScript(DeploymentEngine.java:373)
at com.mathworks.project.impl.engine.DeploymentEngine.access$000(DeploymentEngine.java:44)
at com.mathworks.project.impl.engine.DeploymentEngine$2.run(DeploymentEngine.java:289)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Reference to a cleared variable this.
Error in ==> /usr/local/MATLAB/R2019a/toolbox/compiler_sdk/java/+compiler/+internal/ExampleParser.p>ExampleParser.getVariables at 0
Error in ==> /usr/local/MATLAB/R2019a/toolbox/compiler_sdk/java/+compiler/+internal/ExampleParser.p>ExampleParser.getArgumentValidation at 0
2 个评论
Kojiro Saito
2020-2-5
Are you compiling to Python package but get an error message of Java package (compiler_sdk/java)?
What your main function looks like?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
