[Met_help] [rt.rap.ucar.edu #98911] History for METplus module error

George McCabe via RT met_help at ucar.edu
Mon Mar 15 12:18:23 MDT 2021


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hello,
I am trying to run the multi-field diagnostics for the feature-relative use
case (Hurricane Dorian).  I ran into the following error that seems to
suggest an env/module problem:

DEBUG 1: Reading data file: PYTHON_NUMPY
Traceback (most recent call last):
File
"/glade/p/ral/jntp/MET/METplus/METplus-4.0.0-beta3/parm/use_cases/model_applications/medium_range/TCStat_SeriesAnalysis_fcstGFS_obsGFS_FeatureRelative_SeriesByLead_PyEmbed_IVT/gfs_ivt_fcst.py",
line 6, in <module>
    import pygrib
  File "pygrib.pyx", line 8, in init pygrib
  File
"/glade/u/apps/ch/opt/python/3.7.9/gnu/9.1.0/pkg-library/20201220/lib/python3.7/site-packages/pyproj/__init__.py",
line 50, in <module>
    from pyproj import _datadir
ImportError: /glade/u/apps/ch/os/usr/lib64/libstdc++.so.6: version
`GLIBCXX_3.4.26' not found (required by
/glade/u/apps/ch/opt/proj/6.2.1/gnu/9.1.0/lib/libproj.so.15)
WARNING:
WARNING: python_dataplane() -> an error occurred importing module
"/glade/p/ral/jntp/MET/METplus/METplus-4.0.0-beta3/parm/use_cases/model_applications/medium_range/TCStat_SeriesAnalysis_fcstGFS_obsGFS_FeatureRelative_SeriesByLead_PyEmbed_Multiple_Diagnostics/gfs_ivt_fcst"
WARNING:
ERROR  :
ERROR  : Trouble reading data from file "PYTHON_NUMPY"
ERROR  :


I am running the METplusv.4.0.0-beta3 on Cheyenne
under /glade/u/home/nleonardo/METplus_Tutorial/MULTIparm_test001.  Thank
you.
-Nick


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: METplus module error
From: George McCabe
Time: Wed Mar 03 13:10:54 2021

Hi Nick,

The error you are showing looking like an environment issue to me.
This
webpage lists the steps you can run to set up the environment on
cheyenne:

https://dtcenter.org/community-code/metplus/metplus-4-0-existing-
builds

There are the commands:

module use /glade/p/ral/jntp/MET/METplus/modulefiles
module load metplus/4.0.0-beta3
ncar_pylib

The use case you are running uses a Python embedding script to read
data
into MET. This script relies on a Python package that was not
available
when this version of MET was compiled on cheyenne, so you will have to
set
the MET_PYTHON_EXE environment variable to tell MET to use a different
version of Python for that script. To set this, you can either set the
variable in your environment before running METplus, i.e.

(bash)
export MET_PYTHON_EXE=python3

(or csh)
setenv MET_PYTHON_EXE python3

Another way to handle this it to add this to the end of your
master_metplus.py command:

user_env_vars.MET_PYTHON_EXE=python3

Any variable set with the prefix "user_env_vars." will be set in the
environment for that run of the METplus wrappers only. You can also
add it
to your user configuration file that you run with METplus if you have
one:

[user_env_vars]
MET_PYTHON_EXE=python3

Let me know if you continue to have issues and I can take a closer
look. I
started running that use case and it is still running without error.

Thanks,
George

On Wed, Mar 3, 2021 at 12:16 PM Nicholas Leonardo via RT
<met_help at ucar.edu>
wrote:

>
> Wed Mar 03 12:16:00 2021: Request 98911 was acted upon.
> Transaction: Ticket created by nleonardo87 at gmail.com
>        Queue: met_help
>      Subject: METplus module error
>        Owner: Nobody
>   Requestors: nleonardo87 at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=98911 >
>
>
> Hello,
> I am trying to run the multi-field diagnostics for the feature-
relative use
> case (Hurricane Dorian).  I ran into the following error that seems
to
> suggest an env/module problem:
>
> DEBUG 1: Reading data file: PYTHON_NUMPY
> Traceback (most recent call last):
> File
>
> "/glade/p/ral/jntp/MET/METplus/METplus-4.0.0-
beta3/parm/use_cases/model_applications/medium_range/TCStat_SeriesAnalysis_fcstGFS_obsGFS_FeatureRelative_SeriesByLead_PyEmbed_IVT/gfs_ivt_fcst.py",
> line 6, in <module>
>     import pygrib
>   File "pygrib.pyx", line 8, in init pygrib
>   File
>
> "/glade/u/apps/ch/opt/python/3.7.9/gnu/9.1.0/pkg-
library/20201220/lib/python3.7/site-packages/pyproj/__init__.py",
> line 50, in <module>
>     from pyproj import _datadir
> ImportError: /glade/u/apps/ch/os/usr/lib64/libstdc++.so.6: version
> `GLIBCXX_3.4.26' not found (required by
> /glade/u/apps/ch/opt/proj/6.2.1/gnu/9.1.0/lib/libproj.so.15)
> WARNING:
> WARNING: python_dataplane() -> an error occurred importing module
>
> "/glade/p/ral/jntp/MET/METplus/METplus-4.0.0-
beta3/parm/use_cases/model_applications/medium_range/TCStat_SeriesAnalysis_fcstGFS_obsGFS_FeatureRelative_SeriesByLead_PyEmbed_Multiple_Diagnostics/gfs_ivt_fcst"
> WARNING:
> ERROR  :
> ERROR  : Trouble reading data from file "PYTHON_NUMPY"
> ERROR  :
>
>
> I am running the METplusv.4.0.0-beta3 on Cheyenne
> under /glade/u/home/nleonardo/METplus_Tutorial/MULTIparm_test001.
Thank
> you.
> -Nick
>
>

--
George McCabe - Software Engineer III
National Center for Atmospheric Research
Research Applications Laboratory
303-497-2768
---
My working day may not be your working day. Please do not feel obliged
to
reply to this email outside of your normal working hours.

------------------------------------------------


More information about the Met_help mailing list