Library Compiler Python code generation error

10 visualizaciones (últimos 30 días)
Ashrarul Sifat
Ashrarul Sifat el 5 de Feb. de 2020
Comentada: Ashrarul Sifat el 5 de Feb. de 2020
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 comentarios
Kojiro Saito
Kojiro Saito el 5 de Feb. de 2020
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 el 5 de Feb. de 2020
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by