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

"No module named '_lightfm_fast_no_openmp'" on a Macbook pro-2017 #523

Open
hixtc opened this issue Mar 12, 2020 · 4 comments
Open

"No module named '_lightfm_fast_no_openmp'" on a Macbook pro-2017 #523

hixtc opened this issue Mar 12, 2020 · 4 comments

Comments

@hixtc
Copy link

hixtc commented Mar 12, 2020

How do you solve the following thing that has happened on a MacBook pro-2017 (the computer is with version 10.15.3 Mac OS Catalina):
When run a program in the 'lightfm' file, say 'lightfm_fast.py', the spyder (in Python 3.7.0) raises that: "No module named '_lightfm_fast_no_openmp'"?

So, What shall people do?

I appreciate someone who can help!
Originally posted by @hixtc in #193 (comment)

@hixtc hixtc changed the title What do you need to do if the same thing happens on a MacBook pro-2017? "No module named '_lightfm_fast_no_openmp'" on a Macbook pro-2017 Mar 12, 2020
@clappis
Copy link

clappis commented Apr 24, 2020

Try to install the lib without openmp:
Set the property use_openmp in setup.py to False and install again.

use_openmp = not sys.platform.startswith('darwin') and not sys.platform.startswith('win')

This could make the train process more slow, but should work

@psarin
Copy link

psarin commented Feb 28, 2021

Same issue here, both on MacOS M1 and on Ubuntu 20.04. Tried above recommendation without success.

@AndrewRPorter
Copy link

AndrewRPorter commented Mar 12, 2021

This seems related to the issues here: scikit-learn/scikit-learn#19137. The download seems to fail when installing the dependency on scipy.

@RILUCK
Copy link

RILUCK commented May 27, 2024

@AndrewRPorter Any solution around it?

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

5 participants