NCAR / NCAR/wrf-python

unable to install wrf-python 1.3.2.4 using Intel Compiler and Python 2.7.16 ...

Open
#99 6 comments 0 reactions 1 assignee View on GitHub

@erogluorhan is already working on this.

Since Sep 1, 2020.

bug support
Dominant language
Python
Stars
498
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am getting following error when I try to install wrf-python 1.3.2.4 using Intel compiler and Python 2.7.16 on Cheyenne,

pip install .
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing /glade/u/home/turuncu/progs/wrf-python-1.3.2.4
Requirement already satisfied: numpy>=1.11 in /glade/u/home/turuncu/progs/python-2.7.16/lib/python2.7/site-packages (from wrf-python==1.3.2) (1.16.5)
Requirement already satisfied: wrapt in /glade/u/home/turuncu/progs/python-2.7.16/lib/python2.7/site-packages (from wrf-python==1.3.2) (1.11.2)
Requirement already satisfied: setuptools in /glade/u/home/turuncu/progs/python-2.7.16/lib/python2.7/site-packages (from wrf-python==1.3.2) (41.2.0)
Building wheels for collected packages: wrf-python
  Building wheel for wrf-python (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /glade/u/home/turuncu/progs/python-2.7.16/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/glade/scratch/turuncu/pip-req-build-6jKU9M/setup.py'"'"'; __file__='"'"'/glade/scratch/turuncu/pip-req-build-6jKU9M/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /glade/scratch/turuncu/pip-wheel-XCh1D7 --python-tag cp27
       cwd: /glade/scratch/turuncu/pip-req-build-6jKU9M/
  Complete output (105 lines):
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building extension "wrf._wrffortran" sources
  f2py options: []
    adding 'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/wrf/fortranobject.c' to sources.
    adding 'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/wrf' to include_dirs.
    adding 'build/src.linux-x86_64-2.7/wrf/_wrffortran-f2pywrappers.f' to sources.
    adding 'build/src.linux-x86_64-2.7/wrf/_wrffortran-f2pywrappers2.f90' to sources.
  build_src: building npy-pkg config files
  running build_py
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_wind.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/py3compat.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_dbz.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_omega.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_cloudfrac.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_uvmet.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/extension.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_dewpoint.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_pw.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/coordpair.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/cache.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/util.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/metadecorators.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/projection.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/interp.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_temp.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/geobnds.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_helicity.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/__init__.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_precip.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_ctt.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/decorators.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/constants.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_terrain.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_rh.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/interputils.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_geoht.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/latlonutils.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/api.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/version.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_slp.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/computation.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_cape.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/config.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/destag.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/projutils.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/routines.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_vorticity.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_pressure.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_latlon.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/contrib.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/g_times.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/specialdec.py -> build/lib.linux-x86_64-2.7/wrf
  copying src/wrf/units.py -> build/lib.linux-x86_64-2.7/wrf
  creating build/lib.linux-x86_64-2.7/wrf/data
  copying src/wrf/data/psadilookup.dat -> build/lib.linux-x86_64-2.7/wrf/data
  running build_ext
  customize UnixCCompiler
  C compiler: icc -fno-strict-aliasing -fp-model strict -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
  
  creating /glade/scratch/turuncu/tmpuro7_Z/glade
  creating /glade/scratch/turuncu/tmpuro7_Z/glade/scratch
  creating /glade/scratch/turuncu/tmpuro7_Z/glade/scratch/turuncu
  creating /glade/scratch/turuncu/tmpuro7_Z/glade/scratch/turuncu/tmpuro7_Z
  compile options: '-MMD -MF /glade/scratch/turuncu/tmpuro7_Z/file.c.d -c'
  icc: /glade/scratch/turuncu/tmpuro7_Z/file.c
  customize UnixCCompiler using build_ext
  get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
  customize Gnu95FCompiler
  Found executable /glade/u/apps/ch/opt/ncarcompilers/0.5.0/intel/18.0.5/ifort
  Found executable /glade/u/apps/ch/opt/ncarcompilers/0.5.0/intel/18.0.5/gfortran
  customize IntelFCompiler
  customize LaheyFCompiler
  Could not locate executable lf95
  customize PGroupFCompiler
  Could not locate executable pgfortran
  customize AbsoftFCompiler
  customize NAGFCompiler
  customize VastFCompiler
  customize CompaqFCompiler
  customize IntelItaniumFCompiler
  customize IntelEM64TFCompiler
  customize GnuFCompiler
  gnu: no Fortran 90 compiler found
  Could not locate executable g77
  Could not locate executable f77
  gnu: no Fortran 90 compiler found
  customize G95FCompiler
  customize PathScaleFCompiler
  Could not locate executable pathf95
  customize NAGFORCompiler
  Could not locate executable nagfor
  don't know how to compile Fortran code on platform 'posix'
  warning: build_ext: f77_compiler=None is not available.
  
  building 'wrf._wrffortran' extension
  error: extension 'wrf._wrffortran' has Fortran sources but no Fortran compiler found
  ----------------------------------------
  ERROR: Failed building wheel for wrf-python
  Running setup.py clean for wrf-python
Failed to build wrf-python

Is there any workaround for it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.