lightfm icon indicating copy to clipboard operation
lightfm copied to clipboard

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

Open hixtc opened this issue 4 years ago • 4 comments

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 https://github.com/lyst/lightfm/issues/193#issuecomment-597916346

hixtc avatar Mar 12 '20 02:03 hixtc

Try to install the lib without openmp: Set the property use_openmp in setup.py to False and install again. https://github.com/lyst/lightfm/blob/1f3f35d2813393eb269073150fdf762ff19f0b42/setup.py#L147

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

clappis avatar Apr 24 '20 21:04 clappis

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

psarin avatar Feb 28 '21 02:02 psarin

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

AndrewRPorter avatar Mar 12 '21 00:03 AndrewRPorter