OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Generate a Functional Mockup Unit (FMU) embedding a Python interpreter

  • Thread starter Thread starter Michele Urbani
  • Start date Start date
M

Michele Urbani

Guest
I want to generate a FMU which embeds a Python script to process inputs and produce outputs. The most straightforward way that I found is to use libraries like unifmu or PythonFMU. However, these solutions require a Python interpreter to be available (with all the required packages) on the target OS, Ubuntu 20.04, where the FMU is executed. I do not have administrator privileges on the target OS, so I cannot install the Python interpreter that I want and eventually, all the packages that are required.

I wasn't able to find a solution where the Python libraries are embedded in the FMU. Based on the code of PythonFMU, my intuition is that the CMake recipes that generate the FMU should be modified, but I have no idea where to start from. Is someone aware of possible turnarounds to the problem?
<p>I want to generate a FMU which embeds a Python script to process inputs and produce outputs. The most straightforward way that I found is to use libraries like <a href="https://github.com/INTO-CPS-Association/unifmu" rel="nofollow noreferrer">unifmu</a> or <a href="https://github.com/NTNU-IHB/PythonFMU" rel="nofollow noreferrer">PythonFMU</a>. However, these solutions require a Python interpreter to be available (with all the required packages) on the target OS, Ubuntu 20.04, where the FMU is executed.
I do not have administrator privileges on the target OS, so I cannot install the Python interpreter that I want and eventually, all the packages that are required.</p>
<p>I wasn't able to find a solution where the Python libraries are embedded in the FMU. Based on the code of <a href="https://github.com/NTNU-IHB/PythonFMU" rel="nofollow noreferrer">PythonFMU</a>, my intuition is that the CMake recipes that generate the FMU should be modified, but I have no idea where to start from.
Is someone aware of possible turnarounds to the problem?</p>
 
Top