undefined symbol: MPI_Aint_add

111 views
Skip to first unread message

Andrei Kulikovsky

unread,
Jan 4, 2023, 9:27:59 AM1/4/23
to mpi4py
Hello everyone,

All of a sudden I got an error from the code I have run many times:

from mpi4py import MPI
ImportError: /home/andrei/miniconda3/envs/Dbc_Nx_Lcab/lib/python3.10/site-packages/mpi4py/MPI.cpython-310-x86_64-linux-gnu.so: undefined symbol: MPI_Aint_add


I run this Python code under Ubuntu 22.10,  mpi4py 3.1.4 is installed. Attempt to reinstall it using pip does not help. I would appreciate any help.

Best,

Andrei 

Lisandro Dalcin

unread,
Jan 25, 2023, 8:36:59 AM1/25/23
to mpi4py
What's the output of the following command?

ldd /home/andrei/miniconda3/envs/Dbc_Nx_Lcab/lib/python3.10/site-packages/mpi4py/MPI.cpython-310-x86_64-linux-gnu.so

My guess is that you have some wrong entry in LD_LIBRARY_PATH, or perhaps your MPI package got updated, and you have to reinstall mpi4py:

pip cache remove mpi4py # to remove any previously built wheel file from pip's cache and force a rebuild next time
pip install --force mpi4py

Does that work?

Reply all
Reply to author
Forward
0 new messages