Library Compiler Python code generation error

조회 수: 16 (최근 30일)
Ashrarul Sifat
Ashrarul Sifat 2020년 2월 5일
댓글: Ashrarul Sifat 2020년 2월 5일
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