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

Getting zsh: illegal hardware instruction on MacBook M1 #372

Closed
schittarath3 opened this issue Jun 23, 2021 · 4 comments
Closed

Getting zsh: illegal hardware instruction on MacBook M1 #372

schittarath3 opened this issue Jun 23, 2021 · 4 comments

Comments

@schittarath3
Copy link

I am attempting to run the EntityLinking example, but importing the module
from scispacy.linking import EntityLinker
results in
zsh: illegal hardware instruction /Users/username/opt/anaconda3/envs/HCNLP/bin/python.
I am able to run the first example to get the text entities fine.

OS: MacOS 11.4 on M1 MBP
Python: 3.7.10
conda: 4.10.1
scispacy: 0.4.0
spacy: 3.0.6

@dakinggg
Copy link
Collaborator

This is probably related to the nmslib package. Can you check if you are able to install and use that package? Looks like the same issue as #365

@schittarath3
Copy link
Author

This is probably related to the nmslib package. Can you check if you are able to install and use that package? Looks like the same issue as #365

Thanks! For future reference, I uninstall nmslib then built from source using pip install --no-binary :all: nmslib

@jpetot
Copy link

jpetot commented Jun 7, 2022

this solved for me on MacOs M1 Monterey : CFLAGS="-mavx -DWARN(a)=(a)" pip install nmslib

nmslib/nmslib#476 (comment)

@aditya-kanekar
Copy link

Thanks @jpetot this worked for me.

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

4 participants