numpy1.6.1 install fortran compiler error
Hi, In order to install scipy, I am trying to install numpy 1.6.1. on GNU/linux redhat 2.6.18. But, I got error about fortran compiler. I have gfortran. I do not have f77/f90/g77/g90. I run :python setup.py build --fcompiler=gfortran It woks well and tells me that customize Gnu95FCompilerFound executable /usr/bin/gfortran But, i run: building library "npymath" sourcescustomize GnuFCompilerCould not locate executable g77Could not locate executable f77customize IntelFCompilerCould not locate executable ifortCould not locate executable ifccustomize LaheyFCompilerCould not locate executable lf95customize PGroupFCompilerCould not locate executable pgf90Could not locate executable pgf77customize AbsoftFCompilerCould not locate executable f90customize NAGFCompilerFound executable /usr/bin/f95customize Gnu95FCompilercustomize Gnu95FCompiler using configC compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC Do I have to install f77/f90/g77/g90 ? thanks
Hi Jack,
In order to install scipy, I am trying to install numpy 1.6.1. on GNU/linux redhat 2.6.18.
But, I got error about fortran compiler.
I have gfortran. I do not have f77/f90/g77/g90.
that's good!
I run : python setup.py build --fcompiler=gfortran
It woks well and tells me that
customize Gnu95FCompiler Found executable /usr/bin/gfortran
But, i run:
building library "npymath" sources customize GnuFCompiler Could not locate executable g77 Could not locate executable f77 customize IntelFCompiler Could not locate executable ifort Could not locate executable ifc customize LaheyFCompiler Could not locate executable lf95 customize PGroupFCompiler Could not locate executable pgf90 Could not locate executable pgf77 customize AbsoftFCompiler Could not locate executable f90 customize NAGFCompiler Found executable /usr/bin/f95 customize Gnu95FCompiler customize Gnu95FCompiler using config C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
Do I have to install f77/f90/g77/g90 ?
You did not send any actual error message here, so it's difficult to tell where exactly your install failed. But gfortran is preferred over f77 etc. and should in fact be automatically selected (without the '--fcompiler=gfortran'), it is apparently also found in the right place. Could you send us the last lines of output with the error itself, or possibly everything following a line starting with "Traceback:.." ; and also the output of `gfortran -v`? Cheers, Derek
Hi,I run : python setup.py build and got: building library "npymath" sourcescustomize GnuFCompilerCould not locate executable g77Could not locate executable f77customize IntelFCompilerCould not locate executable ifortCould not locate executable ifccustomize LaheyFCompilerCould not locate executable lf95customize PGroupFCompilerCould not locate executable pgf90Could not locate executable pgf77customize AbsoftFCompilerCould not locate executable f90customize NAGFCompilerFound executable /usr/bin/f95customize VastFCompilercustomize CompaqFCompilerCould not locate executable fortcustomize IntelItaniumFCompilerCould not locate executable efortCould not locate executable efccustomize IntelEM64TFCompilercustomize Gnu95FCompilerFound executable /usr/bin/gfortrancustomize Gnu95FCompilercustomize Gnu95FCompiler using configC compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC......... building extension "numpy.random.mtrand" sourcesC compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/python272/include/python2.7 -c'gcc: _configtest.cgcc -pthread _configtest.o -o _configtest_configtestfailure. then : python setup.py install --prefix=/mypath/numpy I got: Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'F2PY Version 2blas_opt_info:blas_mkl_info: libraries mkl,vml,guide not found in /mypath/python272/lib libraries mkl,vml,guide not found in /usr/local/lib64 libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib64 libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE atlas_blas_threads_info:Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in / mypath/python272/lib libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib64 libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib64/sse2 libraries ptf77blas,ptcblas,atlas not found in /usr/lib64 libraries ptf77blas,ptcblas,atlas not found in /usr/lib/sse2 libraries ptf77blas,ptcblas,atlas not found in /usr/lib NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in /mypath/python272/lib libraries f77blas,cblas,atlas not found in /usr/local/lib64 libraries f77blas,cblas,atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib64/sse2 libraries f77blas,cblas,atlas not found in /usr/lib64 libraries f77blas,cblas,atlas not found in /usr/lib/sse2 libraries f77blas,cblas,atlas not found in /usr/lib NOT AVAILABLE UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. warnings.warn(LapackNotFoundError.__doc__)lapack_src_info: NOT AVAILABLE Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. warnings.warn(LapackSrcNotFoundError.__doc__) NOT AVAILABLE running installrunning buildrunning config_ccunifing config_cc, config, build_clib, build_ext, build commands --compiler optionsrunning config_fcunifing config_fc, config, build_clib, build_ext, build commands --fcompiler optionsrunning build_srcbuild_srcbuilding py_modules sourcesbuilding library "npymath" sourcescustomize GnuFCompilerCould not locate executable g77Could not locate executable f77customize IntelFCompilerCould not locate executable ifortCould not locate executable ifccustomize LaheyFCompilerCould not locate executable lf95customize PGroupFCompilerCould not locate executable pgf90Could not locate executable pgf77customize AbsoftFCompilerCould not locate executable f90customize NAGFCompilerFound executable /usr/bin/f95customize VastFCompilercustomize CompaqFCompilerCould not locate executable fortcustomize IntelItaniumFCompilerCould not locate executable efortCould not locate executable efccustomize IntelEM64TFCompilercustomize Gnu95FCompilerFound executable /usr/bin/gfortrancustomize Gnu95FCompilercustomize Gnu95FCompiler using configC compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c'gcc: _configtest.cgcc -pthread _configtest.o -o _configtestsuccess!removing: _configtest.c _configtest.o _configtestC compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC ........................ compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c'gcc: _configtest.cgcc -pthread _configtest.o -o _configtest_configtestfailure. at the end: running install_egg_infoRemoving /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-infoWriting /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-inforunning install_clib Then I got: pythonPython 2.7.2 (default, Dec 20 2011, 12:32:10)[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2Type "help", "copyright", "credits" or "license" for more information.
import numpyTraceback (most recent call last): File "<stdin>", line 1, in <module>ImportError: No module named numpy
I have updated PATH for bin and lib of numpy. I have got f2py and lib files : add_newdocs.py distutils __init__.py numarray testingadd_newdocs.pyc doc __init__.pyc oldnumeric testscompat dual.py lib polynomial version.py__config__.py dual.pyc linalg random version.pyc__config__.pyc f2py ma setup.pycore fft matlib.py setup.pycctypeslib.py _import_tools.py matlib.pyc setupscons.pyctypeslib.pyc _import_tools.pyc matrixlib setupscons.pyc Any help is really appreciated. thanks
From: derek@astro.physik.uni-goettingen.de Date: Tue, 20 Dec 2011 20:43:53 +0100 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error
Hi Jack,
In order to install scipy, I am trying to install numpy 1.6.1. on GNU/linux redhat 2.6.18.
But, I got error about fortran compiler.
I have gfortran. I do not have f77/f90/g77/g90.
that's good!
I run : python setup.py build --fcompiler=gfortran
It woks well and tells me that
customize Gnu95FCompiler Found executable /usr/bin/gfortran
But, i run:
building library "npymath" sources customize GnuFCompiler Could not locate executable g77 Could not locate executable f77 customize IntelFCompiler Could not locate executable ifort Could not locate executable ifc customize LaheyFCompiler Could not locate executable lf95 customize PGroupFCompiler Could not locate executable pgf90 Could not locate executable pgf77 customize AbsoftFCompiler Could not locate executable f90 customize NAGFCompiler Found executable /usr/bin/f95 customize Gnu95FCompiler customize Gnu95FCompiler using config C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
Do I have to install f77/f90/g77/g90 ?
You did not send any actual error message here, so it's difficult to tell where exactly your install failed. But gfortran is preferred over f77 etc. and should in fact be automatically selected (without the '--fcompiler=gfortran'), it is apparently also found in the right place. Could you send us the last lines of output with the error itself, or possibly everything following a line starting with "Traceback:.." ; and also the output of `gfortran -v`?
Cheers, Derek
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On 20.12.2011, at 9:01PM, Jack Bryan wrote:
customize Gnu95FCompiler using config C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
........................
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest _configtest failure.
The blas failures further up are non-fatal, but I am not sure about the _configtest.c, or why it once succeeds, then fails again - anyway the installation appears to have finished.
at the end:
running install_egg_info Removing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info Writing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info running install_clib
Then
I got:
python Python 2.7.2 (default, Dec 20 2011, 12:32:10) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named numpy
I have updated PATH for bin and lib of numpy.
You will need '/mypath/numpy/lib/python2.7/site-packages' in your PYTHONPATH - have you done that, and does it show up with
import sys sys.path()
in the Python shell? Cheers, Derek
On Tue, Dec 20, 2011 at 20:23, Derek Homeier <derek@astro.physik.uni-goettingen.de> wrote:
On 20.12.2011, at 9:01PM, Jack Bryan wrote:
customize Gnu95FCompiler using config C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
........................
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest _configtest failure.
The blas failures further up are non-fatal, but I am not sure about the _configtest.c, or why it once succeeds, then fails again - anyway the installation appears to have finished.
They are different files. In order to determine your configuration, the setup.py will try to compile many different small C programs. All of them are named _configtest. You can ignore all of these unless if you think the discovered configuration is incorrect somehow. A "failure" here only means that your system does not provide what is being tested for. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Hi, I have set up PYTHONPATH :
sys.path['', '/mypath/numpy/lib/python2.7/site-packages', '/ mypath/python272/lib/python27.zip', '/ mypath/python272/lib/python2.7', '/ mypath/python272/lib/python2.7/plat-linux2', '/ mypath /python272/lib/python2.7/lib-tk', '/ mypath/python272/lib/python2.7/lib-old', '/ mypath /python272/lib/python2.7/lib-dynload', '/ mypath/python272/lib/python2.7/site-packages'] But still errors: import numpyTraceback (most recent call last): File "<stdin>", line 1, in <module> File "numpy/__init__.py", line 153, in <module> import polynomial File "numpy/polynomial/__init__.py", line 18, in <module> from polynomial import Polynomial File "numpy/polynomial/polynomial.py", line 60, in <module> from polytemplate import polytemplateImportError: cannot import name polytemplate Any help is appreciated. Thanks From: derek@astro.physik.uni-goettingen.de Date: Tue, 20 Dec 2011 21:23:24 +0100 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error
On 20.12.2011, at 9:01PM, Jack Bryan wrote:
customize Gnu95FCompiler using config C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
........................
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest _configtest failure.
The blas failures further up are non-fatal, but I am not sure about the _configtest.c, or why it once succeeds, then fails again - anyway the installation appears to have finished.
at the end:
running install_egg_info Removing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info Writing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info running install_clib
Then
I got:
python Python 2.7.2 (default, Dec 20 2011, 12:32:10) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named numpy
I have updated PATH for bin and lib of numpy.
You will need '/mypath/numpy/lib/python2.7/site-packages' in your PYTHONPATH - have you done that, and does it show up with
import sys sys.path()
in the Python shell?
Cheers, Derek
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Tue, Dec 20, 2011 at 3:16 PM, Jack Bryan <dtustudy68@hotmail.com> wrote:
Hi, I have set up PYTHONPATH :
sys.path ['', '/mypath/numpy/lib/python2.7/site-packages', '/ mypath/python272/lib/python27.zip', '/ mypath/python272/lib/python2.7', '/ mypath/python272/lib/python2.7/plat-linux2', '/ mypath /python272/lib/python2.7/lib-tk', '/ mypath/python272/lib/python2.7/lib-old', '/ mypath /python272/lib/python2.7/lib-dynload', '/ mypath /python272/lib/python2.7/site-packages']
But still errors:
import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "numpy/__init__.py", line 153, in <module> import polynomial File "numpy/polynomial/__init__.py", line 18, in <module> from polynomial import Polynomial File "numpy/polynomial/polynomial.py", line 60, in <module> from polytemplate import polytemplate ImportError: cannot import name polytemplate
Any help is appreciated.
Strange. Is polytemplate.py present in <your installation>/lib/python2.7/site-packages/numpy/polynomial/ ? You might try deleting the current numpy installation and build directory, then rebuilding and reinstalling. But I suspect something strange is going on with the paths. BTW, it is usual on the list to bottom post rather than top post, that is, your reply should be located under the previous replies. <snip> Chuck
participants (4)
-
Charles R Harris
-
Derek Homeier
-
Jack Bryan
-
Robert Kern