PythonFMU icon indicating copy to clipboard operation
PythonFMU copied to clipboard

pythonfmu-export problem in another system

Open levanthanh3005 opened this issue 2 years ago • 2 comments

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

levanthanh3005 avatar Nov 26 '23 22:11 levanthanh3005

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 avatar Dec 01 '23 16:12 markaren

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

markaren avatar Dec 06 '23 09:12 markaren