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

0 Passed, 5 Failed using Python 3.5 #141

Closed
sbshah97 opened this issue Dec 24, 2016 · 2 comments
Closed

0 Passed, 5 Failed using Python 3.5 #141

sbshah97 opened this issue Dec 24, 2016 · 2 comments

Comments

@sbshah97
Copy link

Unable to test environment using Python 3.5

The error log is given by:

==================================================================== ERRORS ====================================================================
______________________________________________________ ERROR collecting tests/test_api.py ______________________________________________________
tests/test_api.py:7: in <module>
    from lightfm import LightFM
lightfm/__init__.py:1: in <module>
    from .lightfm import LightFM
lightfm/lightfm.py:7: in <module>
    from ._lightfm_fast import (CSRMatrix, FastLightFM,
lightfm/_lightfm_fast.py:12: in <module>
    from ._lightfm_fast_no_openmp import *  # NOQA
E   ImportError: No module named 'lightfm._lightfm_fast_no_openmp'
--------------------------------------------------------------- Captured stderr ----------------------------------------------------------------
/home/salman/Documents/Codes/TensorFlow/lightfm/lightfm/_lightfm_fast.py:9: UserWarning: LightFM was compiled without OpenMP support. Only a single thread will be used.
  warnings.warn('LightFM was compiled without OpenMP support. '
___________________________________________________ ERROR collecting tests/test_datasets.py ____________________________________________________
tests/test_datasets.py:7: in <module>
    from lightfm.datasets import fetch_movielens, fetch_stackexchange
lightfm/__init__.py:1: in <module>
    from .lightfm import LightFM
lightfm/lightfm.py:7: in <module>
    from ._lightfm_fast import (CSRMatrix, FastLightFM,
lightfm/_lightfm_fast.py:12: in <module>
    from ._lightfm_fast_no_openmp import *  # NOQA
E   ImportError: No module named 'lightfm._lightfm_fast_no_openmp'
--------------------------------------------------------------- Captured stderr ----------------------------------------------------------------
/home/salman/Documents/Codes/TensorFlow/lightfm/lightfm/_lightfm_fast.py:9: UserWarning: LightFM was compiled without OpenMP support. Only a single thread will be used.
  warnings.warn('LightFM was compiled without OpenMP support. '
__________________________________________________ ERROR collecting tests/test_evaluation.py ___________________________________________________
tests/test_evaluation.py:7: in <module>
    from lightfm import LightFM, evaluation
lightfm/__init__.py:1: in <module>
    from .lightfm import LightFM
lightfm/lightfm.py:7: in <module>
    from ._lightfm_fast import (CSRMatrix, FastLightFM,
lightfm/_lightfm_fast.py:12: in <module>
    from ._lightfm_fast_no_openmp import *  # NOQA
E   ImportError: No module named 'lightfm._lightfm_fast_no_openmp'
--------------------------------------------------------------- Captured stderr ----------------------------------------------------------------
/home/salman/Documents/Codes/TensorFlow/lightfm/lightfm/_lightfm_fast.py:9: UserWarning: LightFM was compiled without OpenMP support. Only a single thread will be used.
  warnings.warn('LightFM was compiled without OpenMP support. '
________________________________________________ ERROR collecting tests/test_fast_functions.py _________________________________________________
tests/test_fast_functions.py:6: in <module>
    from lightfm import _lightfm_fast
lightfm/__init__.py:1: in <module>
    from .lightfm import LightFM
lightfm/lightfm.py:7: in <module>
    from ._lightfm_fast import (CSRMatrix, FastLightFM,
lightfm/_lightfm_fast.py:12: in <module>
    from ._lightfm_fast_no_openmp import *  # NOQA
E   ImportError: No module named 'lightfm._lightfm_fast_no_openmp'
--------------------------------------------------------------- Captured stderr ----------------------------------------------------------------
/home/salman/Documents/Codes/TensorFlow/lightfm/lightfm/_lightfm_fast.py:9: UserWarning: LightFM was compiled without OpenMP support. Only a single thread will be used.
  warnings.warn('LightFM was compiled without OpenMP support. '
___________________________________________________ ERROR collecting tests/test_movielens.py ___________________________________________________
tests/test_movielens.py:12: in <module>
    from lightfm import LightFM
lightfm/__init__.py:1: in <module>
    from .lightfm import LightFM
lightfm/lightfm.py:7: in <module>
    from ._lightfm_fast import (CSRMatrix, FastLightFM,
lightfm/_lightfm_fast.py:12: in <module>
    from ._lightfm_fast_no_openmp import *  # NOQA
E   ImportError: No module named 'lightfm._lightfm_fast_no_openmp'
--------------------------------------------------------------- Captured stderr ----------------------------------------------------------------
/home/salman/Documents/Codes/TensorFlow/lightfm/lightfm/_lightfm_fast.py:9: UserWarning: LightFM was compiled without OpenMP support. Only a single thread will be used.
  warnings.warn('LightFM was compiled without OpenMP support. '
=========================================================== 5 error in 0.71 seconds ============================================================
@maciejkula
Copy link
Collaborator

This sort of error appears when you have cloned into LightFM, installed it into your virtualenv or site-packages, then try to run tests from a path that has the cloned code in its import path.

Try installing it from the cloned repo by running pip install -e .

@maciejkula
Copy link
Collaborator

Any luck?

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

2 participants