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

numpy.distutils can not find FFTW library installed by get-apt #9708

Closed
MarkWieczorek opened this issue Jun 5, 2018 · 1 comment
Closed
Labels

Comments

@MarkWieczorek
Copy link

My travis builds, which used to work, just started to fail because numpy.distutils is no longer able to find a package (FFTW) that is installed by get-apt. I was able to resolve the same problem for my OSX builds, because brew installs the FFTW library in /usr/local, and it was only necessary to set the environment variable FFTW=/usr/local. On my linux builds, I have tried setting this to /usr, /usr/lib, /usr/local/lib, /opt, $LD_LIBRARY_PATH and even $PATH, but with no luck.

The problem appears to be that the location of the FFTW library is not being added to the PATH, and that I have no idea where Travis is putting these file.

The full travis log is here: https://travis-ci.org/SHTOOLS/SHTOOLS/jobs/388239380

Below is the relevant part.

$ pip install --no-deps .
Processing /home/travis/build/SHTOOLS/SHTOOLS
    Complete output from command python setup.py egg_info:
    pandoc is not installed. PYPI description will not be formatted correctly.
    INSTALLING SHTOOLS 4.3.dev0+ec65611
    get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
    customize Gnu95FCompiler
    Found executable /usr/bin/gfortran
    get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
    customize Gnu95FCompiler
    searching SHTOOLS in: build/temp.linux-x86_64-3.6
    fftw_info:
    customize UnixCCompiler
      libraries fftw3 not found in ['/usr/lib', '/home/travis/miniconda/envs/test-environment/lib']
      fftw3 not found
    customize UnixCCompiler
      libraries rfftw,fftw not found in ['/usr/lib', '/home/travis/miniconda/envs/test-environment/lib']
      fftw2 not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-bvn7z0zn/setup.py", line 288, in <module>
        setup(**metadata)
      File "/home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/numpy/distutils/core.py", line 135, in setup
        config = configuration()
      File "/tmp/pip-req-build-bvn7z0zn/setup.py", line 243, in configuration
        fftw_info = get_info('fftw', notfound_action=2)
      File "/home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 432, in get_info
        return cl().get_info(notfound_action)
      File "/home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 630, in get_info
        raise self.notfounderror(self.notfounderror.__doc__)
    numpy.distutils.system_info.FFTWNotFoundError:
        FFTW (http://www.fftw.org/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [fftw]) or by setting
        the FFTW environment variable.
@stale
Copy link

stale bot commented Sep 3, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 24 hours. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

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

No branches or pull requests

1 participant