pyFMI Modelica:FMU不包含此平台的二进制文件

时间:2018-07-10 12:31:33

标签: python modelica dymola jmodelica

我正在尝试使用pyFMI软件包在Python中运行简单的教程示例,但出现错误FMU不包含此平台的二进制文件。试图为FMULibrary设置环境变量,但错误仍然存​​在。

任何提示,我将不胜感激。

runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')
Could not find RADAR5
Could not find GLIMDA
Traceback (most recent call last):

   File "<ipython-input-1-b6c744d814b8>", line 1, in <module>
runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')

   File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

   File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

   File "C:/Users/NiPap/.spyder-py3/temp.py", line 9, in <module>
fmi_bouncing_ball.run_demo()

  File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\pyfmi\examples\fmi_bouncing_ball.py", line 32, in run_demo
model = load_fmu(fmu_name)

 File "src\pyfmi\fmi.pyx", line 7157, in pyfmi.fmi.load_fmu (src\pyfmi\fmi.c:82903)

 File "src\pyfmi\fmi.pyx", line 2666, in pyfmi.fmi.FMUModelME1.__init__ (src\pyfmi\fmi.c:33458)

 File "src\pyfmi\fmi.pyx", line 943, in pyfmi.fmi.FMUModelBase.__init__ (src\pyfmi\fmi.c:14153)

FMUException: The FMU contains no binary for this platform.

1 个答案:

答案 0 :(得分:2)

示例FMU中没有用于最新版本的PyFMI的64位dll。但是,在以后的版本中将会有。 没有64位dll,就无法在64位环境中模拟FMU。