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

travis CI build error [numpy] #180

Closed
Tych0n opened this issue Jan 15, 2019 · 2 comments
Closed

travis CI build error [numpy] #180

Tych0n opened this issue Jan 15, 2019 · 2 comments

Comments

@Tych0n
Copy link
Contributor

Tych0n commented Jan 15, 2019

in Pull request #179,

travis build failed for linux (3/3) and OSX (1/2) because of numpy import error.
travis log #5.3

// from line 662
copying build/lib.linux-x86_64-3.6/implicit/evaluation.cpython-36m-x86_64-linux-gnu.so -> implicit
Traceback (most recent call last):
  File "setup.py", line 163, in <module>
...
// from line 698
  File "/home/travis/build/Tych0n/implicit/implicit/als.py", line 8, in <module>
    import numpy as np
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/numpy/core/__init__.py", line 57, in <module>
    from . import numerictypes as nt
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/numpy/core/numerictypes.py", line 111, in <module>
    from ._type_aliases import (
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/numpy/core/_type_aliases.py", line 63, in <module>
    _concrete_types = {v.type for k, v in _concrete_typeinfo.items()}
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/numpy/core/_type_aliases.py", line 63, in <setcomp>
    _concrete_types = {v.type for k, v in _concrete_typeinfo.items()}
AttributeError: 'tuple' object has no attribute 'type'

last successful travis build log #333.3 goes like

// from line 690
copying build/lib.linux-x86_64-3.6/implicit/evaluation.cpython-36m-x86_64-linux-gnu.so -> implicit
test_dtype (tests.approximate_als_test.AnnoyALSTest) ... WARNING:root:OpenBLAS detected. Its highly recommend to set the environment variable 'export OPENBLAS_NUM_THREADS=1' to disable its internal multithreading
ok
test_evaluation (tests.approximate_als_test.AnnoyALSTest) ... ok

thanks

@Tych0n
Copy link
Contributor Author

Tych0n commented Mar 28, 2019

Fixed in 3efb9aa. Travis VM launches with preinstalled numpy, and when implicit is gitcheckedout and installed, Travis installs one more numpy and crashes while trying to import them both (https://travis-ci.org/Tych0n/implicit/jobs/512711668#L695). Solution is to delete Travis numpy before any implicit installation.

@ita9naiwa
Copy link
Collaborator

Thanks! I fixed the problem.
is it Okay to do it like this anyway? #213

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