DynamicsAndNeuralSystems / pycatch22

python implementation of catch22
https://time-series-features.gitbook.io/catch22/python
GNU General Public License v3.0
75 stars 15 forks source link

Failed building wheel for pycatch22 #2

Closed otevet closed 2 years ago

otevet commented 2 years ago

On Python 3.9.1, Mac OS Monterey, received the following error upon installing using PyPi: pip install pycatch22==0.4.1

src/C/CO_AutoCorr.c:18:10: fatal error: 'stats.h' file not found
#include "stats.h"
         ^~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
benfulcher commented 2 years ago

Yes, this is a known issue that many hours of trying hasn't been able to fix. Hopefully someone with more experience in python packages will fix the issue. It's been told where to look for the C header files in include_dirs, but it somehow still can't see them on compile (python3 -m build), no matter how I configure it.

The manual method works, though:

python3 setup.py build
python3 setup.py install
benfulcher commented 2 years ago

Ok this should be fixed in https://pypi.org/project/pycatch22/ ? Let me know if you still have a problem. Thanks go to @olivercliff

mohsinmahmood12 commented 2 years ago

Hi, benfulcher ! I am still facing problems while installing using pip in colab

benfulcher commented 2 years ago

Maybe see here: https://github.com/DynamicsAndNeuralSystems/pycatch22/issues/1 Updating setuptools has done the trick for quite a few people