Mendeley / mrec

A recommender systems development and evaluation package by Mendeley
Other
562 stars 174 forks source link

missing C source code: mrec/mf/model/warp_fast.c #7

Open jmao2013 opened 10 years ago

jmao2013 commented 10 years ago

Hi,

when i try to build mrec, i got this issue: no such file or directory: 'mrec/mf/model/warp_fast.c'

creating build/temp.macosx-10.8-intel-2.7/mrec/mf/model clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mrec/mf/model/warp_fast.c -o build/temp.macosx-10.8-intel-2.7/mrec/mf/model/warp_fast.o clang: error: no such file or directory: 'mrec/mf/model/warp_fast.c' clang: error: no input files error: command 'clang' failed with exit status 1

Thanks. jm

gamboviol commented 10 years ago

Build/install should work fine if you install the distribute package first:

sudo pip install distribute

I'll have a read about how to fix that automatically in future.

nikisix commented 9 years ago

That didn't do it for me gamboviol. I had to: cd mrec/mf/models cython warp_fast.pyx

my guess is that something in the Makefile isn't finding the warpfast.pyx and cythoning it quite right for people on Macs, probably somewhere in the following lines: CYTHONSRC= $(wildcard mrec//_.pyx)
CSRC= $(CYTHONSRC:.pyx=.cpp)

inplace: cython
$(PYTHON) setup.py build_ext -i

cython: $(CSRC)

clean:
rm -f mrec//.c mrec//.so mrec//.html mrec//.pyc

%.cpp: %.pyx
$(CYTHON) $<

ps. Thanks for awesome recommender package (and i love mendeley)!