Villen-Lab / pyAscore

A python package for fast post translational modification localization, powered by Cython.
https://pyascore.readthedocs.io/
MIT License
18 stars 5 forks source link

Fix numpy binary incompatability #38

Open AnthonyOfSeattle opened 1 year ago

AnthonyOfSeattle commented 1 year ago

After install, an error or warning during import seems to occur for some installations:

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject

A quick poke around SO seems to indicate that this is an incompatibility stemming from which numpy version I used for compilation vs which one is installed for users. I imagine it can be fixed by raising the minimum numpy version.

AnthonyOfSeattle commented 1 year ago

If you run into this issue before I get a chance to fix it, the main problem stems from a difference in the numpy version used to compile the package and the numpy version installed in your local machine. The build system always defaults to the most recent numpy version for a given python release. So, to fix this error, I would upgrade your numpy version (at least to 1.22.0 for python >= 3.8).