image-match icon indicating copy to clipboard operation
image-match copied to clipboard

Problem with TravisCI build

Open rhsimplex opened this issue 7 years ago • 3 comments

Something is wrong with scikit-image and travis

Adding elasticsearch 5.3.0 to easy-install.pth file
Installed /home/travis/miniconda/envs/test-environment/lib/python3.5/site-packages/elasticsearch-5.3.0-py3.5.egg
Searching for scikit-image<0.13,>=0.12
Reading https://pypi.python.org/simple/scikit-image/
Downloading https://pypi.python.org/packages/86/d0/b0192dc9a544da90f2d9150bcd84b981c6873e42a1f752b6affb89180ad8/scikit-image-0.12.3.tar.gz#md5=04ea833383e0b6ad5f65da21292c25e1
Best match: scikit-image 0.12.3
Processing scikit-image-0.12.3.tar.gz
Writing /tmp/easy_install-ids2h2tl/scikit-image-0.12.3/setup.cfg
Running scikit-image-0.12.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ids2h2tl/scikit-image-0.12.3/egg-dist-tmp-mqepoz_1
error: SandboxViolation: mkdir('/home/travis/.config', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
The command "python setup.py install" failed and exited with 1 during .
Your build has been stopped.

rhsimplex avatar Apr 18 '17 07:04 rhsimplex

@rhsimplex I needed to build scikit on Travis as well, and did so by using the following as my install step in .travis.yml:

install:
  - pip install --upgrade pip setuptools wheel
  - pip install --only-binary=numpy,scipy numpy scipy
  - pip install -r requirements.txt

Did you try the only-binary installation for scipy + numpy?

duhaime avatar Jun 13 '18 11:06 duhaime

Thanks for the tip, I will look into it if I have time. It actually appears to be working now, aside from a failed equals: https://travis-ci.org/ascribe/image-match

rhsimplex avatar Jun 13 '18 11:06 rhsimplex

Amen! Maybe things have since changed on the Travis side to make scikit easier to install. Either way, thanks for this awesome work!

duhaime avatar Jun 13 '18 12:06 duhaime