ContactEngineering / Adhesion

Cohesive zone models and intermolecular interactions for contact calculations
https://contactengineering.github.io/Adhesion/
MIT License
5 stars 2 forks source link

CI: libmuGrid.so not found #98

Closed sannant closed 9 months ago

sannant commented 9 months ago

Problem arizes when the muSpectre is pip installed with --no-binary option

(venv) runner@fv-az800-41:~/work/Adhesion/Adhesion$ python 
Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import muFFT 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/runner/work/Adhesion/Adhesion/venv/lib/python3.8/site-packages/muFFT/__init__.py", line 44, in <module>
    import _muGrid
ImportError: libmuGrid.so: cannot open shared object file: No such file or directory

prepending the path with

LD_LIBRARY_PATH=$PWD/venv/lib/python3.8/site-packages/:$PWD/venv/lib/python3.8/site-
packages/.muspectre.mesonpy.libs/ 

fixes the problem

It is probably a meson-python bug

sannant commented 9 months ago

I used https://github.com/lhotari/action-upterm for debugging inside the CI environment

sannant commented 9 months ago

Reason was a bug in new mesn-python version fixed with new muSpectre release using old meson-pyton