You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A comment related to this post: I have problems with running repast4py with python 3.10.14 on Ubuntu 22.04 (kernel 6.5.0-45) with both the global approach installing mpich (sudo apt install ...) and using an anaconda (v.2.6.2) environment applying the default mpich-mpicxx (v.4.2.2). It catches an undefined symbol: MPI_Allgather error when running the Walker-example. Strangely, when first applying mpich only and next adding mpich-mpicxx works and run the Walker-example without the above error.
Setting up with python 3.9.19 and adding mpich-mpicxx (v.4.2.2) directly (installs mpich) and then installing repast4py worked fine. No errors running the Walker example in this setting.
As a newbe using repast4py I would like the installation instructions to cover protected environment installs like anaconda. I did not find any help on the error above, so this became a trial-and-error search.
Any way, thanks for your contributions, I am looking forward to exploring repast4py!
Thanks for the report. I think the issue here is that anaconda typically installs its own MPI when installing mpi4py via conda, and that leads to various library dependency and loading issues. I have some notes about how to avoid this when using anaconda. I'll try to integrate these into the install docs.
I could not get repast4py working with
mpich
andlibmpich-dev
installed only.See here: mpi4py/mpi4py#335 (comment) for more information.
I could build repast4py using pip though when having
libopenmpi-dev
andopenmpi-bin
installed.conda create -n repast python=3.10
conda activate repast
rm $(dirname $(which python))/../compiler_compat/ld
env CC=mpicxx pip install repast4py
worked.So the docs should maybe switch to openmpi instead? :)
Tested on
Linux 6.7.12
Debian 12
conda 24.5.0
The text was updated successfully, but these errors were encountered: