Search code examples
pythonpython-3.xmodelicaopenmodelica

OMPython File Specification to run OMCSessionZMQ()


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 system cannot find the file specified

Full traceback shown here

Has anyone experienced this error before? I believe I have my environment variables set correctly but I am not sure.

Thank you


Solution

  • Answer as provided by Adrian Pop was to uninstall, restart, and reinstall OpenModelica. This fixed the error.