popgenmethods / smcpp

SMC++ infers population history from whole-genome sequence data.
GNU General Public License v3.0
149 stars 32 forks source link

Build failed in Python 3.11 #240

Closed tcztzy closed 9 months ago

tcztzy commented 1 year ago

When I follow the README pip install git+https://github.com/popgenmethods/smcpp, it throw out error following.

smcpp/_smcpp.cpp:196:27: fatal error: longintrepr.h: No such file or directory
   #include "longintrepr.h"
                           ^
compilation terminated.

The following URLs may explain the cause.

https://github.com/aio-libs/aiohttp/issues/6600 https://github.com/cython/cython/pull/4428

terhorst commented 9 months ago

Thanks for reporting. I'm able to build SMC++ on Python 3.11 on my machine now, so I assume Cython fixed this bug upstream.

aguilar-gomez commented 6 months ago

I am getting this error in Python 3.12.0

mufernando commented 1 month ago

I am also getting this error on Python 3.12.3

r-poloni commented 1 week ago

I am trying to build in a computing cluster, so I created a conda environment with all the packages listed (python, gmp, etc.) and then ran python setup.py install and is throwing the same error. With pip it didn't work either. Do you have any solution to install it on a computing cluster?