Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL - ImportError: libmpi.so.40: cannot open shared object file: No such file or directory #328

Open
fmamitrotta opened this issue Apr 25, 2024 · 0 comments

Comments

@fmamitrotta
Copy link

Hi all, thanks for the great work on this open source repository!

I just want to flag that there could be something broken in the installation of openmpi.

I'm working on Windows Subsystem for Linux (WSL), using the following release:

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

I've created a new anaconda environment and installed funtofem following the indications on the repository homepage:

conda create -n F2F python=3.9
conda activate F2F
conda install -c conda-forge -c smdogroup funtofem

Then I've tried to run sphere_transfer.py and got the following error when trying to import mpi4py:

ImportError: libmpi.so.40: cannot open shared object file: No such file or directory

I managed to fix this by running the following command as indicated at this page:

conda install openmpi openmpi-mpicc openmpi-mpicxx openmpi-mpifort

Not sure whether this is specific to WSL, just wanted to flag it in case there might be something wrong in the dependecies of funtofem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant