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
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?
Ashrarul Sifat
Ashrarul Sifat 2020-2-5
I have nothing to do with java. I am trying to convert a bunch of .m files into python code. Here is the screenshot of the process I am using.
Screenshot from 2020-02-05 11-49-50.png

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler SDK 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by