NTNU-IHB / PythonFMU

A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs
MIT License
136 stars 38 forks source link

pythonfmu-export problem in another system #192

Open levanthanh3005 opened 12 months ago

levanthanh3005 commented 12 months ago

Hi, After run build, I bring my fmu file to another system, and it does not work with the error: "Failed to load shared library /tmp/tmp9az2e0dh/binaries/linux64/PythonSlave.so. libpython3.9.so.1.0: cannot open shared object file: No such file or directory" I think I have not pack it in the pythonfmu-export, Do you have a full script from "pythonfmu build -f fmu-pythonslave.py" to the pythonfmu-export that pack the entire fmu inside the binary wrapper of C++. I can not find it in the folder pythonfmu-export or the script in github action, Regards, T

markaren commented 11 months ago

PythonFMU links with Python 3.9, so it expects to find it on the target system. This has been an issue on Linux from the start. https://github.com/NTNU-IHB/PythonFMU/pull/187 should fix the issue, so if you are able to build from source that should fix the issue.

markaren commented 11 months ago

Please re-export using PythonFMU 0.6.3 and see if the issue is resolved.