Comments (4)
Have you built the extension? Can you try running it from a different
directory?
On 15 Jul 2016 16:30, "Sean M. Law, Ph.D." [email protected] wrote:
Following the issue #101 #101, I
tried running the test as per the Docs:docker-compose run lightfm py.test -x tests/
And then I ran it from the Docker shell (see below). In both cases, the
test fails to find lightfm_fastroot@002ca3eaa9c1:/home/lightfm# py.test -x tests/
================================================== test session starts ==================================================
platform linux2 -- Python 2.7.9, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/lightfm, inifile:
collecting 0 items / 1 errors
======================================================== ERRORS =========================================================
__________________________________________ ERROR collecting tests/test_api.py ___________________________________________
tests/test_api.py:7: in
from lightfm import LightFM
lightfm/init.py:1: in
from .lightfm import LightFM
lightfm/lightfm.py:9: in
from .lightfm_fast import (CSRMatrix, FastLightFM,
E ImportError: No module named lightfm_fast
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================ 1 error in 0.30 seconds ================================================—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#103, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACSCA-6VZbMegYU0Yr4YZLJwcmv2TV7Zks5qV5logaJpZM4JNc_-
.
from lightfm.
No, I had not built the extension and noticed that Cython is not in the Dockerfile as well.
Then, I did the following:
pip uninstall lightfm
cd /home/lightfm
apt-get install -y cython
python setup.py cythonize
ls lightfm
This shows that the extension is present (the lightfm_fast.pyx file). And then I install lightfm and ran the test again:
pip install .
py.test -x tests/
This results in the same error as my original post. As per the document:
If you’d like to use the multi-threading capabilities of LightFM on these platforms, you should try using it via Docker as described in the next secion.
My goal is to be able to get multi-threading working on my Macbook Pro via Docker.
from lightfm.
Off the top of my head:
- Cython does not need to be in the container.
- You do not need to run cythonize.
- When the container is built lightfm is already installed.
- When you run tests they fail because pytest picks up the source code
from the directory you are running the tests in instead of the installed
package. You must move the tests somewhere else or run them or run pip
install -e .
On 16 Jul 2016 12:59 pm, "Sean M. Law, Ph.D." [email protected]
wrote:
No, I had not built the extension and noticed that Cython is not in the
Dockerfile as well.Then, I did the following:
pip uninstall lightfm
cd /home/lightfm
apt-get install -y cython
python setup.py cythonize
ls lightfmThis shows that the extension is present (the lightfm_fast.pyx file). And
then I install lightfm and ran the test again:pip install .
py.test -x tests/This results in the same error as my original post.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#103 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACSCA8k-w2u3XdZjP3d4HJLnAEj5AlT9ks5qWLl-gaJpZM4JNc_-
.
from lightfm.
I just verified that after adding the libblas fixes lightfm is correctly
installed in the docker container.
You can check this by deleting the lightfm folder from the mounted
repository folder. This will prevent python from picking up the local files
(which do not have the extension built) in the import process, and tests
will complete.
On 16 Jul 2016 1:13 pm, "Maciej Kula" [email protected] wrote:
Off the top of my head:
- Cython does not need to be in the container.
- You do not need to run cythonize.
- When the container is built lightfm is already installed.
- When you run tests they fail because pytest picks up the source code
from the directory you are running the tests in instead of the installed
package. You must move the tests somewhere else or run them or run pip
install -e .On 16 Jul 2016 12:59 pm, "Sean M. Law, Ph.D." [email protected]
wrote:No, I had not built the extension and noticed that Cython is not in the
Dockerfile as well.Then, I did the following:
pip uninstall lightfm
cd /home/lightfm
apt-get install -y cython
python setup.py cythonize
ls lightfmThis shows that the extension is present (the lightfm_fast.pyx file). And
then I install lightfm and ran the test again:pip install .
py.test -x tests/This results in the same error as my original post.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#103 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACSCA8k-w2u3XdZjP3d4HJLnAEj5AlT9ks5qWLl-gaJpZM4JNc_-
.
from lightfm.
Related Issues (20)
- Light FM throwing an installation error: AttributeError: 'dict' object has no attribute '__LIGHTFM_SETUP__' HOT 3
- Recommendation for users the new items in the dataset HOT 1
- Features importance in lightFM
- Lightfm 1.17 - kernel dies in Jupyter, Spyder when fitting HOT 3
- How to reproduce the evaluation score in the paper.
- Recommender System with RFM ratings to put into Interaction matrix HOT 9
- Feature Request: Support for Freezing Item Embeddings while Updating User Embeddings During Training
- Incorporating item and user biases in LightFM embeddings for accurate recommendations in Vespa HOT 1
- Item and User Normalization
- Is there a way to save Dataset()? HOT 1
- How to get clusters of users from trained lightfm model on implicit rating model?
- Evaluate AUC on a subset of items
- Auc evalutation return always nan
- Can't install on Python 3.10.6 in Ubuntu HOT 1
- Implementing Incremental Training and Feedback loop using Lightfm
- LightFM kills Jupyter Kernel when fitting model
- Does calculating precision@k for one user makes sense? HOT 1
- Creating recommendations for single users without leveraging user identity features
- Can't install on Python 3.12 HOT 6
- Can't seem to install with with poetry HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightfm.