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 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

Asked By: HCroll

||

Answers:

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

Answered By: HCroll