Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf #137

Open
shrutivarade opened this issue Apr 3, 2023 · 1 comment

Comments

@shrutivarade
Copy link

shrutivarade commented Apr 3, 2023

Hello developers,

I am a student of CS666.org course at University of Massachusetts, Boston.

I tried importing Mahotas package on Google Colab and came across an error stating,
ModuleNotFoundError: No module named 'mahotas'.

So I installed mahotas using '!pip install mahotas' and then tried importing the package but the runtime error that encountered was,
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf.

The fix that I tried was to upgrade the numpy version and import again, but this doesn't seems to be a good fix rather this issue can be resolved by recompiling mahotas in colab environment by using '!pip install mahotas --no-binary :all:'. Then 'import mahotas as mh'.

Here is the google colab link with the mentioned issue,
https://colab.research.google.com/drive/1eJXja3svribxyM9YLIIbuXLRZ3CVbz4z#scrollTo=UtNoZrdd0043

I would like to ask mahotas developers that can we come up with a better solution for this issue?

@haehn
Copy link

haehn commented Apr 3, 2023

!pip install mahotas --no-binary :all: works but a pre-packaged mahotas would be much better. it used to work on colab before google updated numpy.

related to #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants