polylearn
polylearn copied to clipboard
No module polylearn.loss_fast
`In [1]: import polylearn
ImportError Traceback (most recent call last)
/Users/manas/projects/polylearn/polylearn/init.py in
/Users/manas/projects/polylearn/polylearn/factorization_machine.py in
/Users/manas/projects/polylearn/polylearn/base.py in
/Users/manas/projects/polylearn/polylearn/loss.py in
ImportError: No module named 'polylearn.loss_fast'`
Did you run python setup.py build
at the project root? Do you have Cython installed?
Actually I realized we're bundling the .cpp files so I don't think Cython is an install dependency. I updated the readme accordingly.
@msh-tf are you still having issues?
Hi @vene, I'm seeing the same issue. I'm attaching the stdout/stderr in a text file so you can see specifics of my install, in case that helps you debug.
I think the problem is you're trying to import polylearn from the source directory. This does not work. Try:
mkdir newdir; cd newdir; python -c "import polylearn"
In practice your scripts using polylearn should be in their own packages elsewhere on disk anyway. Let me know if this works.
Thank you @vene ; that resolves my issue!