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
  • » WRadigan
  • » Profile

Posts

Posts

Jan-16-15 01:32:06
AttributeError: 'module' object has not attribute 'run'

I'm having trouble getting OMPython working happily with my Enthought Canopy python installation.   The error message is below.

The python is: Python 2.7.6 --  64-bit

>>> from OMPython import OMCSession
>>> OMPython = OMCSession()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\WRadigan\AppData\Local\Enthought\Canopy\User\lib\site-packages\
ompython-2.0-py2.7.egg\OMPython\__init__.py", line 198, in __init__
    self._connect_to_omc()
  File "C:\Users\WRadigan\AppData\Local\Enthought\Canopy\User\lib\site-packages\
ompython-2.0-py2.7.egg\OMPython\__init__.py", line 119, in _connect_to_omc
    from omniORB import CORBA
  File "C:\OpenModelica1.9.1\lib\python\omniORB\__init__.py", line 254, in <modu
le>
    import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>>



Is a 64bit version of OMPython available?

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