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

current TravisCI build failures (late May 2019) #1100

Closed
jGaboardi opened this issue May 25, 2019 · 3 comments
Closed

current TravisCI build failures (late May 2019) #1100

jGaboardi opened this issue May 25, 2019 · 3 comments

Comments

@jGaboardi
Copy link
Member

96 of the 97 current TravisCI build failures (beginning here) occur in spreg appear to happen at scipy.stats.pearsonr, which may be related to the recent scipy 1.2.1 to 1.3.0 (pysal/libpysal#122, pysal/libpysal#154).

File "/home/travis/build/pysal/pysal/pysal/model/spreg/diagnostics_tsls.py", line 217, in pr2_aspatial
    pr = pearsonr(y, predy)[0]
  File "/home/travis/build/pysal/pysal/miniconda/envs/test-env/lib/python3.6/site-packages/scipy/stats/stats.py", line 3410, in pearsonr
    xmean = x.mean(dtype=dtype)
  File "/home/travis/build/pysal/pysal/miniconda/envs/test-env/lib/python3.6/site-packages/numpy/core/_methods.py", line 75, in _mean
    ret = umr_sum(arr, axis, dtype, out, keepdims)
TypeError: No loop matching the specified signature and casting
was found for ufunc add

The remaining failure occurs in spvcm

======================================================================
ERROR: test_values (pysal.model.spvcm.tests.test_diagnostics.Test_Effective_Size)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/tests/test_diagnostics.py", line 98, in test_values
    single_size = effective_size(trace=self.single_trace, use_R = False, varnames='Tau2')
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/diagnostics.py", line 434, in effective_size
    stats = trace.map(_effective_size, use_R=use_R)
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/abstracts.py", line 405, in map
    stats = [func(datum, **func_args) for datum in data]
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/abstracts.py", line 405, in <listcomp>
    stats = [func(datum, **func_args) for datum in data]
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/diagnostics.py", line 459, in _effective_size
    spec = _spectrum0_ar(x)
  File "/home/travis/build/pysal/pysal/pysal/model/spvcm/diagnostics.py", line 379, in _spectrum0_ar
    raise ImportError('Statsmodels is required to use the AR(0) '
ImportError: Statsmodels is required to use the AR(0)  spectral density estimate of the variance.
@jGaboardi
Copy link
Member Author

@sjsrey @weikang9009

@sjsrey
Copy link
Member

sjsrey commented May 25, 2019

I think the failures for spreg and spvcm within the meta package are due to us bumping up to 3.6 and 3.7 and dropping 3.5 - this evidently bumps scipy from 1.2.1 to 1.3.0.

as standalones, spreg and spvcm integration tests are passing, but that is because they are using scipy 1.2.1. My bet is when they bump up to 1.3.0 we will see the errors that we are encountering here in the meta-package.

We should fix these upstream rather than here, I think.

@jGaboardi
Copy link
Member Author

pysal/spvcm#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants