Library Compiler Python code generation error
15 views (last 30 days)
Show older comments
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 Comments
Kojiro Saito
on 5 Feb 2020
Are you compiling to Python package but get an error message of Java package (compiler_sdk/java)?
What your main function looks like?
Answers (0)
See Also
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!