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

Build fails because of libgfortran missing at Travis hosts #836

Closed
rizar opened this issue Sep 17, 2015 · 7 comments
Closed

Build fails because of libgfortran missing at Travis hosts #836

rizar opened this issue Sep 17, 2015 · 7 comments

Comments

@rizar
Copy link
Contributor

rizar commented Sep 17, 2015

See e.g. https://travis-ci.org/mila-udem/blocks/jobs/80824056, error message is below. I will try to contact Travis support.

Message: trial mode expires in 30 days

Traceback (most recent call last):

  File "/home/travis/miniconda/bin/fuel-convert", line 9, in <module>

    load_entry_point('fuel==0.0.1', 'console_scripts', 'fuel-convert')()

  File "/home/travis/miniconda/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg/pkg_resources/__init__.py", line 558, in load_entry_point

  File "/home/travis/miniconda/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg/pkg_resources/__init__.py", line 2682, in load_entry_point

  File "/home/travis/miniconda/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg/pkg_resources/__init__.py", line 2355, in load

  File "/home/travis/miniconda/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg/pkg_resources/__init__.py", line 2361, in resolve

  File "/home/travis/miniconda/lib/python2.7/site-packages/fuel/bin/fuel_convert.py", line 11, in <module>

    from fuel import converters

  File "/home/travis/miniconda/lib/python2.7/site-packages/fuel/converters/__init__.py", line 15, in <module>

    from fuel.converters import caltech101_silhouettes

  File "/home/travis/miniconda/lib/python2.7/site-packages/fuel/converters/caltech101_silhouettes.py", line 4, in <module>

    from scipy.io import loadmat

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/io/__init__.py", line 85, in <module>

    from .matlab import loadmat, savemat, whosmat, byteordercodes

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/io/matlab/__init__.py", line 13, in <module>

    from .mio import loadmat, savemat, whosmat

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/io/matlab/mio.py", line 12, in <module>

    from .miobase import get_matfile_version, docfiller

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/io/matlab/miobase.py", line 22, in <module>

    from scipy.misc import doccer

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/misc/__init__.py", line 49, in <module>

    from scipy.special import comb, factorial, factorial2, factorialk

  File "/home/travis/miniconda/lib/python2.7/site-packages/scipy/special/__init__.py", line 601, in <module>

    from ._ufuncs import *

ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory
@dwf
Copy link
Contributor

dwf commented Sep 17, 2015 via email

@rizar
Copy link
Contributor Author

rizar commented Sep 17, 2015

Found an issue at Travis issue tracker: travis-ci/travis-ci#4816

@dwf , can I ask why this should never happen?

@bartvm
Copy link
Member

bartvm commented Sep 21, 2015

conda/conda#444

Looks like this was fixed in Conda 3 days ago? (See NumPy timestamps at https://repo.continuum.io/pkgs/free/linux-64/)

@vdumoulin
Copy link
Contributor

@bartvm we're still experiencing these issues in Fuel (see here) on a build that started 10 minutes ago.

@bartvm
Copy link
Member

bartvm commented Sep 21, 2015

So the error was caused by the NumPy Conda package not having libgfortran listed in its requirements. Looking at the package files (https://anaconda.org/anaconda/scipy/files?version=0.16.0&page=2) it seems that SciPy 0.15.1 is also missing it, but 0.16 seems to have it, so there's a good chance the error will disappear if you update Fuel's requirements files (it needs an update anyway: https://requires.io/github/mila-udem/fuel/requirements/?branch=master).

@bartvm
Copy link
Member

bartvm commented Sep 22, 2015

Actually, it seems that although np19py27_1 has it listed as a requirement, np19py27_p1 (the MKL version) doesn't. So upgrading to SciPy 0.16 alone isn't enough, you'd have to temporarily disable MKL as well :/

@bartvm
Copy link
Member

bartvm commented Sep 22, 2015

So sudo apt-get install gfortran doesn't work on Travis's container infrastructure, but try adding this to the .travis.yml file:

addons:
  apt:
    packages:
    - gfortran

orbeckst added a commit to MDAnalysis/GridDataFormats that referenced this issue Sep 23, 2015
See mila-iqia/blocks#836 : @bartvm suggests to disable MKL in numpy 1.9.2
because the MKL version is still missing the libgfortran.so.1 dependency.
orbeckst added a commit to MDAnalysis/GridDataFormats that referenced this issue Sep 23, 2015
- noted on  travis-ci/travis-ci#4816 and identified as a problem with conda
  packages numpy and scipy for Python 2.7 (see conda/conda#444)
- need to use numpy 1.9.2 without MKL
  - conda/conda#444 (which was only fixed for 1.5.1, 1.6.2, 1.7.1, 1.8.2, 1.9.2)
  - See mila-iqia/blocks#836 : @bartvm suggests to disable MKL in numpy 1.9.2
    because the MKL version is still missing the libgfortran.so.1 dependency.
- also updated scipy to 0.16.0
@rizar rizar closed this as completed Oct 1, 2015
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

4 participants