openmodelica

ModelicaRes import fails in python

ModelicaRes import fails in python Question: I want to use ModelicaRes to open my Dymola results in python but the import fails. from modelicares.simres import SimRes Gives the following error: ————————————————————————— ImportError Traceback (most recent call last) Cell In [2], line 1 —-> 1 from modelicares.simres import SimRes File C:ProgramDataMiniforge3envsmainlibsite-packagesmodelicares__init__.py:54 40 __version__ = ‘0.12.2’ 43 …

Total answers: 1

OMPython File Specification to run OMCSessionZMQ()

OMPython File Specification to run OMCSessionZMQ() Question: I am trying to run OMPython and I am experiencing an error running the example shown at https://openmodelica.org. I can run the first line: from OMPython import OMCSessionZMQ But when I try to run the second line: omc = OMCSessionZMQ() I get the error: FileNotFoundError: [WinError 2] The …

Total answers: 1