In MATLAB I get the following python error: AttributeError: ‘module’ object has no attribute ‘fmi’
When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong?When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong? When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong? python-2.7, pyfmi, interface, python MATLAB Answers — New Questions