problems in loading the examples in pyfmi, pyjmi

2 posts / 0 new
Last post
Peugny
Offline
Joined: 2017-02-27
problems in loading the examples in pyfmi, pyjmi

Hello,

I compiled and installed the review 2.0 of JModelica.org in Ubuntu 12.04 32 bits. The installation looked fine, I did not manage to install matpotlib however so I commented out the import pylab lines in the files for fmi_bouncing_ball and cstr. Now the problem is that I get the fllowing message at, for example, from pyfmi.examples import fmi_bouncing_ball && fmi_bouncing_ball.run_demo():

/usr/local/jmodelica/Python/pyfmi/fmi_algorithm_drivers.py in <modules>()

    27    import pyfmi

-->28    import pyfmi.fmi as fmi 

    29    import pyfmi_extended as fmi_extended

AttributeError: 'module' object has no attribute 'fmi'

I looked the content in the folder TRUNK/PyFMI_install/lib/python2.7/site-packages/pyfmi

           common/

           debug.py

           debug.pyc

           examples/

           fmi_algorithm_drivers.py

           fmi_algorithm_drivers.pyc

   -->    fmi_extended.so

   -->    fmi.so

           __init__.py

          __init__.pyc

           LICENSE

          master.so

          simulation/

          version.txt

   I have no idea to go further.

   Frederic P.    

Peugny
Offline
Joined: 2017-02-27
problems in loading

I re compiled JModelica after having re installed Python-JCC and Matplotlib and the problems is solved

Frederic

Login or register to post comments