10000 Travis CI failure on master for Python 2.7 · Issue #12041 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Travis CI failure on master for Python 2.7 #12041

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

Closed
rth opened this issue Sep 8, 2018 · 1 comment
Closed

Travis CI failure on master for Python 2.7 #12041

rth opened this issue Sep 8, 2018 · 1 comment

Comments

@rth
Copy link
Member
rth commented Sep 8, 2018

Currently Travis CI fails on master for Python 2.7 with the following traceback,

$ bash build_tools/travis/test_script.sh
Python 2.7.6
numpy 1.8.2
scipy 0.13.3
48 CPUs

platform linux2 -- Python 2.7.6, pytest-3.8.0, py-1.6.0, pluggy-0.7.1
rootdir: /tmp/sklearn, inifile: setup.cfg
plugins: cov-2.6.0
collected 0 items / 1 errors                                                   
==================================== ERRORS ====================================
______________________________ ERROR collecting  _______________________________
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/py/_path/common.py:377: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/py/_path/common.py:419: in gen
    if p.check(dir=1) and (rec is None or rec(p))])
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/_pytest/main.py:561: in _recurse
    ihook = self.gethookproxy(path)
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/_pytest/main.py:416: in gethookproxy
    my_conftestmodules = pm._getconftestmodules(fspath)
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/_pytest/config/__init__.py:395: in _getconftestmodules
    mod = self._importconftest(conftestpath)
/home/travis/build/scikit-learn/scikit-learn/testvenv/local/lib/python2.7/site-packages/_pytest/config/__init__.py:431: in _importconftest
    raise ConftestImportFailure(conftestpath, sys.exc_info())
E   ConftestImportFailure: ModuleDeprecationWarning('The oldnumeric module will be dropped in Numpy 1.9',)
E     File "/home/travis/build/scikit-learn/scikit-learn/sklearn/__init__.py", line 64, in <module>
E       from .base import clone
E     File "/home/travis/build/scikit-learn/scikit-learn/sklearn/base.py", line 11, in <module>
E       from scipy import sparse
E     File "/usr/lib/python2.7/dist-packages/scipy/__init__.py", line 77, in <module>
E       from numpy import oldnumeric
E     File "/usr/lib/python2.7/dist-packages/numpy/oldnumeric/__init__.py", line 11, in <module>
E       warnings.warn(_msg, ModuleDeprecationWarning)

!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.30 seconds ============================

which doesn't make much sense, as it would mean that somehow it's using a system numpy/scipy instead of the one in the created virtualenv.

@rth
Copy link
Member Author
rth commented Sep 8, 2018

Since the virtualenv is created with virtualenv --system-site-packages the system numpy and scipy packages installed on the Travis CI Ubuntu image are used.

I don't think versions of numpy or scipy changed there, so this might be due to the pytest 3.8 release that modified how warning found during collection are handled.

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

1 participant
0