- 
                Notifications
    You must be signed in to change notification settings 
- Fork 42
Description
I installed pythonfmu from PyPI via pip3 install --user python3fmu. However, when I tried to use the generated FMU OMEdit crashed. After some investigations I found out that the binaries provided on PyPI are only compatible with Python 3.9 (as far as I understand). According to the documentation pythonfmu should work with any python3 distribution, if I don't understand it wrong.
Why only python 3.9?
I downloaded pythonfmu-0.6.2-py3-none-any.whl from here, unpacked it and ran ldd on libpythonfmu-export.so:
/pythonfmu-0.6.2/pythonfmu/resources/binaries/linux64# ldd libpythonfmu-export.so 
	linux-vdso.so.1 (0x00007ffdb51e8000)
	libpython3.9.so.1.0 => not found
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0b76d8e000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0b76d73000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0b76b81000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0b76a32000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f0b771aa000)
Further details
I assume that this is due to the way how the binaries of pythonfmu are generated in this action.
I'm not sure whether this is something that one can change easily. Distributing binaries for all python platforms is probably out of scope.
I finally fixed this issue by cloning this repository, building the binaries myself via cmake & make in pythonfmu/pythonfmu-export and installing pythonfmu via setup.py.