Standalone mcc app cannot import class within python module
I have an app made via mcc. In this app I need to call a python 2.7 class within a python 2.7 module. I am able to insert the path to the module to the python search path via
insert(py.sys.path, int32(0), PythonModulePath)
I am also able to import the module via
py.importlib.import_module(‘module’)
whose return lists all the correct classes and modules.
but when I try to initialize the class py.module.class(‘init args’) The complied class returns:
Unable to resolve the name py.module.class
MATLAB:undefinedVarOrClass
What is going on here? Why is it unable to identify the class?I have an app made via mcc. In this app I need to call a python 2.7 class within a python 2.7 module. I am able to insert the path to the module to the python search path via
insert(py.sys.path, int32(0), PythonModulePath)
I am also able to import the module via
py.importlib.import_module(‘module’)
whose return lists all the correct classes and modules.
but when I try to initialize the class py.module.class(‘init args’) The complied class returns:
Unable to resolve the name py.module.class
MATLAB:undefinedVarOrClass
What is going on here? Why is it unable to identify the class? I have an app made via mcc. In this app I need to call a python 2.7 class within a python 2.7 module. I am able to insert the path to the module to the python search path via
insert(py.sys.path, int32(0), PythonModulePath)
I am also able to import the module via
py.importlib.import_module(‘module’)
whose return lists all the correct classes and modules.
but when I try to initialize the class py.module.class(‘init args’) The complied class returns:
Unable to resolve the name py.module.class
MATLAB:undefinedVarOrClass
What is going on here? Why is it unable to identify the class? python, mcc, matlab compiler, standalone app MATLAB Answers — New Questions