Something seems to have changed in the stack as travis is now failing to build.
Following the guidance at travis, I went back to a build that had passed, and restarted it. Sure, enough that one now errors for the same reason.
So this is a "wait and see what happens" situation for the moment?
I think the culprit might be libgfortran-ng-7.3.0 as it is not fully downloading.
While looking into this I found that it appears we are not actually testing with Python 3.7.
This was not the case.
(for searchable error documentation purposes)
libgfortran-ng-7.3.0 | 1006 KB | ###########################8 | 75%
ReadError('file could not be opened successfully')
The command "conda env create --file="${ENV_FILE}"" failed and exited with 1 during .
Your build has been stopped.
ModuleNotFoundError: No module named 'sklearn'
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
export PREFIX=/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
export SRC_DIR=/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/test_tmp
import: 'pysal'
/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/pysal/lib/weights/util.py:19: UserWarning: geopandas not available. Some functionality will be disabled.
warn('geopandas not available. Some functionality will be disabled.')
Traceback (most recent call last):
File "/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/test_tmp/run_test.py", line 2, in <module>
import pysal
File "/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/pysal/__init__.py", line 3, in <module>
from . import explore
File "/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/pysal/explore/__init__.py", line 1, in <module>
from . import esda
File "/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/pysal/explore/esda/__init__.py", line 22, in <module>
from .lee import Spatial_Pearson, Local_Spatial_Pearson
File "/home/conda/feedstock_root/build_artifacts/pysal_1564424786612/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.7/site-packages/pysal/explore/esda/lee.py", line 3, in <module>
from sklearn.base import BaseEstimator
ModuleNotFoundError: No module named 'sklearn'
Tests failed for pysal-2.1.0-py_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
WARNING:conda_build.build:Tests failed for pysal-2.1.0-py_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
WARNING conda_build.build:tests_failed(2230): Tests failed for pysal-2.1.0-py_0.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
TESTS FAILED: pysal-2.1.0-py_0.tar.bz2
##[error]Bash exited with code '1'.
##[section]Finishing: Run docker build
seems to actually be from esda
?
pysal/explore/esda/lee.py", line 3
from sklearn.base import BaseEstimator
ModuleNotFoundError: No module named 'sklearn'
Would simply adding scikit-learn
to the esda.yml
solve this by propagating through to pysal-meta
or would something have to change within pysal-meta
itself?
Would simply adding
scikit-learn
to theesda.yml
solve this by propagating through topysal-meta
or would something have to change withinpysal-meta
itself?
I don't think so.
The issue seems to be something in travis changed as we have the same issue with libpysal:
we went from used to work to broken after a change to the readme.
And, libgfortran has a complete download, when the build works versus an incomplete dl when we have the broken build.
I'm wondering why we are not encountering this when building the recipe for pysal 2.1.0 on conda-forge, or maybe we have just not seen it, yet? @ocefpaf
I'm wondering why we are not encountering this when building the recipe for pysal 2.1.0 on conda-forge, or maybe we have just not seen it, yet? @ocefpaf
scikit-learn
was added as a pysal
dependency in https://github.com/pysal/pysal/pull/1109, so it should be explicit specified in the tests. I'll take a look here in a moment.
PS: the conda-forge
recipe does not fail b/c I regenerated it using the latest package metadata.
Also, not that Anaconda.org seems to be down at the moment. So your CIs may be unreliable until they fix it.