Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Rahul_Jain1989
  • » Profile

Posts

Posts

Jun-17-16 13:54:38
AttributeError: 'module' object has not attribute 'run'

This is the error message

>>> from OMPython import OMCSession
>>> OMPython = OMCSession()
omniORB: (0) 2016-06-17 18:12:26.970936: ERROR! omniORBpy version 4.2 expects stubs version 4.2. Stubs in /usr/local/lib/python2.7/site-packages/OMPythonIDL/omc_communication_idl.pyc are version 3.0 (rev 0).
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/OMPython/__init__.py", line 192, in __init__
    self._connect_to_omc()
  File "/usr/local/lib/python2.7/site-packages/OMPython/__init__.py", line 125, in _connect_to_omc
    from OMPythonIDL import _OMCIDL
  File "/usr/local/lib/python2.7/site-packages/OMPythonIDL/_OMCIDL/__init__.py", line 9, in <module>
    import OMPythonIDL.omc_communication_idl
  File "/usr/local/lib/python2.7/site-packages/OMPythonIDL/omc_communication_idl.py", line 7, in <module>
    _omnipy.checkVersion(3,0, __file__)
ImportError: Stubs not compatible with omniORBpy version 4.2.

Jun-17-16 13:50:54
AttributeError: 'module' object has not attribute 'run'

I am trying to run OMPython on mac. I installed OMPython through pip and omniORB packages through homebrew. I am able to import OMPython but when I use OMCSession I get an error saying "omniORBpy version 4.2 expects stubs version 4.2. Stubs in /usr/local/lib/python2.7/site-packages/OMPythonIDL/omc_communication_idl.pyc are version 3.0 (rev 0)".

  • Index
  • » Users
  • » Rahul_Jain1989
  • » Profile
You are here: