Skip to content

Commit 752dd6f

Browse files
committed
ci: Attempt 2 to fix travis failure
This commit is another attempt to fix the following error: [scikit-ci] Executing: python ../addons/travis/install_pyenv.py dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0 /var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/tmpkZ_cPw.sh: line 2: 2976 Abort trap: 6 python ../addons/travis/install_pyenv.py
1 parent 382cdd1 commit 752dd6f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ cache:
2727
directories:
2828
# Cache downloaded bottles
2929
- $HOME/Library/Caches/Homebrew
30-
# Cache python dependencies
31-
- /usr/local/opt/gettext
3230
# pyenv
3331
- $HOME/.pyenv_cache
3432
- $HOME/.pyenv/versions/3.7.8
@@ -38,8 +36,12 @@ cache:
3836

3937
before_install:
4038
- |
41-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
42-
test -d /usr/local/opt/gettext/lib || { rmdir /usr/local/opt/gettext; brew install gettext; }
39+
# Workaround the following error occuring because python installation is cached but gettext dependency is not
40+
# dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
41+
# Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python
42+
# Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0
43+
if [[ "$TRAVIS_OS_NAME" == "osx" && "${PYTHON_VERSION}" == "3.7.8" ]]; then
44+
brew install gettext
4345
fi
4446
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python; fi
4547
- python -m pip install --disable-pip-version-check --upgrade pip

0 commit comments

Comments
 (0)