Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

pip installation is not compiling correctly #24

Closed anonimauss closed 2 years ago

anonimauss commented 2 years ago

Overview

I am facing an error with the pip installation of repast4py. Error log attached. Installed on arch linux, with the latest mpicxx provided by both the official version by openmpi and the recommended one provided by mpich. The error outpud is the same regardless.

repast4py._core compiles correctly but building repast4py._space crashes.

Details

mpicxx --version g++ (GCC) 12.1.0
python --version Python 3.10.4
pip --version pip 22.1

The error is generated while compiling SpatialTree.h

In file included from src/repast4py/SpatialTree.cpp:7:
      src/repast4py/SpatialTree.h: In member function ‘std::shared_ptr<repast4py::STNode<BoxType, PointType> > repast4py::ComponentNode<BoxType, PointType>::split()’:
      src/repast4py/SpatialTree.h:148:41: error: ‘numeric_limits’ is not a member of ‘std’

A detailed log is provided below

env CC=/opt/mpich/bin/mpicxx pip install repast4py mpicxx -dumpspecs

ncollier commented 2 years ago

I think this is probably due to some changes in gcc's std library include dependencies. @anonimauss, Can you try to pip install the updated distribution in the attached file. repast4py-1.0.4b1.tar.gz

pip install repast4py-1.0.4b1.tar.gz

anonimauss commented 2 years ago

Works as expected. Thanks!