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

Import error OMPython

Import error OMPython

When I import OMPython, i find some errors, the error message is as follows

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
    import OMPython
  File "C:\Python27\lib\site-packages\OMPython\__init__.py", line 87, in <module>
    from omniORB import CORBA
  File "C:\OpenModelica1.9.0\lib\python\omniORB\__init__.py", line 254, in <module>
    import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32 application。

I need your help to solve this problem. Thank you!

Re: Import error OMPython

I have encountered the same error. It should be caused by Python, I guess.

I am running on Win7-64bit and Python 2.7.13.

There are 0 guests and 0 other users also viewing this topic