-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
import gensim segmentation fault (macOS Big Sur, Apple M1/Apple Silicon/ARM) #3036
Comments
It'd be good to know what exactly is causing the segfault. Can you run the same code via gdb and show the output?
should probably do it. |
Sorry, I am not familiar with gdb and I can't install it. Output of
Output of
lldb (lldb-1200.0.44.2) is installed but I don't know how use it in a python virtualenv. |
I think it's related to this issue trouble installing on apple silicon M1 #13409 of scipy. If I run My temporary workaround: I can use gensim in an emulated x86_64 environment. arch -x86_64 /bin/bash
cd ~/Library/python_enviroments
virtualenv -p /usr/bin/python3 my_x86_64_env
source ~/Library/python_enviroments/my_x86_64_env/bin/activate
pip cache purge
pip install --upgrade pip
pip install gensim |
May be worth asking the scipy guys about this. If the problem is inside scipy, it's unlikely that gensim can do anything about it. |
The suggestion in #3226, that a MacOS installation using |
Also, please try with a recent version of Gensim (4.x). The old Gensim 3.8.3 is no longer supported. |
I have a M1 MBP now! @mpenkov @gojomo this means I'm able to test the next release there. Or help with wheel building on that platform, if necessary. FWIW,
This is on OSX Monterey 12.2.1 (not Big Sur like the OP), and built-in |
Cannot reproduce, closing. If this still happens with the latest version of Gensim & scipy, please reopen. |
Problem description
I want to use gensim on a new Apple M1 machine but I can't import gensim because of a segmentation fault.
Steps/code/corpus to reproduce
Now I am running a python shell and run this import command:
Output:
Note:
import numpy
andimport scipy
are working.Versions
The text was updated successfully, but these errors were encountered: