NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
410 stars 155 forks source link

wrf-python importing issues #147

Open bjkindia opened 3 years ago

bjkindia commented 3 years ago

I am new to python and wrf-python

I have installed wrf-python with Conda forge and I can see wrk-python in Conda list

then I am trying to practice with wrf-python example scripts and in the begging when I try to import (from wrf import getvar,ALL_TIMES) I am getting this error

ImportError                               Traceback (most recent call last)
<ipython-input-7-e3eca81516d1> in <module>
      2 
      3 from netCDF4 import Dataset
----> 4 from wrf import getvar#,ALL_TIMES

~/opt/anaconda3/lib/python3.8/site-packages/wrf/__init__.py in <module>
      4 
      5 try:
----> 6     from . import api
      7     from .api import *
      8 except ImportError:

~/opt/anaconda3/lib/python3.8/site-packages/wrf/api.py in <module>
----> 1 from .config import (xarray_enabled, disable_xarray, enable_xarray,
      2                      cartopy_enabled, disable_cartopy, enable_cartopy,
      3                      basemap_enabled, disable_basemap, enable_basemap,
      4                      pyngl_enabled, enable_pyngl, disable_pyngl,
      5                      set_cache_size, get_cache_size, omp_enabled)

~/opt/anaconda3/lib/python3.8/site-packages/wrf/config.py in <module>
      4 import wrapt
      5 
----> 6 from ._wrffortran import (fomp_enabled, fomp_set_num_threads,
      7                           fomp_set_schedule, fomp_set_dynamic,
      8                           omp_constants)

ImportError: dlopen(/Users/jeevan/opt/anaconda3/lib/python3.8/site-packages/wrf/_wrffortran.cpython-38-darwin.so, 2): Symbol not found: _GOMP_loop_maybe_nonmonotonic_runtime_next
  Referenced from: /Users/jeevan/opt/anaconda3/lib/python3.8/site-packages/wrf/_wrffortran.cpython-38-darwin.so
  Expected in: /Users/jeevan/opt/anaconda3/lib/libiomp5.dylib
 in /Users/jeevan/opt/anaconda3/lib/python3.8/site-packages/wrf/_wrffortran.cpython-38-darwin.so
`