OpenWaterAnalytics / EPyT

EPyT: An EPANET-Python Toolkit for Smart Water Network Simulations
https://epanet-python-toolkit-epyt.readthedocs.io
European Union Public License 1.2
39 stars 26 forks source link

EPANET-MSX cannot be loaded on Linux #37

Closed andreArtelt closed 6 months ago

andreArtelt commented 7 months ago

When I try to load a .msx file on Linux, I run into several issues:

  1. Path to epanetmsx.so is wrong -- it is the same Windows path for all platforms: msx

  2. When I fix this, I get an error that libepanet.so can not be loaded. It seems that epanetmsx.so was linked against libepanet.so which is not shipped (only libepanet2_2.so is included in EPyT): missing

Mariosmsk commented 6 months ago

Hi @andreArtelt,

Please execute the following command (in folder glnx):

sudo cp libepanet2.so /lib/x86_64-linux-gnu/libepanet.so

Version: epyt==1.0.9b4

The test files look fine here: https://github.com/OpenWaterAnalytics/EPyT/actions/runs/8712186456

andreArtelt commented 6 months ago

Still not working on my machine :/ Now, I get an error that GLIBC is not found: ./epanetmsx.so: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by ./epanetmsx.so)

I think, it would be better to ship the source code and compile it on the machine instead of shipping pre-compiled binaries. This way, one could better deal with different machine configurations and versions.

Furthermore, running a command as sudo should not be required since some users might not have sudo permission on their machine.

andreArtelt commented 6 months ago

Seems to be solved with the latest version.