This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: scipy (0.16.0) install fails on 3.5
Type: Stage: resolved
Components: Installation Versions: Python 3.5
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, ntogar, willingc
Priority: normal Keywords:

Created on 2015-09-13 15:48 by ntogar, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (6)
msg250573 - (view) Author: Naveen Togar (ntogar) Date: 2015-09-13 15:48
SciPy install using pip fails with the following error:

Running from scipy source directory.
    /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/distutils/system_info.py:594: UserWarning: Specified path /usr/local/include/python3.5m is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/distutils/system_info.py:594: UserWarning: Specified path /usr/include/python3.5m is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    "object of type 'type' has no len()" in evaluating 'len(list)' (available names: [])
    error: library dfftpack has Fortran sources but no Fortran compiler found

    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/jg/dd63x6c54t9g3qcr2c1xk9680000gn/T/pip-build-kb3aqu9u/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jg/dd63x6c54t9g3qcr2c1xk9680000gn/T/pip-dljex650-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/jg/dd63x6c54t9g3qcr2c1xk9680000gn/T/pip-build-kb3aqu9u/scipy

I didn't have any issues on Python 3.4.  I am on OS X Yosemite.
msg250575 - (view) Author: Carol Willing (willingc) * (Python committer) Date: 2015-09-13 17:00
I am unable to pip install scipy, numpy, or pandas using 3.5.0 on OS X 10.10.4.

After installing Python 3.5 using the installer downloaded from Python.org page, I created a virtualenv using `pyvenv myscipy` and activated with `source myscipy\bin\activate`. `python -V` returns 3.5.0.

`pip install scipy` succeeds in `Collecting scipy` and downloading 100% of file. It hangs after that indication for 1m 21s with no warnings or errors. Cancelled the operation. I tried with scipy, numpy, pandas with no success. I also tried `python -m pip install scipy==0.16` and it also stalled with no warning or errors.

`pip search` and `pip install flask` worked fine in the 3.5 virtualenv.
msg250576 - (view) Author: Naveen Togar (ntogar) Date: 2015-09-13 17:12
I didn't have any issues with either numpy or pandas.  I just tried installing matplotlib and that failed too.
msg250582 - (view) Author: Carol Willing (willingc) * (Python committer) Date: 2015-09-13 18:32
Naveen, I was able to resolve this problem for installation by installing gfortran using the instructions here: http://hpc.sourceforge.net/


After gfortran is successfully installed, I was able to ``pip install scipy -v`` the libraries that depend on gfortran. It did take 8m 39s to execute the install of scipy which is why I used the -v (verbose) option so that I could see that it was still working.

It would be good for numpy and scipy to indicate more clearly the absence or inability to find gfortran with a more obvious error message.

My recommendation is to close this issue if you are able to successfully install.
msg250585 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015-09-13 20:32
For 3.4 and 2.7, the SciPy and matplotlib projects supply pre-compiled wheels for their distributions.  As of this moment, they haven't yet updated their PyPI entries with 3.5 wheels (.whl files).  Until they do, pip would fall back to trying to build them from source, which as Carol points out, will likely require installing additional non-Apple build tools, like gfortran.  Suggest you check on the mailing lists or other support forums for the SciPy and matplotlib projects to see when each expects to have OS X wheels available for 3.5. I'd guess it won't be long since both are popular downloads.
msg250636 - (view) Author: Naveen Togar (ntogar) Date: 2015-09-14 06:39
Carol, Ned

Thanks for the info.  I'm going to install gfortran and proceed with the installing scipy and matplotlib.

Naveen
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69275
2015-09-14 06:39:17ntogarsetmessages: + msg250636
2015-09-13 20:32:20ned.deilysetstatus: open -> closed

type: compile error ->

nosy: + ned.deily
messages: + msg250585
resolution: third party
stage: test needed -> resolved
2015-09-13 18:32:16willingcsetpriority: high -> normal

messages: + msg250582
stage: needs patch -> test needed
2015-09-13 17:12:41ntogarsetmessages: + msg250576
2015-09-13 17:00:27willingcsetpriority: normal -> high

nosy: + willingc
messages: + msg250575

stage: needs patch
2015-09-13 15:48:22ntogarcreate