The problem has been solved, but in case other users are facing the same puzzling error message about Type 3157 (Type not found or not linked correctly), the most probable causes are:
This is of course assuming that the setup was completed correctly, and that the “PythonInterfaceTester” program detects no other configuration problems. Type 3157 (Calling Python from TRNSYS with CFFI) is available on Zenodo: https://doi.org/10.5281/zenodo.6523078 Michaël Kummert Polytechnique Montréal From: Amirreza Heidari via TRNSYS-users <trnsys-users@lists.onebuilding.org> Hello, I have programmed a controller in Python and I need to link it to TRNSYS to control other components. Type 169 does not work at all. So I am trying to use type 163. But the problem is that when I import external libraries in my Python code, the type 163 does not update the py_outputs.dat anymore! How I can use a Python script that include external libraries in type 163? For example the following code works when the pandas and numpy libraries are not included, but with the two first lines it does not work anymore... I also tried to install the type 3157 that is new and apparently allows the use of external libraries, but when I run the example I get the following error. Anyway to do it? |