MCR Applications with Python Functions

7 visualizaciones (últimos 30 días)
Peter Cook
Peter Cook el 23 de Jun. de 2017
Comentada: Peter Cook el 23 de Jun. de 2017
I am having an MCR compatiblity issue with python. When I run my application in native MATLAB (r2015b), I call a python script and it runs as intended. However once this application is compiled, I get the following error:
Undefined variable "py" or class "py.findAllDTSFiles.findAllDTSFiles".
Error in fipFinderPT>loadBinary_Callback (line 2732)
Error in gui_mainfcn (line 95)
Error in fipFinderPT (line 42)
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)fipFi
nderPT('loadBinary_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating Menu Callback
Is there a different syntax for calling python libraries in MCR applications?

Respuesta aceptada

Robert Snoeberger
Robert Snoeberger el 23 de Jun. de 2017
You could try the workaround suggested here .
  1 comentario
Peter Cook
Peter Cook el 23 de Jun. de 2017
That seems to work, thank you.
[Since asking the original question] I added a kludgey try-catch block that calls the script from a DOS shell, which also seems to accomplish the task.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Python Package Integration en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by