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

Posts

Posts

Dec-10-13 23:52:38
OMPython install error missing OMPythonIDL
Category: Developer

The latest nightly build added the OMPythonIDL folders back into the install. 

The OMPython install itself now proceeds without error, however the OMPython plugin to the PySimulator still doesn't load.  See below:

C:\OpenModelica1.9.1Nightly\share\omc\scripts\PythonInterface>python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\OMPython
copying OMPython\omc_session.py -> build\lib\OMPython
copying OMPython\OMTypedParser.py -> build\lib\OMPython
copying OMPython\__init__.py -> build\lib\OMPython
creating build\lib\OMPython\OMParser
copying OMPython\OMParser\__init__.py -> build\lib\OMPython\OMParser
creating build\lib\OMPythonIDL
copying OMPythonIDL\omc_communication_idl.py -> build\lib\OMPythonIDL
copying OMPythonIDL\__init__.py -> build\lib\OMPythonIDL
creating build\lib\OMPythonIDL\_OMCIDL
copying OMPythonIDL\_OMCIDL\__init__.py -> build\lib\OMPythonIDL\_OMCIDL
creating build\lib\OMPythonIDL\_OMCIDL__POA
copying OMPythonIDL\_OMCIDL__POA\__init__.py -> build\lib\OMPythonIDL\_OMCIDL__POA
running install_lib
copying build\lib\OMPython\omc_session.py -> C:\Python27\Lib\site-packages\OMPython
copying build\lib\OMPython\__init__.py -> C:\Python27\Lib\site-packages\OMPython
copying build\lib\OMPythonIDL\omc_communication_idl.py -> C:\Python27\Lib\site-packages\OMPythonIDL
copying build\lib\OMPythonIDL\_OMCIDL\__init__.py -> C:\Python27\Lib\site-packages\OMPythonIDL\_OMCIDL
copying build\lib\OMPythonIDL\_OMCIDL__POA\__init__.py -> C:\Python27\Lib\site-packages\OMPythonIDL\_OMCIDL__POA
copying build\lib\OMPythonIDL\__init__.py -> C:\Python27\Lib\site-packages\OMPythonIDL
byte-compiling C:\Python27\Lib\site-packages\OMPython\omc_session.py to omc_session.pyc
byte-compiling C:\Python27\Lib\site-packages\OMPythonIDL\omc_communication_idl.py to omc_communication_idl.pyc
byte-compiling C:\Python27\Lib\site-packages\OMPythonIDL\_OMCIDL\__init__.py to __init__.pyc
byte-compiling C:\Python27\Lib\site-packages\OMPythonIDL\_OMCIDL__POA\__init__.py to __init__.pyc
byte-compiling C:\Python27\Lib\site-packages\OMPythonIDL\__init__.py to __init__.pyc
running install_egg_info
Removing C:\Python27\Lib\site-packages\OMPython-1.0-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\OMPython-1.0-py2.7.egg-info

C:\OpenModelica1.9.1Nightly\share\omc\scripts\PythonInterface\PySimulator>python PySimulator.py
Dymola plug-in loading
FMUSimulator plug-in loading
OpenModelica plug-in loading
OpenModelica plug-in could not be loaded. Error message: ''


Can anyone please help?

thanks,

James

Nov-28-13 18:38:52
OMPython install error missing OMPythonIDL
Category: Developer

Hello,

I am able to install and use OMPython in Python code.  Now I would like to install and use OMPython and PySimulator.  I have tried the following on both Linux and Windows from the 1.9.0 release with the same result:

>> python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\OMPython
copying OMPython\__init__.py -> build\lib\OMPython
creating build\lib\OMPython\OMParser
copying OMPython\OMParser\__init__.py -> build\lib\OMPython\OMParser
error: package directory 'OMPythonIDL' does not exist

>>python PySimulator.py
Dymola plug-in loading
FMUSimulator plug-in loading
OpenModelica plug-in loading
OpenModelica plug-in could not be loaded. Error message: ''

Any ideas or should I submit a bug report?

regards,

James

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