spaCy: Illegal instruction in lex_attrs
I’m not sure why, but on some machines I get this and on some machines I don’t. After loading spaCy, I get Illegal instruction. Using strace I saw this happens after opening the file lib/python3.5/site-packages/spacy/lang/__pycache__/lex_attrs.cpython-35.pyc, so I suppose it’s due to some code in there.
The following code already causes this:
import spacy
spacy.load("en")
Info about spaCy
- Platform: Linux-4.8.4-aufs-1-x86_64-with-debian-stretch-sid
- Models: fr_core_news_md, fr, en, de, en_core_web_md, en_core_web_sm, de_core_news_sm, en_core_web_lg
- Python version: 3.5.2+
- spaCy version: 2.0.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (3 by maintainers)
Just got a response from the Spacy team (@honnibal). The compiler flag that’s causing the issue will be removed in the next version (to be released in approx. 2 weeks). One could also compile from source without the flag and have the issue fixed before that.
Seems to be fixed by
On a virtualenv specific to the machine I’m running on. Looks like build outputs were cached on network filesystem from another machine.
Nice to know I’m not the only one this happens to 😃