[Met_help] [rt.rap.ucar.edu #79605] History for ImportError: No module named constants_pdef

Julie Prestopnik via RT met_help at ucar.edu
Mon Apr 3 14:16:07 MDT 2017


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

Hi,


When I ran the mater_met_plus.py, it says:


ImportError: No module named constants_pdef


Seems it doesn't recognize constants_pdef as its module.


Thanks,

Xinxia


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

Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Wed Feb 22 09:24:20 2017

Hi Xinxia.

Could you please check to make sure that the ush directory with
constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc or
similar file)?  The parm directory should also be in your PYTHONPATH.

For example,

setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/d1/jpresto/sbu/METplus/parm

Please also check make sure that the path to the ush directory is also
specified your your path environment variable.  For example,

set path = (/usr/local/bin \
                 /usr/local/python/bin/python \
                 /d1/jpresto/sbu/METplus/ush )

If they are not there, please add them and then source the file (e.g.
run
"source ~/.cshrc").

Thank you!  Please let us know how it goes.

Julie




On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> Transaction: Ticket created by Xinxia_Song at outlook.com
>        Queue: met_help
>      Subject: ImportError: No module named constants_pdef
>        Owner: Nobody
>   Requestors: Xinxia_Song at outlook.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
>
> Hi,
>
>
> When I ran the mater_met_plus.py, it says:
>
>
> ImportError: No module named constants_pdef
>
>
> Seems it doesn't recognize constants_pdef as its module.
>
>
> Thanks,
>
> Xinxia
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Wed Feb 22 10:24:42 2017

Hi Julie,


Since I don't have setenv, I added these 3 sentence into my .bashrc
file:


export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"


export USHROOT=/D2/xinxia/METplus/METplus/ush

export PATH=$USHROOT:$PATH


I sourced the ~/.bashrc, and checked that the variables are set, but
the program still can't find the module.


Thanks,

Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, February 23, 2017 6:24:21 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

Could you please check to make sure that the ush directory with
constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc or
similar file)?  The parm directory should also be in your PYTHONPATH.

For example,

setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/d1/jpresto/sbu/METplus/parm

Please also check make sure that the path to the ush directory is also
specified your your path environment variable.  For example,

set path = (/usr/local/bin \
                 /usr/local/python/bin/python \
                 /d1/jpresto/sbu/METplus/ush )

If they are not there, please add them and then source the file (e.g.
run
"source ~/.cshrc").

Thank you!  Please let us know how it goes.

Julie




On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> Transaction: Ticket created by Xinxia_Song at outlook.com
>        Queue: met_help
>      Subject: ImportError: No module named constants_pdef
>        Owner: Nobody
>   Requestors: Xinxia_Song at outlook.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
>
> Hi,
>
>
> When I ran the mater_met_plus.py, it says:
>
>
> ImportError: No module named constants_pdef
>
>
> Seems it doesn't recognize constants_pdef as its module.
>
>
> Thanks,
>
> Xinxia
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Wed Feb 22 10:30:06 2017

Hi Xinxia.

I believe that python doesn't know how to find the module because the
ush
directory is not in your PYTHONPATH.  Both the parm and ush directory
need
to be specified in your PYTHONPATH.  Please add the ush directory to
your
PYTHONPATH, source ~/.bashrc, and let us know how it goes.

Thanks,
Julie

On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> Since I don't have setenv, I added these 3 sentence into my .bashrc
file:
>
>
> export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>
>
> export USHROOT=/D2/xinxia/METplus/METplus/ush
>
> export PATH=$USHROOT:$PATH
>
>
> I sourced the ~/.bashrc, and checked that the variables are set, but
the
> program still can't find the module.
>
>
> Thanks,
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 6:24:21 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> Could you please check to make sure that the ush directory with
> constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc or
> similar file)?  The parm directory should also be in your
PYTHONPATH.
>
> For example,
>
> setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/d1/jpresto/sbu/METplus/parm
>
> Please also check make sure that the path to the ush directory is
also
> specified your your path environment variable.  For example,
>
> set path = (/usr/local/bin \
>                  /usr/local/python/bin/python \
>                  /d1/jpresto/sbu/METplus/ush )
>
> If they are not there, please add them and then source the file
(e.g. run
> "source ~/.cshrc").
>
> Thank you!  Please let us know how it goes.
>
> Julie
>
>
>
>
> On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > Transaction: Ticket created by Xinxia_Song at outlook.com
> >        Queue: met_help
> >      Subject: ImportError: No module named constants_pdef
> >        Owner: Nobody
> >   Requestors: Xinxia_Song at outlook.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> >
> > Hi,
> >
> >
> > When I ran the mater_met_plus.py, it says:
> >
> >
> > ImportError: No module named constants_pdef
> >
> >
> > Seems it doesn't recognize constants_pdef as its module.
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Wed Feb 22 12:06:45 2017

Hi Julie,


Now I can run the program, but when I look at the log file in the
output, it shows error below:


ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly


How should I fix it?


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, February 23, 2017 7:30:06 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

I believe that python doesn't know how to find the module because the
ush
directory is not in your PYTHONPATH.  Both the parm and ush directory
need
to be specified in your PYTHONPATH.  Please add the ush directory to
your
PYTHONPATH, source ~/.bashrc, and let us know how it goes.

Thanks,
Julie

On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> Since I don't have setenv, I added these 3 sentence into my .bashrc
file:
>
>
> export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>
>
> export USHROOT=/D2/xinxia/METplus/METplus/ush
>
> export PATH=$USHROOT:$PATH
>
>
> I sourced the ~/.bashrc, and checked that the variables are set, but
the
> program still can't find the module.
>
>
> Thanks,
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 6:24:21 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> Could you please check to make sure that the ush directory with
> constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc or
> similar file)?  The parm directory should also be in your
PYTHONPATH.
>
> For example,
>
> setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/d1/jpresto/sbu/METplus/parm
>
> Please also check make sure that the path to the ush directory is
also
> specified your your path environment variable.  For example,
>
> set path = (/usr/local/bin \
>                  /usr/local/python/bin/python \
>                  /d1/jpresto/sbu/METplus/ush )
>
> If they are not there, please add them and then source the file
(e.g. run
> "source ~/.cshrc").
>
> Thank you!  Please let us know how it goes.
>
> Julie
>
>
>
>
> On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > Transaction: Ticket created by Xinxia_Song at outlook.com
> >        Queue: met_help
> >      Subject: ImportError: No module named constants_pdef
> >        Owner: Nobody
> >   Requestors: Xinxia_Song at outlook.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> >
> > Hi,
> >
> >
> > When I ran the mater_met_plus.py, it says:
> >
> >
> > ImportError: No module named constants_pdef
> >
> >
> > Seems it doesn't recognize constants_pdef as its module.
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Wed Feb 22 12:11:31 2017

Hi Xinxia.

I think it would be helpful if I could take a look at the log file.
Could
you please upload your file to our anonymous ftp site as follows so
that I
can take a look?

   http://www.dtcenter.org/met/users/support/met_help.php#ftp

Also, could you please try running the following manually and send the
output to me?

"/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"

Thank you!

Julie



On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> Now I can run the program, but when I look at the log file in the
output,
> it shows error below:
>
>
> ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>
>
> How should I fix it?
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 7:30:06 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> I believe that python doesn't know how to find the module because
the ush
> directory is not in your PYTHONPATH.  Both the parm and ush
directory need
> to be specified in your PYTHONPATH.  Please add the ush directory to
your
> PYTHONPATH, source ~/.bashrc, and let us know how it goes.
>
> Thanks,
> Julie
>
> On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > Since I don't have setenv, I added these 3 sentence into my
.bashrc file:
> >
> >
> > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> >
> >
> > export USHROOT=/D2/xinxia/METplus/METplus/ush
> >
> > export PATH=$USHROOT:$PATH
> >
> >
> > I sourced the ~/.bashrc, and checked that the variables are set,
but the
> > program still can't find the module.
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 6:24:21 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > Could you please check to make sure that the ush directory with
> > constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc
> or
> > similar file)?  The parm directory should also be in your
PYTHONPATH.
> >
> > For example,
> >
> > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> d1/jpresto/sbu/METplus/parm
> >
> > Please also check make sure that the path to the ush directory is
also
> > specified your your path environment variable.  For example,
> >
> > set path = (/usr/local/bin \
> >                  /usr/local/python/bin/python \
> >                  /d1/jpresto/sbu/METplus/ush )
> >
> > If they are not there, please add them and then source the file
(e.g. run
> > "source ~/.cshrc").
> >
> > Thank you!  Please let us know how it goes.
> >
> > Julie
> >
> >
> >
> >
> > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > >        Queue: met_help
> > >      Subject: ImportError: No module named constants_pdef
> > >        Owner: Nobody
> > >   Requestors: Xinxia_Song at outlook.com
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > >
> > >
> > > Hi,
> > >
> > >
> > > When I ran the mater_met_plus.py, it says:
> > >
> > >
> > > ImportError: No module named constants_pdef
> > >
> > >
> > > Seems it doesn't recognize constants_pdef as its module.
> > >
> > >
> > > Thanks,
> > >
> > > Xinxia
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Wed Feb 22 12:39:13 2017

Hi Julie,


I uploaded the log file under xinxia_data directory.


Thanks,


Xinxia


________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, February 23, 2017 9:11:32 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

I think it would be helpful if I could take a look at the log file.
Could
you please upload your file to our anonymous ftp site as follows so
that I
can take a look?

   http://www.dtcenter.org/met/users/support/met_help.php#ftp

Also, could you please try running the following manually and send the
output to me?

"/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"

Thank you!

Julie



On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> Now I can run the program, but when I look at the log file in the
output,
> it shows error below:
>
>
> ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>
>
> How should I fix it?
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 7:30:06 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> I believe that python doesn't know how to find the module because
the ush
> directory is not in your PYTHONPATH.  Both the parm and ush
directory need
> to be specified in your PYTHONPATH.  Please add the ush directory to
your
> PYTHONPATH, source ~/.bashrc, and let us know how it goes.
>
> Thanks,
> Julie
>
> On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > Since I don't have setenv, I added these 3 sentence into my
.bashrc file:
> >
> >
> > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> >
> >
> > export USHROOT=/D2/xinxia/METplus/METplus/ush
> >
> > export PATH=$USHROOT:$PATH
> >
> >
> > I sourced the ~/.bashrc, and checked that the variables are set,
but the
> > program still can't find the module.
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 6:24:21 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > Could you please check to make sure that the ush directory with
> > constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc
> or
> > similar file)?  The parm directory should also be in your
PYTHONPATH.
> >
> > For example,
> >
> > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> d1/jpresto/sbu/METplus/parm
> >
> > Please also check make sure that the path to the ush directory is
also
> > specified your your path environment variable.  For example,
> >
> > set path = (/usr/local/bin \
> >                  /usr/local/python/bin/python \
> >                  /d1/jpresto/sbu/METplus/ush )
> >
> > If they are not there, please add them and then source the file
(e.g. run
> > "source ~/.cshrc").
> >
> > Thank you!  Please let us know how it goes.
> >
> > Julie
> >
> >
> >
> >
> > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > >        Queue: met_help
> > >      Subject: ImportError: No module named constants_pdef
> > >        Owner: Nobody
> > >   Requestors: Xinxia_Song at outlook.com
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > >
> > >
> > > Hi,
> > >
> > >
> > > When I ran the mater_met_plus.py, it says:
> > >
> > >
> > > ImportError: No module named constants_pdef
> > >
> > >
> > > Seems it doesn't recognize constants_pdef as its module.
> > >
> > >
> > > Thanks,
> > >
> > > Xinxia
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Wed Feb 22 13:04:55 2017

Thank you.  Unfortunately, the level of detail in the log file wasn't
what
I hoped for.  I'd like to have you try two things.

First, could you please send me your output of your manual run of the
following?

"/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"

Second, could you please change your log level in your configuration
file
from

LOG_LEVEL = "INFO"

to

LOG_LEVEL = "DEBUG"

then rerun and upload your log file to our ftp server again?

Thank you!

Julie


On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I uploaded the log file under xinxia_data directory.
>
>
> Thanks,
>
>
> Xinxia
>
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 9:11:32 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> I think it would be helpful if I could take a look at the log file.
Could
> you please upload your file to our anonymous ftp site as follows so
that I
> can take a look?
>
>    http://www.dtcenter.org/met/users/support/met_help.php#ftp
>
> Also, could you please try running the following manually and send
the
> output to me?
>
> "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>
> Thank you!
>
> Julie
>
>
>
> On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > Now I can run the program, but when I look at the log file in the
output,
> > it shows error below:
> >
> >
> > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> calling
> > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >
> >
> > How should I fix it?
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 7:30:06 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > I believe that python doesn't know how to find the module because
the ush
> > directory is not in your PYTHONPATH.  Both the parm and ush
directory
> need
> > to be specified in your PYTHONPATH.  Please add the ush directory
to your
> > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> >
> > Thanks,
> > Julie
> >
> > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > Since I don't have setenv, I added these 3 sentence into my
.bashrc
> file:
> > >
> > >
> > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > >
> > >
> > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > >
> > > export PATH=$USHROOT:$PATH
> > >
> > >
> > > I sourced the ~/.bashrc, and checked that the variables are set,
but
> the
> > > program still can't find the module.
> > >
> > >
> > > Thanks,
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > Could you please check to make sure that the ush directory with
> > > constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc
> > or
> > > similar file)?  The parm directory should also be in your
PYTHONPATH.
> > >
> > > For example,
> > >
> > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > d1/jpresto/sbu/METplus/parm
> > >
> > > Please also check make sure that the path to the ush directory
is also
> > > specified your your path environment variable.  For example,
> > >
> > > set path = (/usr/local/bin \
> > >                  /usr/local/python/bin/python \
> > >                  /d1/jpresto/sbu/METplus/ush )
> > >
> > > If they are not there, please add them and then source the file
(e.g.
> run
> > > "source ~/.cshrc").
> > >
> > > Thank you!  Please let us know how it goes.
> > >
> > > Julie
> > >
> > >
> > >
> > >
> > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu
> >
> > > wrote:
> > >
> > > >
> > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > > >        Queue: met_help
> > > >      Subject: ImportError: No module named constants_pdef
> > > >        Owner: Nobody
> > > >   Requestors: Xinxia_Song at outlook.com
> > > >       Status: new
> > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > > When I ran the mater_met_plus.py, it says:
> > > >
> > > >
> > > > ImportError: No module named constants_pdef
> > > >
> > > >
> > > > Seems it doesn't recognize constants_pdef as its module.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Xinxia
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Wed Feb 22 14:54:48 2017

Hi Julie,


[xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter -lookin

/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading shared
libraries: libgsl.so.19: cannot open shared object file: No such file
or directory


[xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc 20141201_00 -match_points true -dump_row

-bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a directory


[xinxia at chaos ush]$
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
filter_20141201_00.tcst  -basin ML -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

-bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No such
file or directory


After I change the LOG_LEVEL, I ran the master_met_plus.py, it says:

[xinxia at chaos ush]$ python master_met_plus.py

sh: run_tc_pairs.py: command not found



Thanks,


Xinxia


________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, February 23, 2017 10:04:55 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Thank you.  Unfortunately, the level of detail in the log file wasn't
what
I hoped for.  I'd like to have you try two things.

First, could you please send me your output of your manual run of the
following?

"/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"

Second, could you please change your log level in your configuration
file
from

LOG_LEVEL = "INFO"

to

LOG_LEVEL = "DEBUG"

then rerun and upload your log file to our ftp server again?

Thank you!

Julie


On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I uploaded the log file under xinxia_data directory.
>
>
> Thanks,
>
>
> Xinxia
>
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 9:11:32 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> I think it would be helpful if I could take a look at the log file.
Could
> you please upload your file to our anonymous ftp site as follows so
that I
> can take a look?
>
>    http://www.dtcenter.org/met/users/support/met_help.php#ftp
>
> Also, could you please try running the following manually and send
the
> output to me?
>
> "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>
> Thank you!
>
> Julie
>
>
>
> On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > Now I can run the program, but when I look at the log file in the
output,
> > it shows error below:
> >
> >
> > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> calling
> > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >
> >
> > How should I fix it?
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 7:30:06 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > I believe that python doesn't know how to find the module because
the ush
> > directory is not in your PYTHONPATH.  Both the parm and ush
directory
> need
> > to be specified in your PYTHONPATH.  Please add the ush directory
to your
> > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> >
> > Thanks,
> > Julie
> >
> > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > Since I don't have setenv, I added these 3 sentence into my
.bashrc
> file:
> > >
> > >
> > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > >
> > >
> > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > >
> > > export PATH=$USHROOT:$PATH
> > >
> > >
> > > I sourced the ~/.bashrc, and checked that the variables are set,
but
> the
> > > program still can't find the module.
> > >
> > >
> > > Thanks,
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > Could you please check to make sure that the ush directory with
> > > constants_pdef.py is in your PYTHONPATH in your .cshrc file (or
.bashrc
> > or
> > > similar file)?  The parm directory should also be in your
PYTHONPATH.
> > >
> > > For example,
> > >
> > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > d1/jpresto/sbu/METplus/parm
> > >
> > > Please also check make sure that the path to the ush directory
is also
> > > specified your your path environment variable.  For example,
> > >
> > > set path = (/usr/local/bin \
> > >                  /usr/local/python/bin/python \
> > >                  /d1/jpresto/sbu/METplus/ush )
> > >
> > > If they are not there, please add them and then source the file
(e.g.
> run
> > > "source ~/.cshrc").
> > >
> > > Thank you!  Please let us know how it goes.
> > >
> > > Julie
> > >
> > >
> > >
> > >
> > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<met_help at ucar.edu
> >
> > > wrote:
> > >
> > > >
> > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > > >        Queue: met_help
> > > >      Subject: ImportError: No module named constants_pdef
> > > >        Owner: Nobody
> > > >   Requestors: Xinxia_Song at outlook.com
> > > >       Status: new
> > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > > When I ran the mater_met_plus.py, it says:
> > > >
> > > >
> > > > ImportError: No module named constants_pdef
> > > >
> > > >
> > > > Seems it doesn't recognize constants_pdef as its module.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Xinxia
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 09:15:57 2017

Hi Xinxia.

I can see that your command, which should have been all on one line,
was
broken up into several lines.  Please try running the command again,
making
sure that the entire command is on one line:

/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
filter_20141201_00.tcst  -basin ML -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

Then, please send the output from that command.

Regarding, your error:

sh: run_tc_pairs.py: command not found

It's strange that would only have occurred after having changed the
LOG_LEVEL.  Could you please send us your configuration file?

Thanks!

Julie

On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> directory
>
>
> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc 20141201_00 -match_points true -dump_row
>
> -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a directory
>
>
> [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
such
> file or directory
>
>
> After I change the LOG_LEVEL, I ran the master_met_plus.py, it says:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> sh: run_tc_pairs.py: command not found
>
>
>
> Thanks,
>
>
> Xinxia
>
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 10:04:55 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Thank you.  Unfortunately, the level of detail in the log file
wasn't what
> I hoped for.  I'd like to have you try two things.
>
> First, could you please send me your output of your manual run of
the
> following?
>
> "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>
> Second, could you please change your log level in your configuration
file
> from
>
> LOG_LEVEL = "INFO"
>
> to
>
> LOG_LEVEL = "DEBUG"
>
> then rerun and upload your log file to our ftp server again?
>
> Thank you!
>
> Julie
>
>
> On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I uploaded the log file under xinxia_data directory.
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 9:11:32 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > I think it would be helpful if I could take a look at the log
file.
> Could
> > you please upload your file to our anonymous ftp site as follows
so that
> I
> > can take a look?
> >
> >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
> >
> > Also, could you please try running the following manually and send
the
> > output to me?
> >
> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >
> > Thank you!
> >
> > Julie
> >
> >
> >
> > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > Now I can run the program, but when I look at the log file in
the
> output,
> > > it shows error below:
> > >
> > >
> > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > calling
> > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > >
> > >
> > > How should I fix it?
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > I believe that python doesn't know how to find the module
because the
> ush
> > > directory is not in your PYTHONPATH.  Both the parm and ush
directory
> > need
> > > to be specified in your PYTHONPATH.  Please add the ush
directory to
> your
> > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > Since I don't have setenv, I added these 3 sentence into my
.bashrc
> > file:
> > > >
> > > >
> > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > >
> > > >
> > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > >
> > > > export PATH=$USHROOT:$PATH
> > > >
> > > >
> > > > I sourced the ~/.bashrc, and checked that the variables are
set, but
> > the
> > > > program still can't find the module.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > Could you please check to make sure that the ush directory
with
> > > > constants_pdef.py is in your PYTHONPATH in your .cshrc file
(or
> .bashrc
> > > or
> > > > similar file)?  The parm directory should also be in your
PYTHONPATH.
> > > >
> > > > For example,
> > > >
> > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > d1/jpresto/sbu/METplus/parm
> > > >
> > > > Please also check make sure that the path to the ush directory
is
> also
> > > > specified your your path environment variable.  For example,
> > > >
> > > > set path = (/usr/local/bin \
> > > >                  /usr/local/python/bin/python \
> > > >                  /d1/jpresto/sbu/METplus/ush )
> > > >
> > > > If they are not there, please add them and then source the
file (e.g.
> > run
> > > > "source ~/.cshrc").
> > > >
> > > > Thank you!  Please let us know how it goes.
> > > >
> > > > Julie
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> met_help at ucar.edu
> > >
> > > > wrote:
> > > >
> > > > >
> > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > > > >        Queue: met_help
> > > > >      Subject: ImportError: No module named constants_pdef
> > > > >        Owner: Nobody
> > > > >   Requestors: Xinxia_Song at outlook.com
> > > > >       Status: new
> > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > > When I ran the mater_met_plus.py, it says:
> > > > >
> > > > >
> > > > > ImportError: No module named constants_pdef
> > > > >
> > > > >
> > > > > Seems it doesn't recognize constants_pdef as its module.
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Xinxia
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 10:14:00 2017

Hi Julie,


[xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
filter_20141201_00.tcst  -basin ML -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading shared
libraries: libgsl.so.19: cannot open shared object file: No such file
or directory


And I uploaded the configuration file (constants_pdef.py) under
xinxia_data directory.


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 6:15:57 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

I can see that your command, which should have been all on one line,
was
broken up into several lines.  Please try running the command again,
making
sure that the entire command is on one line:

/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
-match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
filter_20141201_00.tcst  -basin ML -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

Then, please send the output from that command.

Regarding, your error:

sh: run_tc_pairs.py: command not found

It's strange that would only have occurred after having changed the
LOG_LEVEL.  Could you please send us your configuration file?

Thanks!

Julie

On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> directory
>
>
> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc 20141201_00 -match_points true -dump_row
>
> -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a directory
>
>
> [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
such
> file or directory
>
>
> After I change the LOG_LEVEL, I ran the master_met_plus.py, it says:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> sh: run_tc_pairs.py: command not found
>
>
>
> Thanks,
>
>
> Xinxia
>
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, February 23, 2017 10:04:55 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Thank you.  Unfortunately, the level of detail in the log file
wasn't what
> I hoped for.  I'd like to have you try two things.
>
> First, could you please send me your output of your manual run of
the
> following?
>
> "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>
> Second, could you please change your log level in your configuration
file
> from
>
> LOG_LEVEL = "INFO"
>
> to
>
> LOG_LEVEL = "DEBUG"
>
> then rerun and upload your log file to our ftp server again?
>
> Thank you!
>
> Julie
>
>
> On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I uploaded the log file under xinxia_data directory.
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 9:11:32 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > I think it would be helpful if I could take a look at the log
file.
> Could
> > you please upload your file to our anonymous ftp site as follows
so that
> I
> > can take a look?
> >
> >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
> >
> > Also, could you please try running the following manually and send
the
> > output to me?
> >
> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >
> > Thank you!
> >
> > Julie
> >
> >
> >
> > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > Now I can run the program, but when I look at the log file in
the
> output,
> > > it shows error below:
> > >
> > >
> > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > calling
> > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > >
> > >
> > > How should I fix it?
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > I believe that python doesn't know how to find the module
because the
> ush
> > > directory is not in your PYTHONPATH.  Both the parm and ush
directory
> > need
> > > to be specified in your PYTHONPATH.  Please add the ush
directory to
> your
> > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > Since I don't have setenv, I added these 3 sentence into my
.bashrc
> > file:
> > > >
> > > >
> > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > >
> > > >
> > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > >
> > > > export PATH=$USHROOT:$PATH
> > > >
> > > >
> > > > I sourced the ~/.bashrc, and checked that the variables are
set, but
> > the
> > > > program still can't find the module.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > Could you please check to make sure that the ush directory
with
> > > > constants_pdef.py is in your PYTHONPATH in your .cshrc file
(or
> .bashrc
> > > or
> > > > similar file)?  The parm directory should also be in your
PYTHONPATH.
> > > >
> > > > For example,
> > > >
> > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > d1/jpresto/sbu/METplus/parm
> > > >
> > > > Please also check make sure that the path to the ush directory
is
> also
> > > > specified your your path environment variable.  For example,
> > > >
> > > > set path = (/usr/local/bin \
> > > >                  /usr/local/python/bin/python \
> > > >                  /d1/jpresto/sbu/METplus/ush )
> > > >
> > > > If they are not there, please add them and then source the
file (e.g.
> > run
> > > > "source ~/.cshrc").
> > > >
> > > > Thank you!  Please let us know how it goes.
> > > >
> > > > Julie
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> met_help at ucar.edu
> > >
> > > > wrote:
> > > >
> > > > >
> > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > > > >        Queue: met_help
> > > > >      Subject: ImportError: No module named constants_pdef
> > > > >        Owner: Nobody
> > > > >   Requestors: Xinxia_Song at outlook.com
> > > > >       Status: new
> > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > > When I ran the mater_met_plus.py, it says:
> > > > >
> > > > >
> > > > > ImportError: No module named constants_pdef
> > > > >
> > > > >
> > > > > Seems it doesn't recognize constants_pdef as its module.
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Xinxia
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 10:41:18 2017

Hi Xinxia.  Regarding the error:

/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading shared
libraries: libgsl.so.19: cannot open shared object file: No such file
or
directory

By default, MET version 5.1 is compiled using dynamic linking.  Rather
than
compiling the external library code in with the MET executables (which
is
called static linking), it looks for them at runtime.  And it's
looking for
those "shared object" (.so) library files.

This should be easy to fix. We just need to tell it where to find
them, and
we do that by setting (or adding to the LD_LIBRARY_PATH).  Look in
your
~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there, add
the
path to the libgsl.so.19 to the end of it.  If not, add an
LD_LIBRARY_PATH
entry in your ~/.bashrc file.  So, for example, if the path to your
libgsl.so.19 file is /D2/xinxia/METplus/MET/external_libs/GSL/gsl-
1.16/lib
you would add teh following to your ~/.bashrc file:

  export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/gsl-1.16/lib

Then save the change and source that file:

  source ~/.bashrc

Then, please try rerunning the command manually and let me know if it
works.

I believe that this was the cause of the initial error you received
from
MET+:

ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
MET TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00 -match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly


Thanks,
Julie

On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> directory
>
>
> And I uploaded the configuration file (constants_pdef.py) under
> xinxia_data directory.
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 6:15:57 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> I can see that your command, which should have been all on one line,
was
> broken up into several lines.  Please try running the command again,
making
> sure that the entire command is on one line:
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> Then, please send the output from that command.
>
> Regarding, your error:
>
> sh: run_tc_pairs.py: command not found
>
> It's strange that would only have occurred after having changed the
> LOG_LEVEL.  Could you please send us your configuration file?
>
> Thanks!
>
> Julie
>
> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter -lookin
> >
> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> > libraries: libgsl.so.19: cannot open shared object file: No such
file or
> > directory
> >
> >
> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc 20141201_00 -match_points true -dump_row
> >
> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
> >
> >
> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/
> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
such
> > file or directory
> >
> >
> > After I change the LOG_LEVEL, I ran the master_met_plus.py, it
says:
> >
> > [xinxia at chaos ush]$ python master_met_plus.py
> >
> > sh: run_tc_pairs.py: command not found
> >
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Thank you.  Unfortunately, the level of detail in the log file
wasn't
> what
> > I hoped for.  I'd like to have you try two things.
> >
> > First, could you please send me your output of your manual run of
the
> > following?
> >
> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >
> > Second, could you please change your log level in your
configuration file
> > from
> >
> > LOG_LEVEL = "INFO"
> >
> > to
> >
> > LOG_LEVEL = "DEBUG"
> >
> > then rerun and upload your log file to our ftp server again?
> >
> > Thank you!
> >
> > Julie
> >
> >
> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I uploaded the log file under xinxia_data directory.
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > I think it would be helpful if I could take a look at the log
file.
> > Could
> > > you please upload your file to our anonymous ftp site as follows
so
> that
> > I
> > > can take a look?
> > >
> > >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > >
> > > Also, could you please try running the following manually and
send the
> > > output to me?
> > >
> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > >
> > > Thank you!
> > >
> > > Julie
> > >
> > >
> > >
> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > Now I can run the program, but when I look at the log file in
the
> > output,
> > > > it shows error below:
> > > >
> > > >
> > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > calling
> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > How should I fix it?
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > I believe that python doesn't know how to find the module
because the
> > ush
> > > > directory is not in your PYTHONPATH.  Both the parm and ush
directory
> > > need
> > > > to be specified in your PYTHONPATH.  Please add the ush
directory to
> > your
> > > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >
> > > > > Hi Julie,
> > > > >
> > > > >
> > > > > Since I don't have setenv, I added these 3 sentence into my
.bashrc
> > > file:
> > > > >
> > > > >
> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > >
> > > > >
> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > >
> > > > > export PATH=$USHROOT:$PATH
> > > > >
> > > > >
> > > > > I sourced the ~/.bashrc, and checked that the variables are
set,
> but
> > > the
> > > > > program still can't find the module.
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Xinxia
> > > > >
> > > > > ________________________________
> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > > To: Xinxia_Song at outlook.com
> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > > constants_pdef
> > > > >
> > > > > Hi Xinxia.
> > > > >
> > > > > Could you please check to make sure that the ush directory
with
> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc file
(or
> > .bashrc
> > > > or
> > > > > similar file)?  The parm directory should also be in your
> PYTHONPATH.
> > > > >
> > > > > For example,
> > > > >
> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > d1/jpresto/sbu/METplus/parm
> > > > >
> > > > > Please also check make sure that the path to the ush
directory is
> > also
> > > > > specified your your path environment variable.  For example,
> > > > >
> > > > > set path = (/usr/local/bin \
> > > > >                  /usr/local/python/bin/python \
> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > >
> > > > > If they are not there, please add them and then source the
file
> (e.g.
> > > run
> > > > > "source ~/.cshrc").
> > > > >
> > > > > Thank you!  Please let us know how it goes.
> > > > >
> > > > > Julie
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> > met_help at ucar.edu
> > > >
> > > > > wrote:
> > > > >
> > > > > >
> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> > > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> > > > > >        Queue: met_help
> > > > > >      Subject: ImportError: No module named constants_pdef
> > > > > >        Owner: Nobody
> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > > >       Status: new
> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > Ticket/Display.html?id=79605
> > > > >
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > >
> > > > > > When I ran the mater_met_plus.py, it says:
> > > > > >
> > > > > >
> > > > > > ImportError: No module named constants_pdef
> > > > > >
> > > > > >
> > > > > > Seems it doesn't recognize constants_pdef as its module.
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Xinxia
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 10:42:21 2017

My apologies, my response should have said, "By default, MET version
5.2 is
compiled using dynamic linking."  It's true for both, but I see you're
using 5.2 and I inadvertently referred to 5.1.

On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <jpresto at ucar.edu>
wrote:

> Hi Xinxia.  Regarding the error:
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> directory
>
> By default, MET version 5.1 is compiled using dynamic linking.
Rather
> than compiling the external library code in with the MET executables
(which
> is
> called static linking), it looks for them at runtime.  And it's
looking
> for those "shared object" (.so) library files.
>
> This should be easy to fix. We just need to tell it where to find
them,
> and we do that by setting (or adding to the LD_LIBRARY_PATH).  Look
in your
> ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there, add
the
> path to the libgsl.so.19 to the end of it.  If not, add an
> LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example, if
the path
> to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/external_libs/GSL/gsl-1.16/lib
> you would add teh following to your ~/.bashrc file:
>
>   export LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> gsl-1.16/lib
>
> Then save the change and source that file:
>
>   source ~/.bashrc
>
> Then, please try rerunning the command manually and let me know if
it
> works.
>
> I believe that this was the cause of the initial error you received
from
> MET+:
>
> ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
>
> Thanks,
> Julie
>
> On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>>
>> Hi Julie,
>>
>>
>> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
>> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> filter_20141201_00.tcst  -basin ML -out_init_mask
>> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>>
>> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
>> libraries: libgsl.so.19: cannot open shared object file: No such
file or
>> directory
>>
>>
>> And I uploaded the configuration file (constants_pdef.py) under
>> xinxia_data directory.
>>
>>
>> Thanks,
>>
>>
>> Xinxia
>>
>> ________________________________
>> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> Sent: Friday, February 24, 2017 6:15:57 AM
>> To: Xinxia_Song at outlook.com
>> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
>> constants_pdef
>>
>> Hi Xinxia.
>>
>> I can see that your command, which should have been all on one
line, was
>> broken up into several lines.  Please try running the command
again,
>> making
>> sure that the entire command is on one line:
>>
>> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
>> -match_points true -dump_row
>> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> filter_20141201_00.tcst  -basin ML -out_init_mask
>> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>>
>> Then, please send the output from that command.
>>
>> Regarding, your error:
>>
>> sh: run_tc_pairs.py: command not found
>>
>> It's strange that would only have occurred after having changed the
>> LOG_LEVEL.  Could you please send us your configuration file?
>>
>> Thanks!
>>
>> Julie
>>
>> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
>> wrote:
>>
>> >
>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> >
>> > Hi Julie,
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
>> > filter -lookin
>> >
>> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
>> > libraries: libgsl.so.19: cannot open shared object file: No such
file or
>> > directory
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > -init_inc 20141201_00 -match_points true -dump_row
>> >
>> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
>> ract_tiles/20141201_00/
>> > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> >
>> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
such
>> > file or directory
>> >
>> >
>> > After I change the LOG_LEVEL, I ran the master_met_plus.py, it
says:
>> >
>> > [xinxia at chaos ush]$ python master_met_plus.py
>> >
>> > sh: run_tc_pairs.py: command not found
>> >
>> >
>> >
>> > Thanks,
>> >
>> >
>> > Xinxia
>> >
>> >
>> > ________________________________
>> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > Sent: Thursday, February 23, 2017 10:04:55 AM
>> > To: Xinxia_Song at outlook.com
>> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > constants_pdef
>> >
>> > Thank you.  Unfortunately, the level of detail in the log file
wasn't
>> what
>> > I hoped for.  I'd like to have you try two things.
>> >
>> > First, could you please send me your output of your manual run of
the
>> > following?
>> >
>> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
>> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
>> > -out_init_mask
>> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>> >
>> > Second, could you please change your log level in your
configuration
>> file
>> > from
>> >
>> > LOG_LEVEL = "INFO"
>> >
>> > to
>> >
>> > LOG_LEVEL = "DEBUG"
>> >
>> > then rerun and upload your log file to our ftp server again?
>> >
>> > Thank you!
>> >
>> > Julie
>> >
>> >
>> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu
>> >
>> > wrote:
>> >
>> > >
>> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > >
>> > > Hi Julie,
>> > >
>> > >
>> > > I uploaded the log file under xinxia_data directory.
>> > >
>> > >
>> > > Thanks,
>> > >
>> > >
>> > > Xinxia
>> > >
>> > >
>> > > ________________________________
>> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > Sent: Thursday, February 23, 2017 9:11:32 AM
>> > > To: Xinxia_Song at outlook.com
>> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > constants_pdef
>> > >
>> > > Hi Xinxia.
>> > >
>> > > I think it would be helpful if I could take a look at the log
file.
>> > Could
>> > > you please upload your file to our anonymous ftp site as
follows so
>> that
>> > I
>> > > can take a look?
>> > >
>> > >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
>> > >
>> > > Also, could you please try running the following manually and
send the
>> > > output to me?
>> > >
>> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
>> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
>> > > -out_init_mask
>> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>> > >
>> > > Thank you!
>> > >
>> > > Julie
>> > >
>> > >
>> > >
>> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
>> met_help at ucar.edu>
>> > > wrote:
>> > >
>> > > >
>> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
>> > > >
>> > > > Hi Julie,
>> > > >
>> > > >
>> > > > Now I can run the program, but when I look at the log file in
the
>> > output,
>> > > > it shows error below:
>> > > >
>> > > >
>> > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
>> > > calling
>> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> > -job
>> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> -init_inc
>> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
>> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > 2/share/met/poly/CONUS.poly
>> > > >
>> > > >
>> > > > How should I fix it?
>> > > >
>> > > >
>> > > > Thanks,
>> > > >
>> > > >
>> > > > Xinxia
>> > > >
>> > > > ________________________________
>> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
>> > > > To: Xinxia_Song at outlook.com
>> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > > constants_pdef
>> > > >
>> > > > Hi Xinxia.
>> > > >
>> > > > I believe that python doesn't know how to find the module
because
>> the
>> > ush
>> > > > directory is not in your PYTHONPATH.  Both the parm and ush
>> directory
>> > > need
>> > > > to be specified in your PYTHONPATH.  Please add the ush
directory to
>> > your
>> > > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
>> > > >
>> > > > Thanks,
>> > > > Julie
>> > > >
>> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
>> > met_help at ucar.edu>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > >
>> > > > > Hi Julie,
>> > > > >
>> > > > >
>> > > > > Since I don't have setenv, I added these 3 sentence into my
>> .bashrc
>> > > file:
>> > > > >
>> > > > >
>> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>> > > > >
>> > > > >
>> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
>> > > > >
>> > > > > export PATH=$USHROOT:$PATH
>> > > > >
>> > > > >
>> > > > > I sourced the ~/.bashrc, and checked that the variables are
set,
>> but
>> > > the
>> > > > > program still can't find the module.
>> > > > >
>> > > > >
>> > > > > Thanks,
>> > > > >
>> > > > > Xinxia
>> > > > >
>> > > > > ________________________________
>> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
>> > > > > To: Xinxia_Song at outlook.com
>> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > constants_pdef
>> > > > >
>> > > > > Hi Xinxia.
>> > > > >
>> > > > > Could you please check to make sure that the ush directory
with
>> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc file
(or
>> > .bashrc
>> > > > or
>> > > > > similar file)?  The parm directory should also be in your
>> PYTHONPATH.
>> > > > >
>> > > > > For example,
>> > > > >
>> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
>> > > > d1/jpresto/sbu/METplus/parm
>> > > > >
>> > > > > Please also check make sure that the path to the ush
directory is
>> > also
>> > > > > specified your your path environment variable.  For
example,
>> > > > >
>> > > > > set path = (/usr/local/bin \
>> > > > >                  /usr/local/python/bin/python \
>> > > > >                  /d1/jpresto/sbu/METplus/ush )
>> > > > >
>> > > > > If they are not there, please add them and then source the
file
>> (e.g.
>> > > run
>> > > > > "source ~/.cshrc").
>> > > > >
>> > > > > Thank you!  Please let us know how it goes.
>> > > > >
>> > > > > Julie
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
>> > met_help at ucar.edu
>> > > >
>> > > > > wrote:
>> > > > >
>> > > > > >
>> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
>> > > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
>> > > > > >        Queue: met_help
>> > > > > >      Subject: ImportError: No module named constants_pdef
>> > > > > >        Owner: Nobody
>> > > > > >   Requestors: Xinxia_Song at outlook.com
>> > > > > >       Status: new
>> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
>> > > Ticket/Display.html?id=79605
>> > > > >
>> > > > > >
>> > > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > >
>> > > > > > When I ran the mater_met_plus.py, it says:
>> > > > > >
>> > > > > >
>> > > > > > ImportError: No module named constants_pdef
>> > > > > >
>> > > > > >
>> > > > > > Seems it doesn't recognize constants_pdef as its module.
>> > > > > >
>> > > > > >
>> > > > > > Thanks,
>> > > > > >
>> > > > > > Xinxia
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 11:06:11 2017

Hi Julie,


After I ran the long one line command:

[xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
filter_20141201_00.tcst  -basin ML -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly


DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412

ERROR  :

ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
*jobstring) -> unsupported job command options
"filter_20141201_00.tcst".

ERROR  :


And for the master_met_plus.py, I got the error:

[xinxia at chaos ush]$ python master_met_plus.py

sh: run_tc_pairs.py: command not found


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 7:42:21 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

My apologies, my response should have said, "By default, MET version
5.2 is
compiled using dynamic linking."  It's true for both, but I see you're
using 5.2 and I inadvertently referred to 5.1.

On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <jpresto at ucar.edu>
wrote:

> Hi Xinxia.  Regarding the error:
>
> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> directory
>
> By default, MET version 5.1 is compiled using dynamic linking.
Rather
> than compiling the external library code in with the MET executables
(which
> is
> called static linking), it looks for them at runtime.  And it's
looking
> for those "shared object" (.so) library files.
>
> This should be easy to fix. We just need to tell it where to find
them,
> and we do that by setting (or adding to the LD_LIBRARY_PATH).  Look
in your
> ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there, add
the
> path to the libgsl.so.19 to the end of it.  If not, add an
> LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example, if
the path
> to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/external_libs/GSL/gsl-1.16/lib
> you would add teh following to your ~/.bashrc file:
>
>   export LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> gsl-1.16/lib
>
> Then save the change and source that file:
>
>   source ~/.bashrc
>
> Then, please try rerunning the command manually and let me know if
it
> works.
>
> I believe that this was the cause of the initial error you received
from
> MET+:
>
> ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
>
> Thanks,
> Julie
>
> On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>>
>> Hi Julie,
>>
>>
>> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
>> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> filter_20141201_00.tcst  -basin ML -out_init_mask
>> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>>
>> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
>> libraries: libgsl.so.19: cannot open shared object file: No such
file or
>> directory
>>
>>
>> And I uploaded the configuration file (constants_pdef.py) under
>> xinxia_data directory.
>>
>>
>> Thanks,
>>
>>
>> Xinxia
>>
>> ________________________________
>> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> Sent: Friday, February 24, 2017 6:15:57 AM
>> To: Xinxia_Song at outlook.com
>> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
>> constants_pdef
>>
>> Hi Xinxia.
>>
>> I can see that your command, which should have been all on one
line, was
>> broken up into several lines.  Please try running the command
again,
>> making
>> sure that the entire command is on one line:
>>
>> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc 20141201_00
>> -match_points true -dump_row
>> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> filter_20141201_00.tcst  -basin ML -out_init_mask
>> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>>
>> Then, please send the output from that command.
>>
>> Regarding, your error:
>>
>> sh: run_tc_pairs.py: command not found
>>
>> It's strange that would only have occurred after having changed the
>> LOG_LEVEL.  Could you please send us your configuration file?
>>
>> Thanks!
>>
>> Julie
>>
>> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
>> wrote:
>>
>> >
>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> >
>> > Hi Julie,
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
>> > filter -lookin
>> >
>> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
>> > libraries: libgsl.so.19: cannot open shared object file: No such
file or
>> > directory
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > -init_inc 20141201_00 -match_points true -dump_row
>> >
>> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
>> >
>> >
>> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
>> ract_tiles/20141201_00/
>> > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> >
>> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
such
>> > file or directory
>> >
>> >
>> > After I change the LOG_LEVEL, I ran the master_met_plus.py, it
says:
>> >
>> > [xinxia at chaos ush]$ python master_met_plus.py
>> >
>> > sh: run_tc_pairs.py: command not found
>> >
>> >
>> >
>> > Thanks,
>> >
>> >
>> > Xinxia
>> >
>> >
>> > ________________________________
>> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > Sent: Thursday, February 23, 2017 10:04:55 AM
>> > To: Xinxia_Song at outlook.com
>> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > constants_pdef
>> >
>> > Thank you.  Unfortunately, the level of detail in the log file
wasn't
>> what
>> > I hoped for.  I'd like to have you try two things.
>> >
>> > First, could you please send me your output of your manual run of
the
>> > following?
>> >
>> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
>> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
>> > -out_init_mask
>> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>> >
>> > Second, could you please change your log level in your
configuration
>> file
>> > from
>> >
>> > LOG_LEVEL = "INFO"
>> >
>> > to
>> >
>> > LOG_LEVEL = "DEBUG"
>> >
>> > then rerun and upload your log file to our ftp server again?
>> >
>> > Thank you!
>> >
>> > Julie
>> >
>> >
>> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<met_help at ucar.edu
>> >
>> > wrote:
>> >
>> > >
>> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > >
>> > > Hi Julie,
>> > >
>> > >
>> > > I uploaded the log file under xinxia_data directory.
>> > >
>> > >
>> > > Thanks,
>> > >
>> > >
>> > > Xinxia
>> > >
>> > >
>> > > ________________________________
>> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > Sent: Thursday, February 23, 2017 9:11:32 AM
>> > > To: Xinxia_Song at outlook.com
>> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > constants_pdef
>> > >
>> > > Hi Xinxia.
>> > >
>> > > I think it would be helpful if I could take a look at the log
file.
>> > Could
>> > > you please upload your file to our anonymous ftp site as
follows so
>> that
>> > I
>> > > can take a look?
>> > >
>> > >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
>> > >
>> > > Also, could you please try running the following manually and
send the
>> > > output to me?
>> > >
>> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
>> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
>> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
>> > > -out_init_mask
>> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
>> > >
>> > > Thank you!
>> > >
>> > > Julie
>> > >
>> > >
>> > >
>> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
>> met_help at ucar.edu>
>> > > wrote:
>> > >
>> > > >
>> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
>> > > >
>> > > > Hi Julie,
>> > > >
>> > > >
>> > > > Now I can run the program, but when I look at the log file in
the
>> > output,
>> > > > it shows error below:
>> > > >
>> > > >
>> > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
>> > > calling
>> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> > -job
>> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> -init_inc
>> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
>> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > 2/share/met/poly/CONUS.poly
>> > > >
>> > > >
>> > > > How should I fix it?
>> > > >
>> > > >
>> > > > Thanks,
>> > > >
>> > > >
>> > > > Xinxia
>> > > >
>> > > > ________________________________
>> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
>> > > > To: Xinxia_Song at outlook.com
>> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > > constants_pdef
>> > > >
>> > > > Hi Xinxia.
>> > > >
>> > > > I believe that python doesn't know how to find the module
because
>> the
>> > ush
>> > > > directory is not in your PYTHONPATH.  Both the parm and ush
>> directory
>> > > need
>> > > > to be specified in your PYTHONPATH.  Please add the ush
directory to
>> > your
>> > > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
>> > > >
>> > > > Thanks,
>> > > > Julie
>> > > >
>> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
>> > met_help at ucar.edu>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > >
>> > > > > Hi Julie,
>> > > > >
>> > > > >
>> > > > > Since I don't have setenv, I added these 3 sentence into my
>> .bashrc
>> > > file:
>> > > > >
>> > > > >
>> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>> > > > >
>> > > > >
>> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
>> > > > >
>> > > > > export PATH=$USHROOT:$PATH
>> > > > >
>> > > > >
>> > > > > I sourced the ~/.bashrc, and checked that the variables are
set,
>> but
>> > > the
>> > > > > program still can't find the module.
>> > > > >
>> > > > >
>> > > > > Thanks,
>> > > > >
>> > > > > Xinxia
>> > > > >
>> > > > > ________________________________
>> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
>> > > > > To: Xinxia_Song at outlook.com
>> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > constants_pdef
>> > > > >
>> > > > > Hi Xinxia.
>> > > > >
>> > > > > Could you please check to make sure that the ush directory
with
>> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc file
(or
>> > .bashrc
>> > > > or
>> > > > > similar file)?  The parm directory should also be in your
>> PYTHONPATH.
>> > > > >
>> > > > > For example,
>> > > > >
>> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
>> > > > d1/jpresto/sbu/METplus/parm
>> > > > >
>> > > > > Please also check make sure that the path to the ush
directory is
>> > also
>> > > > > specified your your path environment variable.  For
example,
>> > > > >
>> > > > > set path = (/usr/local/bin \
>> > > > >                  /usr/local/python/bin/python \
>> > > > >                  /d1/jpresto/sbu/METplus/ush )
>> > > > >
>> > > > > If they are not there, please add them and then source the
file
>> (e.g.
>> > > run
>> > > > > "source ~/.cshrc").
>> > > > >
>> > > > > Thank you!  Please let us know how it goes.
>> > > > >
>> > > > > Julie
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
>> > met_help at ucar.edu
>> > > >
>> > > > > wrote:
>> > > > >
>> > > > > >
>> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
>> > > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
>> > > > > >        Queue: met_help
>> > > > > >      Subject: ImportError: No module named constants_pdef
>> > > > > >        Owner: Nobody
>> > > > > >   Requestors: Xinxia_Song at outlook.com
>> > > > > >       Status: new
>> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
>> > > Ticket/Display.html?id=79605
>> > > > >
>> > > > > >
>> > > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > >
>> > > > > > When I ran the mater_met_plus.py, it says:
>> > > > > >
>> > > > > >
>> > > > > > ImportError: No module named constants_pdef
>> > > > > >
>> > > > > >
>> > > > > > Seems it doesn't recognize constants_pdef as its module.
>> > > > > >
>> > > > > >
>> > > > > > Thanks,
>> > > > > >
>> > > > > > Xinxia
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 11:30:00 2017

Hi Xinxia.

It looks like there is a space where there should not be a space
(between
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
filter_20141201_00.tcst after the -dump_row option).

Could you please try it again without the space?

/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling MET
TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
-lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

Regarding the master_met_plus.py run, please try running the following
two
commands and send me the output:

which run_tc_pairs.py

which python

Thanks!

Julie

On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> After I ran the long one line command:
>
> [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
>
> DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>
> ERROR  :
>
> ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> *jobstring) -> unsupported job command options
"filter_20141201_00.tcst".
>
> ERROR  :
>
>
> And for the master_met_plus.py, I got the error:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> sh: run_tc_pairs.py: command not found
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 7:42:21 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> My apologies, my response should have said, "By default, MET version
5.2 is
> compiled using dynamic linking."  It's true for both, but I see
you're
> using 5.2 and I inadvertently referred to 5.1.
>
> On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> wrote:
>
> > Hi Xinxia.  Regarding the error:
> >
> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> > libraries: libgsl.so.19: cannot open shared object file: No such
file or
> > directory
> >
> > By default, MET version 5.1 is compiled using dynamic linking.
Rather
> > than compiling the external library code in with the MET
executables
> (which
> > is
> > called static linking), it looks for them at runtime.  And it's
looking
> > for those "shared object" (.so) library files.
> >
> > This should be easy to fix. We just need to tell it where to find
them,
> > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look in
> your
> > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there,
add the
> > path to the libgsl.so.19 to the end of it.  If not, add an
> > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example, if
the
> path
> > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> l_libs/GSL/gsl-1.16/lib
> > you would add teh following to your ~/.bashrc file:
> >
> >   export LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > gsl-1.16/lib
> >
> > Then save the change and source that file:
> >
> >   source ~/.bashrc
> >
> > Then, please try rerunning the command manually and let me know if
it
> > works.
> >
> > I believe that this was the cause of the initial error you
received from
> > MET+:
> >
> > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> calling
> > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> >
> > Thanks,
> > Julie
> >
> > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >>
> >> Hi Julie,
> >>
> >>
> >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/
> >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >>
> >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> >> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> >> directory
> >>
> >>
> >> And I uploaded the configuration file (constants_pdef.py) under
> >> xinxia_data directory.
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Xinxia
> >>
> >> ________________________________
> >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> Sent: Friday, February 24, 2017 6:15:57 AM
> >> To: Xinxia_Song at outlook.com
> >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> constants_pdef
> >>
> >> Hi Xinxia.
> >>
> >> I can see that your command, which should have been all on one
line, was
> >> broken up into several lines.  Please try running the command
again,
> >> making
> >> sure that the entire command is on one line:
> >>
> >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> -match_points true -dump_row
> >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >>
> >> Then, please send the output from that command.
> >>
> >> Regarding, your error:
> >>
> >> sh: run_tc_pairs.py: command not found
> >>
> >> It's strange that would only have occurred after having changed
the
> >> LOG_LEVEL.  Could you please send us your configuration file?
> >>
> >> Thanks!
> >>
> >> Julie
> >>
> >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
> >> wrote:
> >>
> >> >
> >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> >
> >> > Hi Julie,
> >> >
> >> >
> >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> >> > filter -lookin
> >> >
> >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
> shared
> >> > libraries: libgsl.so.19: cannot open shared object file: No
such file
> or
> >> > directory
> >> >
> >> >
> >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > -init_inc 20141201_00 -match_points true -dump_row
> >> >
> >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
> >> >
> >> >
> >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> >> ract_tiles/20141201_00/
> >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >> >
> >> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
No such
> >> > file or directory
> >> >
> >> >
> >> > After I change the LOG_LEVEL, I ran the master_met_plus.py, it
says:
> >> >
> >> > [xinxia at chaos ush]$ python master_met_plus.py
> >> >
> >> > sh: run_tc_pairs.py: command not found
> >> >
> >> >
> >> >
> >> > Thanks,
> >> >
> >> >
> >> > Xinxia
> >> >
> >> >
> >> > ________________________________
> >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> >> > To: Xinxia_Song at outlook.com
> >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > constants_pdef
> >> >
> >> > Thank you.  Unfortunately, the level of detail in the log file
wasn't
> >> what
> >> > I hoped for.  I'd like to have you try two things.
> >> >
> >> > First, could you please send me your output of your manual run
of the
> >> > following?
> >> >
> >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> >> > -out_init_mask
> >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >> >
> >> > Second, could you please change your log level in your
configuration
> >> file
> >> > from
> >> >
> >> > LOG_LEVEL = "INFO"
> >> >
> >> > to
> >> >
> >> > LOG_LEVEL = "DEBUG"
> >> >
> >> > then rerun and upload your log file to our ftp server again?
> >> >
> >> > Thank you!
> >> >
> >> > Julie
> >> >
> >> >
> >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> met_help at ucar.edu
> >> >
> >> > wrote:
> >> >
> >> > >
> >> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> >> > >
> >> > > Hi Julie,
> >> > >
> >> > >
> >> > > I uploaded the log file under xinxia_data directory.
> >> > >
> >> > >
> >> > > Thanks,
> >> > >
> >> > >
> >> > > Xinxia
> >> > >
> >> > >
> >> > > ________________________________
> >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> >> > > To: Xinxia_Song at outlook.com
> >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > > constants_pdef
> >> > >
> >> > > Hi Xinxia.
> >> > >
> >> > > I think it would be helpful if I could take a look at the log
file.
> >> > Could
> >> > > you please upload your file to our anonymous ftp site as
follows so
> >> that
> >> > I
> >> > > can take a look?
> >> > >
> >> > >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
> >> > >
> >> > > Also, could you please try running the following manually and
send
> the
> >> > > output to me?
> >> > >
> >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> >> > > -out_init_mask
> >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >> > >
> >> > > Thank you!
> >> > >
> >> > > Julie
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> >> met_help at ucar.edu>
> >> > > wrote:
> >> > >
> >> > > >
> >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > >
> >> > > > Hi Julie,
> >> > > >
> >> > > >
> >> > > > Now I can run the program, but when I look at the log file
in the
> >> > output,
> >> > > > it shows error below:
> >> > > >
> >> > > >
> >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> >> > > calling
> >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> /met-5.2/bin/tc_stat
> >> > -job
> >> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> -init_inc
> >> > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > 2/share/met/poly/CONUS.poly
> >> > > >
> >> > > >
> >> > > > How should I fix it?
> >> > > >
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > >
> >> > > > Xinxia
> >> > > >
> >> > > > ________________________________
> >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> >> > > > To: Xinxia_Song at outlook.com
> >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> >> > > > constants_pdef
> >> > > >
> >> > > > Hi Xinxia.
> >> > > >
> >> > > > I believe that python doesn't know how to find the module
because
> >> the
> >> > ush
> >> > > > directory is not in your PYTHONPATH.  Both the parm and ush
> >> directory
> >> > > need
> >> > > > to be specified in your PYTHONPATH.  Please add the ush
directory
> to
> >> > your
> >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> >> > > >
> >> > > > Thanks,
> >> > > > Julie
> >> > > >
> >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> >> > met_help at ucar.edu>
> >> > > > wrote:
> >> > > >
> >> > > > >
> >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > > >
> >> > > > > Hi Julie,
> >> > > > >
> >> > > > >
> >> > > > > Since I don't have setenv, I added these 3 sentence into
my
> >> .bashrc
> >> > > file:
> >> > > > >
> >> > > > >
> >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> >> > > > >
> >> > > > >
> >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> >> > > > >
> >> > > > > export PATH=$USHROOT:$PATH
> >> > > > >
> >> > > > >
> >> > > > > I sourced the ~/.bashrc, and checked that the variables
are set,
> >> but
> >> > > the
> >> > > > > program still can't find the module.
> >> > > > >
> >> > > > >
> >> > > > > Thanks,
> >> > > > >
> >> > > > > Xinxia
> >> > > > >
> >> > > > > ________________________________
> >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > constants_pdef
> >> > > > >
> >> > > > > Hi Xinxia.
> >> > > > >
> >> > > > > Could you please check to make sure that the ush
directory with
> >> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc
file (or
> >> > .bashrc
> >> > > > or
> >> > > > > similar file)?  The parm directory should also be in your
> >> PYTHONPATH.
> >> > > > >
> >> > > > > For example,
> >> > > > >
> >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> >> > > > d1/jpresto/sbu/METplus/parm
> >> > > > >
> >> > > > > Please also check make sure that the path to the ush
directory
> is
> >> > also
> >> > > > > specified your your path environment variable.  For
example,
> >> > > > >
> >> > > > > set path = (/usr/local/bin \
> >> > > > >                  /usr/local/python/bin/python \
> >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> >> > > > >
> >> > > > > If they are not there, please add them and then source
the file
> >> (e.g.
> >> > > run
> >> > > > > "source ~/.cshrc").
> >> > > > >
> >> > > > > Thank you!  Please let us know how it goes.
> >> > > > >
> >> > > > > Julie
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> >> > met_help at ucar.edu
> >> > > >
> >> > > > > wrote:
> >> > > > >
> >> > > > > >
> >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> >> > > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> >> > > > > >        Queue: met_help
> >> > > > > >      Subject: ImportError: No module named
constants_pdef
> >> > > > > >        Owner: Nobody
> >> > > > > >   Requestors: Xinxia_Song at outlook.com
> >> > > > > >       Status: new
> >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> >> > > Ticket/Display.html?id=79605
> >> > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > Hi,
> >> > > > > >
> >> > > > > >
> >> > > > > > When I ran the mater_met_plus.py, it says:
> >> > > > > >
> >> > > > > >
> >> > > > > > ImportError: No module named constants_pdef
> >> > > > > >
> >> > > > > >
> >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> >> > > > > >
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > >
> >> > > > > > Xinxia
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 11:44:57 2017

Hi Julie,


I removed the space.

[xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly

DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412

DEBUG 2:

DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
20141201_000000 -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/filter_20141201_00.tcst

DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/filter_20141201_00.tcst

FILTER: -job filter -basin ML -init_inc 20141201_000000 -match_points
true -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/filter_20141201_00.tcst


DEBUG 2: Job 1 used 0 out of 27292 lines read.


Because I don't have the right, I can't find run_tc_pairs.py, but I
know it's under

/D2/xinxia/METplus/METplus/ush


For Python,

[xinxia at chaos ~]$ which python

/usr/bin/python


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 8:30:01 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

It looks like there is a space where there should not be a space
(between
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
filter_20141201_00.tcst after the -dump_row option).

Could you please try it again without the space?

/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling MET
TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
-lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
-match_points true -dump_row /D2/xinxia/METplus/MET/out/
extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
/D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly

Regarding the master_met_plus.py run, please try running the following
two
commands and send me the output:

which run_tc_pairs.py

which python

Thanks!

Julie

On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> After I ran the long one line command:
>
> [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst  -basin ML -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
>
> DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>
> ERROR  :
>
> ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> *jobstring) -> unsupported job command options
"filter_20141201_00.tcst".
>
> ERROR  :
>
>
> And for the master_met_plus.py, I got the error:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> sh: run_tc_pairs.py: command not found
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 7:42:21 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> My apologies, my response should have said, "By default, MET version
5.2 is
> compiled using dynamic linking."  It's true for both, but I see
you're
> using 5.2 and I inadvertently referred to 5.1.
>
> On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> wrote:
>
> > Hi Xinxia.  Regarding the error:
> >
> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> > libraries: libgsl.so.19: cannot open shared object file: No such
file or
> > directory
> >
> > By default, MET version 5.1 is compiled using dynamic linking.
Rather
> > than compiling the external library code in with the MET
executables
> (which
> > is
> > called static linking), it looks for them at runtime.  And it's
looking
> > for those "shared object" (.so) library files.
> >
> > This should be easy to fix. We just need to tell it where to find
them,
> > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look in
> your
> > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there,
add the
> > path to the libgsl.so.19 to the end of it.  If not, add an
> > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example, if
the
> path
> > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> l_libs/GSL/gsl-1.16/lib
> > you would add teh following to your ~/.bashrc file:
> >
> >   export LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > gsl-1.16/lib
> >
> > Then save the change and source that file:
> >
> >   source ~/.bashrc
> >
> > Then, please try rerunning the command manually and let me know if
it
> > works.
> >
> > I believe that this was the cause of the initial error you
received from
> > MET+:
> >
> > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> calling
> > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
-out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> >
> > Thanks,
> > Julie
> >
> > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >>
> >> Hi Julie,
> >>
> >>
> >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/
> >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >>
> >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> >> libraries: libgsl.so.19: cannot open shared object file: No such
file or
> >> directory
> >>
> >>
> >> And I uploaded the configuration file (constants_pdef.py) under
> >> xinxia_data directory.
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Xinxia
> >>
> >> ________________________________
> >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> Sent: Friday, February 24, 2017 6:15:57 AM
> >> To: Xinxia_Song at outlook.com
> >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> constants_pdef
> >>
> >> Hi Xinxia.
> >>
> >> I can see that your command, which should have been all on one
line, was
> >> broken up into several lines.  Please try running the command
again,
> >> making
> >> sure that the entire command is on one line:
> >>
> >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> -match_points true -dump_row
> >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >>
> >> Then, please send the output from that command.
> >>
> >> Regarding, your error:
> >>
> >> sh: run_tc_pairs.py: command not found
> >>
> >> It's strange that would only have occurred after having changed
the
> >> LOG_LEVEL.  Could you please send us your configuration file?
> >>
> >> Thanks!
> >>
> >> Julie
> >>
> >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<met_help at ucar.edu>
> >> wrote:
> >>
> >> >
> >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> >
> >> > Hi Julie,
> >> >
> >> >
> >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> >> > filter -lookin
> >> >
> >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
> shared
> >> > libraries: libgsl.so.19: cannot open shared object file: No
such file
> or
> >> > directory
> >> >
> >> >
> >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > -init_inc 20141201_00 -match_points true -dump_row
> >> >
> >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
> >> >
> >> >
> >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> >> ract_tiles/20141201_00/
> >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >> >
> >> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
No such
> >> > file or directory
> >> >
> >> >
> >> > After I change the LOG_LEVEL, I ran the master_met_plus.py, it
says:
> >> >
> >> > [xinxia at chaos ush]$ python master_met_plus.py
> >> >
> >> > sh: run_tc_pairs.py: command not found
> >> >
> >> >
> >> >
> >> > Thanks,
> >> >
> >> >
> >> > Xinxia
> >> >
> >> >
> >> > ________________________________
> >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> >> > To: Xinxia_Song at outlook.com
> >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > constants_pdef
> >> >
> >> > Thank you.  Unfortunately, the level of detail in the log file
wasn't
> >> what
> >> > I hoped for.  I'd like to have you try two things.
> >> >
> >> > First, could you please send me your output of your manual run
of the
> >> > following?
> >> >
> >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> >> > -out_init_mask
> >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >> >
> >> > Second, could you please change your log level in your
configuration
> >> file
> >> > from
> >> >
> >> > LOG_LEVEL = "INFO"
> >> >
> >> > to
> >> >
> >> > LOG_LEVEL = "DEBUG"
> >> >
> >> > then rerun and upload your log file to our ftp server again?
> >> >
> >> > Thank you!
> >> >
> >> > Julie
> >> >
> >> >
> >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> met_help at ucar.edu
> >> >
> >> > wrote:
> >> >
> >> > >
> >> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> >> > >
> >> > > Hi Julie,
> >> > >
> >> > >
> >> > > I uploaded the log file under xinxia_data directory.
> >> > >
> >> > >
> >> > > Thanks,
> >> > >
> >> > >
> >> > > Xinxia
> >> > >
> >> > >
> >> > > ________________________________
> >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> >> > > To: Xinxia_Song at outlook.com
> >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > > constants_pdef
> >> > >
> >> > > Hi Xinxia.
> >> > >
> >> > > I think it would be helpful if I could take a look at the log
file.
> >> > Could
> >> > > you please upload your file to our anonymous ftp site as
follows so
> >> that
> >> > I
> >> > > can take a look?
> >> > >
> >> > >    http://www.dtcenter.org/met/users/support/met_help.php#ftp
> >> > >
> >> > > Also, could you please try running the following manually and
send
> the
> >> > > output to me?
> >> > >
> >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> >> > > -out_init_mask
> >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> >> > >
> >> > > Thank you!
> >> > >
> >> > > Julie
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> >> met_help at ucar.edu>
> >> > > wrote:
> >> > >
> >> > > >
> >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > >
> >> > > > Hi Julie,
> >> > > >
> >> > > >
> >> > > > Now I can run the program, but when I look at the log file
in the
> >> > output,
> >> > > > it shows error below:
> >> > > >
> >> > > >
> >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
> >> > > calling
> >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> /met-5.2/bin/tc_stat
> >> > -job
> >> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> -init_inc
> >> > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > 2/share/met/poly/CONUS.poly
> >> > > >
> >> > > >
> >> > > > How should I fix it?
> >> > > >
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > >
> >> > > > Xinxia
> >> > > >
> >> > > > ________________________________
> >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> >> > > > To: Xinxia_Song at outlook.com
> >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> >> > > > constants_pdef
> >> > > >
> >> > > > Hi Xinxia.
> >> > > >
> >> > > > I believe that python doesn't know how to find the module
because
> >> the
> >> > ush
> >> > > > directory is not in your PYTHONPATH.  Both the parm and ush
> >> directory
> >> > > need
> >> > > > to be specified in your PYTHONPATH.  Please add the ush
directory
> to
> >> > your
> >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it goes.
> >> > > >
> >> > > > Thanks,
> >> > > > Julie
> >> > > >
> >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> >> > met_help at ucar.edu>
> >> > > > wrote:
> >> > > >
> >> > > > >
> >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > > >
> >> > > > > Hi Julie,
> >> > > > >
> >> > > > >
> >> > > > > Since I don't have setenv, I added these 3 sentence into
my
> >> .bashrc
> >> > > file:
> >> > > > >
> >> > > > >
> >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> >> > > > >
> >> > > > >
> >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> >> > > > >
> >> > > > > export PATH=$USHROOT:$PATH
> >> > > > >
> >> > > > >
> >> > > > > I sourced the ~/.bashrc, and checked that the variables
are set,
> >> but
> >> > > the
> >> > > > > program still can't find the module.
> >> > > > >
> >> > > > >
> >> > > > > Thanks,
> >> > > > >
> >> > > > > Xinxia
> >> > > > >
> >> > > > > ________________________________
> >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > constants_pdef
> >> > > > >
> >> > > > > Hi Xinxia.
> >> > > > >
> >> > > > > Could you please check to make sure that the ush
directory with
> >> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc
file (or
> >> > .bashrc
> >> > > > or
> >> > > > > similar file)?  The parm directory should also be in your
> >> PYTHONPATH.
> >> > > > >
> >> > > > > For example,
> >> > > > >
> >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> >> > > > d1/jpresto/sbu/METplus/parm
> >> > > > >
> >> > > > > Please also check make sure that the path to the ush
directory
> is
> >> > also
> >> > > > > specified your your path environment variable.  For
example,
> >> > > > >
> >> > > > > set path = (/usr/local/bin \
> >> > > > >                  /usr/local/python/bin/python \
> >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> >> > > > >
> >> > > > > If they are not there, please add them and then source
the file
> >> (e.g.
> >> > > run
> >> > > > > "source ~/.cshrc").
> >> > > > >
> >> > > > > Thank you!  Please let us know how it goes.
> >> > > > >
> >> > > > > Julie
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> >> > met_help at ucar.edu
> >> > > >
> >> > > > > wrote:
> >> > > > >
> >> > > > > >
> >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted upon.
> >> > > > > > Transaction: Ticket created by Xinxia_Song at outlook.com
> >> > > > > >        Queue: met_help
> >> > > > > >      Subject: ImportError: No module named
constants_pdef
> >> > > > > >        Owner: Nobody
> >> > > > > >   Requestors: Xinxia_Song at outlook.com
> >> > > > > >       Status: new
> >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> >> > > Ticket/Display.html?id=79605
> >> > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > Hi,
> >> > > > > >
> >> > > > > >
> >> > > > > > When I ran the mater_met_plus.py, it says:
> >> > > > > >
> >> > > > > >
> >> > > > > > ImportError: No module named constants_pdef
> >> > > > > >
> >> > > > > >
> >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> >> > > > > >
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > >
> >> > > > > > Xinxia
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 11:52:16 2017

Hi Xinxia.

It looks like you got a successful run of tc_stat - that's great news!

I'm not sure what you mean by "Because I don't have the right, I can't
find
run_tc_pairs.py, but I know it's under

/D2/xinxia/METplus/METplus/ush".

Can you please explain?  What happened when you ran "which
run_tc_pairs.py"?

Thanks,
Julie






On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I removed the space.
>
> [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>
> DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>
> DEBUG 2:
>
> DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
20141201_000000
> -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst
>
> DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst
>
> FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points true
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst
>
>
> DEBUG 2: Job 1 used 0 out of 27292 lines read.
>
>
> Because I don't have the right, I can't find run_tc_pairs.py, but I
know
> it's under
>
> /D2/xinxia/METplus/METplus/ush
>
>
> For Python,
>
> [xinxia at chaos ~]$ which python
>
> /usr/bin/python
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 8:30:01 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> It looks like there is a space where there should not be a space
(between
> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> filter_20141201_00.tcst after the -dump_row option).
>
> Could you please try it again without the space?
>
> /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling
MET
> TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter
> -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> Regarding the master_met_plus.py run, please try running the
following two
> commands and send me the output:
>
> which run_tc_pairs.py
>
> which python
>
> Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > After I ran the long one line command:
> >
> > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/
> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> >
> > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >
> > ERROR  :
> >
> > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> > *jobstring) -> unsupported job command options
"filter_20141201_00.tcst".
> >
> > ERROR  :
> >
> >
> > And for the master_met_plus.py, I got the error:
> >
> > [xinxia at chaos ush]$ python master_met_plus.py
> >
> > sh: run_tc_pairs.py: command not found
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 7:42:21 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > My apologies, my response should have said, "By default, MET
version 5.2
> is
> > compiled using dynamic linking."  It's true for both, but I see
you're
> > using 5.2 and I inadvertently referred to 5.1.
> >
> > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> > wrote:
> >
> > > Hi Xinxia.  Regarding the error:
> > >
> > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> > > libraries: libgsl.so.19: cannot open shared object file: No such
file
> or
> > > directory
> > >
> > > By default, MET version 5.1 is compiled using dynamic linking.
Rather
> > > than compiling the external library code in with the MET
executables
> > (which
> > > is
> > > called static linking), it looks for them at runtime.  And it's
looking
> > > for those "shared object" (.so) library files.
> > >
> > > This should be easy to fix. We just need to tell it where to
find them,
> > > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look in
> > your
> > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there,
add
> the
> > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example,
if the
> > path
> > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > l_libs/GSL/gsl-1.16/lib
> > > you would add teh following to your ~/.bashrc file:
> > >
> > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > gsl-1.16/lib
> > >
> > > Then save the change and source that file:
> > >
> > >   source ~/.bashrc
> > >
> > > Then, please try rerunning the command manually and let me know
if it
> > > works.
> > >
> > > I believe that this was the cause of the initial error you
received
> from
> > > MET+:
> > >
> > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > calling
> > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > >>
> > >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >>
> > >> Hi Julie,
> > >>
> > >>
> > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > >> 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/ext
> > ract_tiles/20141201_00/
> > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >>
> > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
> shared
> > >> libraries: libgsl.so.19: cannot open shared object file: No
such file
> or
> > >> directory
> > >>
> > >>
> > >> And I uploaded the configuration file (constants_pdef.py) under
> > >> xinxia_data directory.
> > >>
> > >>
> > >> Thanks,
> > >>
> > >>
> > >> Xinxia
> > >>
> > >> ________________________________
> > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > >> To: Xinxia_Song at outlook.com
> > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> constants_pdef
> > >>
> > >> Hi Xinxia.
> > >>
> > >> I can see that your command, which should have been all on one
line,
> was
> > >> broken up into several lines.  Please try running the command
again,
> > >> making
> > >> sure that the entire command is on one line:
> > >>
> > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > >> -match_points true -dump_row
> > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >>
> > >> Then, please send the output from that command.
> > >>
> > >> Regarding, your error:
> > >>
> > >> sh: run_tc_pairs.py: command not found
> > >>
> > >> It's strange that would only have occurred after having changed
the
> > >> LOG_LEVEL.  Could you please send us your configuration file?
> > >>
> > >> Thanks!
> > >>
> > >> Julie
> > >>
> > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> met_help at ucar.edu>
> > >> wrote:
> > >>
> > >> >
> > >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > >> >
> > >> > Hi Julie,
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > >> > filter -lookin
> > >> >
> > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > >> > libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > or
> > >> > directory
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> > -init_inc 20141201_00 -match_points true -dump_row
> > >> >
> > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > >> ract_tiles/20141201_00/
> > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >> >
> > >> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
No
> such
> > >> > file or directory
> > >> >
> > >> >
> > >> > After I change the LOG_LEVEL, I ran the master_met_plus.py,
it says:
> > >> >
> > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > >> >
> > >> > sh: run_tc_pairs.py: command not found
> > >> >
> > >> >
> > >> >
> > >> > Thanks,
> > >> >
> > >> >
> > >> > Xinxia
> > >> >
> > >> >
> > >> > ________________________________
> > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > >> > To: Xinxia_Song at outlook.com
> > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> > constants_pdef
> > >> >
> > >> > Thank you.  Unfortunately, the level of detail in the log
file
> wasn't
> > >> what
> > >> > I hoped for.  I'd like to have you try two things.
> > >> >
> > >> > First, could you please send me your output of your manual
run of
> the
> > >> > following?
> > >> >
> > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> > >> > -out_init_mask
> > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > >> >
> > >> > Second, could you please change your log level in your
configuration
> > >> file
> > >> > from
> > >> >
> > >> > LOG_LEVEL = "INFO"
> > >> >
> > >> > to
> > >> >
> > >> > LOG_LEVEL = "DEBUG"
> > >> >
> > >> > then rerun and upload your log file to our ftp server again?
> > >> >
> > >> > Thank you!
> > >> >
> > >> > Julie
> > >> >
> > >> >
> > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > met_help at ucar.edu
> > >> >
> > >> > wrote:
> > >> >
> > >> > >
> > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > >
> > >> > > Hi Julie,
> > >> > >
> > >> > >
> > >> > > I uploaded the log file under xinxia_data directory.
> > >> > >
> > >> > >
> > >> > > Thanks,
> > >> > >
> > >> > >
> > >> > > Xinxia
> > >> > >
> > >> > >
> > >> > > ________________________________
> > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > >> > > To: Xinxia_Song at outlook.com
> > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > >> > > constants_pdef
> > >> > >
> > >> > > Hi Xinxia.
> > >> > >
> > >> > > I think it would be helpful if I could take a look at the
log
> file.
> > >> > Could
> > >> > > you please upload your file to our anonymous ftp site as
follows
> so
> > >> that
> > >> > I
> > >> > > can take a look?
> > >> > >
> > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > >> > >
> > >> > > Also, could you please try running the following manually
and send
> > the
> > >> > > output to me?
> > >> > >
> > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > >> > > -out_init_mask
> > >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > >> > >
> > >> > > Thank you!
> > >> > >
> > >> > > Julie
> > >> > >
> > >> > >
> > >> > >
> > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > >> met_help at ucar.edu>
> > >> > > wrote:
> > >> > >
> > >> > > >
> > >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > > >
> > >> > > > Hi Julie,
> > >> > > >
> > >> > > >
> > >> > > > Now I can run the program, but when I look at the log
file in
> the
> > >> > output,
> > >> > > > it shows error below:
> > >> > > >
> > >> > > >
> > >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> from
> > >> > > calling
> > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > /met-5.2/bin/tc_stat
> > >> > -job
> > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> -init_inc
> > >> > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/
> > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > >> > 2/share/met/poly/CONUS.poly
> > >> > > >
> > >> > > >
> > >> > > > How should I fix it?
> > >> > > >
> > >> > > >
> > >> > > > Thanks,
> > >> > > >
> > >> > > >
> > >> > > > Xinxia
> > >> > > >
> > >> > > > ________________________________
> > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > >> > > > To: Xinxia_Song at outlook.com
> > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > >> > > > constants_pdef
> > >> > > >
> > >> > > > Hi Xinxia.
> > >> > > >
> > >> > > > I believe that python doesn't know how to find the module
> because
> > >> the
> > >> > ush
> > >> > > > directory is not in your PYTHONPATH.  Both the parm and
ush
> > >> directory
> > >> > > need
> > >> > > > to be specified in your PYTHONPATH.  Please add the ush
> directory
> > to
> > >> > your
> > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > >> > > >
> > >> > > > Thanks,
> > >> > > > Julie
> > >> > > >
> > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> > >> > met_help at ucar.edu>
> > >> > > > wrote:
> > >> > > >
> > >> > > > >
> > >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > >> > > > >
> > >> > > > > Hi Julie,
> > >> > > > >
> > >> > > > >
> > >> > > > > Since I don't have setenv, I added these 3 sentence
into my
> > >> .bashrc
> > >> > > file:
> > >> > > > >
> > >> > > > >
> > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > >> > > > >
> > >> > > > >
> > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > >> > > > >
> > >> > > > > export PATH=$USHROOT:$PATH
> > >> > > > >
> > >> > > > >
> > >> > > > > I sourced the ~/.bashrc, and checked that the variables
are
> set,
> > >> but
> > >> > > the
> > >> > > > > program still can't find the module.
> > >> > > > >
> > >> > > > >
> > >> > > > > Thanks,
> > >> > > > >
> > >> > > > > Xinxia
> > >> > > > >
> > >> > > > > ________________________________
> > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > >> > > > > To: Xinxia_Song at outlook.com
> > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > >> named
> > >> > > > > constants_pdef
> > >> > > > >
> > >> > > > > Hi Xinxia.
> > >> > > > >
> > >> > > > > Could you please check to make sure that the ush
directory
> with
> > >> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc
file
> (or
> > >> > .bashrc
> > >> > > > or
> > >> > > > > similar file)?  The parm directory should also be in
your
> > >> PYTHONPATH.
> > >> > > > >
> > >> > > > > For example,
> > >> > > > >
> > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > >> > > > d1/jpresto/sbu/METplus/parm
> > >> > > > >
> > >> > > > > Please also check make sure that the path to the ush
directory
> > is
> > >> > also
> > >> > > > > specified your your path environment variable.  For
example,
> > >> > > > >
> > >> > > > > set path = (/usr/local/bin \
> > >> > > > >                  /usr/local/python/bin/python \
> > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > >> > > > >
> > >> > > > > If they are not there, please add them and then source
the
> file
> > >> (e.g.
> > >> > > run
> > >> > > > > "source ~/.cshrc").
> > >> > > > >
> > >> > > > > Thank you!  Please let us know how it goes.
> > >> > > > >
> > >> > > > > Julie
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> > >> > met_help at ucar.edu
> > >> > > >
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > >
> > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > >> > > > > >        Queue: met_help
> > >> > > > > >      Subject: ImportError: No module named
constants_pdef
> > >> > > > > >        Owner: Nobody
> > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > >> > > > > >       Status: new
> > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > >> > > Ticket/Display.html?id=79605
> > >> > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Hi,
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > When I ran the mater_met_plus.py, it says:
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > ImportError: No module named constants_pdef
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Thanks,
> > >> > > > > >
> > >> > > > > > Xinxia
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 11:55:51 2017

Hi Julie,


I'm running met in a machine that's owned by our department, I don't
have sudo right, so when I type which run_tc_pairs.py, it says
couldn't find it.

no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-
soft/bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-
soft/bin:/opt/ncl/bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/opt/ncl/bin:/opt/intel-
soft/bin:/opt/ncl/bin:/usr/lib64/qt-
3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/environment-
modules/3.2.10/bin:/home/xinxia/bin:/opt/ncl-621/bin)


But I could find it manually in that directory.


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 8:52:16 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.

It looks like you got a successful run of tc_stat - that's great news!

I'm not sure what you mean by "Because I don't have the right, I can't
find
run_tc_pairs.py, but I know it's under

/D2/xinxia/METplus/METplus/ush".

Can you please explain?  What happened when you ran "which
run_tc_pairs.py"?

Thanks,
Julie






On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I removed the space.
>
> [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> 20141201_00 -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>
> DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>
> DEBUG 2:
>
> DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
20141201_000000
> -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst
>
> DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst
>
> FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points true
> -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> filter_20141201_00.tcst
>
>
> DEBUG 2: Job 1 used 0 out of 27292 lines read.
>
>
> Because I don't have the right, I can't find run_tc_pairs.py, but I
know
> it's under
>
> /D2/xinxia/METplus/METplus/ush
>
>
> For Python,
>
> [xinxia at chaos ~]$ which python
>
> /usr/bin/python
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 8:30:01 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> It looks like there is a space where there should not be a space
(between
> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> filter_20141201_00.tcst after the -dump_row option).
>
> Could you please try it again without the space?
>
> /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling
MET
> TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter
> -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>
> Regarding the master_met_plus.py run, please try running the
following two
> commands and send me the output:
>
> which run_tc_pairs.py
>
> which python
>
> Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > After I ran the long one line command:
> >
> > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/
> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> >
> > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >
> > ERROR  :
> >
> > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> > *jobstring) -> unsupported job command options
"filter_20141201_00.tcst".
> >
> > ERROR  :
> >
> >
> > And for the master_met_plus.py, I got the error:
> >
> > [xinxia at chaos ush]$ python master_met_plus.py
> >
> > sh: run_tc_pairs.py: command not found
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 7:42:21 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > My apologies, my response should have said, "By default, MET
version 5.2
> is
> > compiled using dynamic linking."  It's true for both, but I see
you're
> > using 5.2 and I inadvertently referred to 5.1.
> >
> > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> > wrote:
> >
> > > Hi Xinxia.  Regarding the error:
> > >
> > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
shared
> > > libraries: libgsl.so.19: cannot open shared object file: No such
file
> or
> > > directory
> > >
> > > By default, MET version 5.1 is compiled using dynamic linking.
Rather
> > > than compiling the external library code in with the MET
executables
> > (which
> > > is
> > > called static linking), it looks for them at runtime.  And it's
looking
> > > for those "shared object" (.so) library files.
> > >
> > > This should be easy to fix. We just need to tell it where to
find them,
> > > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look in
> > your
> > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in there,
add
> the
> > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for example,
if the
> > path
> > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > l_libs/GSL/gsl-1.16/lib
> > > you would add teh following to your ~/.bashrc file:
> > >
> > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > gsl-1.16/lib
> > >
> > > Then save the change and source that file:
> > >
> > >   source ~/.bashrc
> > >
> > > Then, please try rerunning the command manually and let me know
if it
> > > works.
> > >
> > > I believe that this was the cause of the initial error you
received
> from
> > > MET+:
> > >
> > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > calling
> > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/ext
> > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > >>
> > >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >>
> > >> Hi Julie,
> > >>
> > >>
> > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > >> 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/ext
> > ract_tiles/20141201_00/
> > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >>
> > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while loading
> shared
> > >> libraries: libgsl.so.19: cannot open shared object file: No
such file
> or
> > >> directory
> > >>
> > >>
> > >> And I uploaded the configuration file (constants_pdef.py) under
> > >> xinxia_data directory.
> > >>
> > >>
> > >> Thanks,
> > >>
> > >>
> > >> Xinxia
> > >>
> > >> ________________________________
> > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > >> To: Xinxia_Song at outlook.com
> > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> constants_pdef
> > >>
> > >> Hi Xinxia.
> > >>
> > >> I can see that your command, which should have been all on one
line,
> was
> > >> broken up into several lines.  Please try running the command
again,
> > >> making
> > >> sure that the entire command is on one line:
> > >>
> > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter -lookin
> > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > >> -match_points true -dump_row
> > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >>
> > >> Then, please send the output from that command.
> > >>
> > >> Regarding, your error:
> > >>
> > >> sh: run_tc_pairs.py: command not found
> > >>
> > >> It's strange that would only have occurred after having changed
the
> > >> LOG_LEVEL.  Could you please send us your configuration file?
> > >>
> > >> Thanks!
> > >>
> > >> Julie
> > >>
> > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> met_help at ucar.edu>
> > >> wrote:
> > >>
> > >> >
> > >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > >> >
> > >> > Hi Julie,
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > >> > filter -lookin
> > >> >
> > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > >> > libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > or
> > >> > directory
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> > -init_inc 20141201_00 -match_points true -dump_row
> > >> >
> > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
directory
> > >> >
> > >> >
> > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > >> ract_tiles/20141201_00/
> > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >> >
> > >> > -bash: /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
No
> such
> > >> > file or directory
> > >> >
> > >> >
> > >> > After I change the LOG_LEVEL, I ran the master_met_plus.py,
it says:
> > >> >
> > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > >> >
> > >> > sh: run_tc_pairs.py: command not found
> > >> >
> > >> >
> > >> >
> > >> > Thanks,
> > >> >
> > >> >
> > >> > Xinxia
> > >> >
> > >> >
> > >> > ________________________________
> > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > >> > To: Xinxia_Song at outlook.com
> > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> > constants_pdef
> > >> >
> > >> > Thank you.  Unfortunately, the level of detail in the log
file
> wasn't
> > >> what
> > >> > I hoped for.  I'd like to have you try two things.
> > >> >
> > >> > First, could you please send me your output of your manual
run of
> the
> > >> > following?
> > >> >
> > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin ML
> > >> > -out_init_mask
> > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > >> >
> > >> > Second, could you please change your log level in your
configuration
> > >> file
> > >> > from
> > >> >
> > >> > LOG_LEVEL = "INFO"
> > >> >
> > >> > to
> > >> >
> > >> > LOG_LEVEL = "DEBUG"
> > >> >
> > >> > then rerun and upload your log file to our ftp server again?
> > >> >
> > >> > Thank you!
> > >> >
> > >> > Julie
> > >> >
> > >> >
> > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > met_help at ucar.edu
> > >> >
> > >> > wrote:
> > >> >
> > >> > >
> > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > >
> > >> > > Hi Julie,
> > >> > >
> > >> > >
> > >> > > I uploaded the log file under xinxia_data directory.
> > >> > >
> > >> > >
> > >> > > Thanks,
> > >> > >
> > >> > >
> > >> > > Xinxia
> > >> > >
> > >> > >
> > >> > > ________________________________
> > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > >> > > To: Xinxia_Song at outlook.com
> > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > >> > > constants_pdef
> > >> > >
> > >> > > Hi Xinxia.
> > >> > >
> > >> > > I think it would be helpful if I could take a look at the
log
> file.
> > >> > Could
> > >> > > you please upload your file to our anonymous ftp site as
follows
> so
> > >> that
> > >> > I
> > >> > > can take a look?
> > >> > >
> > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > >> > >
> > >> > > Also, could you please try running the following manually
and send
> > the
> > >> > > output to me?
> > >> > >
> > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > >> > > -out_init_mask
> > >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > >> > >
> > >> > > Thank you!
> > >> > >
> > >> > > Julie
> > >> > >
> > >> > >
> > >> > >
> > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > >> met_help at ucar.edu>
> > >> > > wrote:
> > >> > >
> > >> > > >
> > >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > > >
> > >> > > > Hi Julie,
> > >> > > >
> > >> > > >
> > >> > > > Now I can run the program, but when I look at the log
file in
> the
> > >> > output,
> > >> > > > it shows error below:
> > >> > > >
> > >> > > >
> > >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> from
> > >> > > calling
> > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > /met-5.2/bin/tc_stat
> > >> > -job
> > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> -init_inc
> > >> > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/
> > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > >> > 2/share/met/poly/CONUS.poly
> > >> > > >
> > >> > > >
> > >> > > > How should I fix it?
> > >> > > >
> > >> > > >
> > >> > > > Thanks,
> > >> > > >
> > >> > > >
> > >> > > > Xinxia
> > >> > > >
> > >> > > > ________________________________
> > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > >> > > > To: Xinxia_Song at outlook.com
> > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > >> > > > constants_pdef
> > >> > > >
> > >> > > > Hi Xinxia.
> > >> > > >
> > >> > > > I believe that python doesn't know how to find the module
> because
> > >> the
> > >> > ush
> > >> > > > directory is not in your PYTHONPATH.  Both the parm and
ush
> > >> directory
> > >> > > need
> > >> > > > to be specified in your PYTHONPATH.  Please add the ush
> directory
> > to
> > >> > your
> > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > >> > > >
> > >> > > > Thanks,
> > >> > > > Julie
> > >> > > >
> > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> > >> > met_help at ucar.edu>
> > >> > > > wrote:
> > >> > > >
> > >> > > > >
> > >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > >> > > > >
> > >> > > > > Hi Julie,
> > >> > > > >
> > >> > > > >
> > >> > > > > Since I don't have setenv, I added these 3 sentence
into my
> > >> .bashrc
> > >> > > file:
> > >> > > > >
> > >> > > > >
> > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > >> > > > >
> > >> > > > >
> > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > >> > > > >
> > >> > > > > export PATH=$USHROOT:$PATH
> > >> > > > >
> > >> > > > >
> > >> > > > > I sourced the ~/.bashrc, and checked that the variables
are
> set,
> > >> but
> > >> > > the
> > >> > > > > program still can't find the module.
> > >> > > > >
> > >> > > > >
> > >> > > > > Thanks,
> > >> > > > >
> > >> > > > > Xinxia
> > >> > > > >
> > >> > > > > ________________________________
> > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > >> > > > > To: Xinxia_Song at outlook.com
> > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > >> named
> > >> > > > > constants_pdef
> > >> > > > >
> > >> > > > > Hi Xinxia.
> > >> > > > >
> > >> > > > > Could you please check to make sure that the ush
directory
> with
> > >> > > > > constants_pdef.py is in your PYTHONPATH in your .cshrc
file
> (or
> > >> > .bashrc
> > >> > > > or
> > >> > > > > similar file)?  The parm directory should also be in
your
> > >> PYTHONPATH.
> > >> > > > >
> > >> > > > > For example,
> > >> > > > >
> > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > >> > > > d1/jpresto/sbu/METplus/parm
> > >> > > > >
> > >> > > > > Please also check make sure that the path to the ush
directory
> > is
> > >> > also
> > >> > > > > specified your your path environment variable.  For
example,
> > >> > > > >
> > >> > > > > set path = (/usr/local/bin \
> > >> > > > >                  /usr/local/python/bin/python \
> > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > >> > > > >
> > >> > > > > If they are not there, please add them and then source
the
> file
> > >> (e.g.
> > >> > > run
> > >> > > > > "source ~/.cshrc").
> > >> > > > >
> > >> > > > > Thank you!  Please let us know how it goes.
> > >> > > > >
> > >> > > > > Julie
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> > >> > met_help at ucar.edu
> > >> > > >
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > >
> > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > >> > > > > >        Queue: met_help
> > >> > > > > >      Subject: ImportError: No module named
constants_pdef
> > >> > > > > >        Owner: Nobody
> > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > >> > > > > >       Status: new
> > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > >> > > Ticket/Display.html?id=79605
> > >> > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Hi,
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > When I ran the mater_met_plus.py, it says:
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > ImportError: No module named constants_pdef
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Thanks,
> > >> > > > > >
> > >> > > > > > Xinxia
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 12:07:40 2017

Unfortunately, your environment does not know where to find
run_tc_pairs.py.  Please try adding the directory with run_tc_pairs.py
(/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc file,
then
run "source ~/.bashrc", then trying rerunning.  Please let me know how
that
goes.

Thanks!

Julie

On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I'm running met in a machine that's owned by our department, I don't
have
> sudo right, so when I type which run_tc_pairs.py, it says couldn't
find it.
>
> no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/environment-
modules/3.2.10/
> bin:/home/xinxia/bin:/opt/ncl-621/bin)
>
>
> But I could find it manually in that directory.
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 8:52:16 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> It looks like you got a successful run of tc_stat - that's great
news!
>
> I'm not sure what you mean by "Because I don't have the right, I
can't find
> run_tc_pairs.py, but I know it's under
>
> /D2/xinxia/METplus/METplus/ush".
>
> Can you please explain?  What happened when you ran "which
> run_tc_pairs.py"?
>
> Thanks,
> Julie
>
>
>
>
>
>
> On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I removed the space.
> >
> > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >
> > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >
> > DEBUG 2:
> >
> > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> 20141201_000000
> > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > filter_20141201_00.tcst
> >
> > DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst
> >
> > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> true
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > filter_20141201_00.tcst
> >
> >
> > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> >
> >
> > Because I don't have the right, I can't find run_tc_pairs.py, but
I know
> > it's under
> >
> > /D2/xinxia/METplus/METplus/ush
> >
> >
> > For Python,
> >
> > [xinxia at chaos ~]$ which python
> >
> > /usr/bin/python
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 8:30:01 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > It looks like there is a space where there should not be a space
(between
> > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > filter_20141201_00.tcst after the -dump_row option).
> >
> > Could you please try it again without the space?
> >
> > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling
MET
> > TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter
> > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> > Regarding the master_met_plus.py run, please try running the
following
> two
> > commands and send me the output:
> >
> > which run_tc_pairs.py
> >
> > which python
> >
> > Thanks!
> >
> > Julie
> >
> > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > After I ran the long one line command:
> > >
> > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/
> > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > >
> > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > >
> > > ERROR  :
> > >
> > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> > > *jobstring) -> unsupported job command options
> "filter_20141201_00.tcst".
> > >
> > > ERROR  :
> > >
> > >
> > > And for the master_met_plus.py, I got the error:
> > >
> > > [xinxia at chaos ush]$ python master_met_plus.py
> > >
> > > sh: run_tc_pairs.py: command not found
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > My apologies, my response should have said, "By default, MET
version
> 5.2
> > is
> > > compiled using dynamic linking."  It's true for both, but I see
you're
> > > using 5.2 and I inadvertently referred to 5.1.
> > >
> > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> > > wrote:
> > >
> > > > Hi Xinxia.  Regarding the error:
> > > >
> > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> shared
> > > > libraries: libgsl.so.19: cannot open shared object file: No
such file
> > or
> > > > directory
> > > >
> > > > By default, MET version 5.1 is compiled using dynamic linking.
> Rather
> > > > than compiling the external library code in with the MET
executables
> > > (which
> > > > is
> > > > called static linking), it looks for them at runtime.  And
it's
> looking
> > > > for those "shared object" (.so) library files.
> > > >
> > > > This should be easy to fix. We just need to tell it where to
find
> them,
> > > > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look
> in
> > > your
> > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there, add
> > the
> > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example, if
> the
> > > path
> > > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > > l_libs/GSL/gsl-1.16/lib
> > > > you would add teh following to your ~/.bashrc file:
> > > >
> > > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > > gsl-1.16/lib
> > > >
> > > > Then save the change and source that file:
> > > >
> > > >   source ~/.bashrc
> > > >
> > > > Then, please try rerunning the command manually and let me
know if it
> > > > works.
> > > >
> > > > I believe that this was the cause of the initial error you
received
> > from
> > > > MET+:
> > > >
> > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > calling
> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/ext
> > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > >>
> > > >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >>
> > > >> Hi Julie,
> > > >>
> > > >>
> > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > >> 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/ext
> > > ract_tiles/20141201_00/
> > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >>
> > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > > >> libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > or
> > > >> directory
> > > >>
> > > >>
> > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > >> xinxia_data directory.
> > > >>
> > > >>
> > > >> Thanks,
> > > >>
> > > >>
> > > >> Xinxia
> > > >>
> > > >> ________________________________
> > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > >> To: Xinxia_Song at outlook.com
> > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > >> constants_pdef
> > > >>
> > > >> Hi Xinxia.
> > > >>
> > > >> I can see that your command, which should have been all on
one line,
> > was
> > > >> broken up into several lines.  Please try running the command
again,
> > > >> making
> > > >> sure that the entire command is on one line:
> > > >>
> > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > > >> -match_points true -dump_row
> > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >>
> > > >> Then, please send the output from that command.
> > > >>
> > > >> Regarding, your error:
> > > >>
> > > >> sh: run_tc_pairs.py: command not found
> > > >>
> > > >> It's strange that would only have occurred after having
changed the
> > > >> LOG_LEVEL.  Could you please send us your configuration file?
> > > >>
> > > >> Thanks!
> > > >>
> > > >> Julie
> > > >>
> > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > >> wrote:
> > > >>
> > > >> >
> > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > >> >
> > > >> > Hi Julie,
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > >> > filter -lookin
> > > >> >
> > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > >> > libraries: libgsl.so.19: cannot open shared object file: No
such
> > file
> > > or
> > > >> > directory
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > >> >
> > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
> directory
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > >> ract_tiles/20141201_00/
> > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >> >
> > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
> > such
> > > >> > file or directory
> > > >> >
> > > >> >
> > > >> > After I change the LOG_LEVEL, I ran the master_met_plus.py,
it
> says:
> > > >> >
> > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > >> >
> > > >> > sh: run_tc_pairs.py: command not found
> > > >> >
> > > >> >
> > > >> >
> > > >> > Thanks,
> > > >> >
> > > >> >
> > > >> > Xinxia
> > > >> >
> > > >> >
> > > >> > ________________________________
> > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > >> > To: Xinxia_Song at outlook.com
> > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > >> > constants_pdef
> > > >> >
> > > >> > Thank you.  Unfortunately, the level of detail in the log
file
> > wasn't
> > > >> what
> > > >> > I hoped for.  I'd like to have you try two things.
> > > >> >
> > > >> > First, could you please send me your output of your manual
run of
> > the
> > > >> > following?
> > > >> >
> > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin
ML
> > > >> > -out_init_mask
> > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > >> >
> > > >> > Second, could you please change your log level in your
> configuration
> > > >> file
> > > >> > from
> > > >> >
> > > >> > LOG_LEVEL = "INFO"
> > > >> >
> > > >> > to
> > > >> >
> > > >> > LOG_LEVEL = "DEBUG"
> > > >> >
> > > >> > then rerun and upload your log file to our ftp server
again?
> > > >> >
> > > >> > Thank you!
> > > >> >
> > > >> > Julie
> > > >> >
> > > >> >
> > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > met_help at ucar.edu
> > > >> >
> > > >> > wrote:
> > > >> >
> > > >> > >
> > > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > >> > >
> > > >> > > Hi Julie,
> > > >> > >
> > > >> > >
> > > >> > > I uploaded the log file under xinxia_data directory.
> > > >> > >
> > > >> > >
> > > >> > > Thanks,
> > > >> > >
> > > >> > >
> > > >> > > Xinxia
> > > >> > >
> > > >> > >
> > > >> > > ________________________________
> > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > >> > > To: Xinxia_Song at outlook.com
> > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > >> > > constants_pdef
> > > >> > >
> > > >> > > Hi Xinxia.
> > > >> > >
> > > >> > > I think it would be helpful if I could take a look at the
log
> > file.
> > > >> > Could
> > > >> > > you please upload your file to our anonymous ftp site as
follows
> > so
> > > >> that
> > > >> > I
> > > >> > > can take a look?
> > > >> > >
> > > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > > >> > >
> > > >> > > Also, could you please try running the following manually
and
> send
> > > the
> > > >> > > output to me?
> > > >> > >
> > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > > >> > > -out_init_mask
> > > >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > >> > >
> > > >> > > Thank you!
> > > >> > >
> > > >> > > Julie
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > > >> met_help at ucar.edu>
> > > >> > > wrote:
> > > >> > >
> > > >> > > >
> > > >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > >> > > >
> > > >> > > > Hi Julie,
> > > >> > > >
> > > >> > > >
> > > >> > > > Now I can run the program, but when I look at the log
file in
> > the
> > > >> > output,
> > > >> > > > it shows error below:
> > > >> > > >
> > > >> > > >
> > > >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> > from
> > > >> > > calling
> > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > /met-5.2/bin/tc_stat
> > > >> > -job
> > > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > >> -init_inc
> > > >> > > > 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/
> > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > >> > 2/share/met/poly/CONUS.poly
> > > >> > > >
> > > >> > > >
> > > >> > > > How should I fix it?
> > > >> > > >
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > >
> > > >> > > >
> > > >> > > > Xinxia
> > > >> > > >
> > > >> > > > ________________________________
> > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > >> > > > To: Xinxia_Song at outlook.com
> > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > >> > > > constants_pdef
> > > >> > > >
> > > >> > > > Hi Xinxia.
> > > >> > > >
> > > >> > > > I believe that python doesn't know how to find the
module
> > because
> > > >> the
> > > >> > ush
> > > >> > > > directory is not in your PYTHONPATH.  Both the parm and
ush
> > > >> directory
> > > >> > > need
> > > >> > > > to be specified in your PYTHONPATH.  Please add the ush
> > directory
> > > to
> > > >> > your
> > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > > Julie
> > > >> > > >
> > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> > > >> > met_help at ucar.edu>
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > >
> > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > >> > > > >
> > > >> > > > > Hi Julie,
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > Since I don't have setenv, I added these 3 sentence
into my
> > > >> .bashrc
> > > >> > > file:
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > >> > > > >
> > > >> > > > > export PATH=$USHROOT:$PATH
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables are
> > set,
> > > >> but
> > > >> > > the
> > > >> > > > > program still can't find the module.
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > Thanks,
> > > >> > > > >
> > > >> > > > > Xinxia
> > > >> > > > >
> > > >> > > > > ________________________________
> > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > >> > > > > To: Xinxia_Song at outlook.com
> > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > >> named
> > > >> > > > > constants_pdef
> > > >> > > > >
> > > >> > > > > Hi Xinxia.
> > > >> > > > >
> > > >> > > > > Could you please check to make sure that the ush
directory
> > with
> > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc file
> > (or
> > > >> > .bashrc
> > > >> > > > or
> > > >> > > > > similar file)?  The parm directory should also be in
your
> > > >> PYTHONPATH.
> > > >> > > > >
> > > >> > > > > For example,
> > > >> > > > >
> > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > >> > > > d1/jpresto/sbu/METplus/parm
> > > >> > > > >
> > > >> > > > > Please also check make sure that the path to the ush
> directory
> > > is
> > > >> > also
> > > >> > > > > specified your your path environment variable.  For
example,
> > > >> > > > >
> > > >> > > > > set path = (/usr/local/bin \
> > > >> > > > >                  /usr/local/python/bin/python \
> > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > >> > > > >
> > > >> > > > > If they are not there, please add them and then
source the
> > file
> > > >> (e.g.
> > > >> > > run
> > > >> > > > > "source ~/.cshrc").
> > > >> > > > >
> > > >> > > > > Thank you!  Please let us know how it goes.
> > > >> > > > >
> > > >> > > > > Julie
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> > > >> > met_help at ucar.edu
> > > >> > > >
> > > >> > > > > wrote:
> > > >> > > > >
> > > >> > > > > >
> > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > > >> > > > > >        Queue: met_help
> > > >> > > > > >      Subject: ImportError: No module named
constants_pdef
> > > >> > > > > >        Owner: Nobody
> > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > >> > > > > >       Status: new
> > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > >> > > Ticket/Display.html?id=79605
> > > >> > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Hi,
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > ImportError: No module named constants_pdef
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Thanks,
> > > >> > > > > >
> > > >> > > > > > Xinxia
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 12:11:20 2017

Hi Julie,


I added it to the $PATH and ran the master_met_python.py:

[xinxia at chaos ush]$ python master_met_plus.py

Traceback (most recent call last):

  File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157, in
<module>

    main()

  File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100, in
main

    filtered_out_dir)

  File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
tc_stat

    tc_stat_out = subprocess.check_output(tc_cmd,
stderr=subprocess.STDOUT, shell=True )

AttributeError: 'module' object has no attribute 'check_output'


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 9:07:40 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Unfortunately, your environment does not know where to find
run_tc_pairs.py.  Please try adding the directory with run_tc_pairs.py
(/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc file,
then
run "source ~/.bashrc", then trying rerunning.  Please let me know how
that
goes.

Thanks!

Julie

On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I'm running met in a machine that's owned by our department, I don't
have
> sudo right, so when I type which run_tc_pairs.py, it says couldn't
find it.
>
> no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/environment-
modules/3.2.10/
> bin:/home/xinxia/bin:/opt/ncl-621/bin)
>
>
> But I could find it manually in that directory.
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 8:52:16 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.
>
> It looks like you got a successful run of tc_stat - that's great
news!
>
> I'm not sure what you mean by "Because I don't have the right, I
can't find
> run_tc_pairs.py, but I know it's under
>
> /D2/xinxia/METplus/METplus/ush".
>
> Can you please explain?  What happened when you ran "which
> run_tc_pairs.py"?
>
> Thanks,
> Julie
>
>
>
>
>
>
> On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I removed the space.
> >
> > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >
> > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >
> > DEBUG 2:
> >
> > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> 20141201_000000
> > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > filter_20141201_00.tcst
> >
> > DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst
> >
> > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> true
> > -out_init_mask /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > filter_20141201_00.tcst
> >
> >
> > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> >
> >
> > Because I don't have the right, I can't find run_tc_pairs.py, but
I know
> > it's under
> >
> > /D2/xinxia/METplus/METplus/ush
> >
> >
> > For Python,
> >
> > [xinxia at chaos ~]$ which python
> >
> > /usr/bin/python
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 8:30:01 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > It looks like there is a space where there should not be a space
(between
> > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > filter_20141201_00.tcst after the -dump_row option).
> >
> > Could you please try it again without the space?
> >
> > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from calling
MET
> > TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter
> > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >
> > Regarding the master_met_plus.py run, please try running the
following
> two
> > commands and send me the output:
> >
> > which run_tc_pairs.py
> >
> > which python
> >
> > Thanks!
> >
> > Julie
> >
> > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > After I ran the long one line command:
> > >
> > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > extract_tiles/20141201_00/
> > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > >
> > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > >
> > > ERROR  :
> > >
> > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const char
> > > *jobstring) -> unsupported job command options
> "filter_20141201_00.tcst".
> > >
> > > ERROR  :
> > >
> > >
> > > And for the master_met_plus.py, I got the error:
> > >
> > > [xinxia at chaos ush]$ python master_met_plus.py
> > >
> > > sh: run_tc_pairs.py: command not found
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > My apologies, my response should have said, "By default, MET
version
> 5.2
> > is
> > > compiled using dynamic linking."  It's true for both, but I see
you're
> > > using 5.2 and I inadvertently referred to 5.1.
> > >
> > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu>
> > > wrote:
> > >
> > > > Hi Xinxia.  Regarding the error:
> > > >
> > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> shared
> > > > libraries: libgsl.so.19: cannot open shared object file: No
such file
> > or
> > > > directory
> > > >
> > > > By default, MET version 5.1 is compiled using dynamic linking.
> Rather
> > > > than compiling the external library code in with the MET
executables
> > > (which
> > > > is
> > > > called static linking), it looks for them at runtime.  And
it's
> looking
> > > > for those "shared object" (.so) library files.
> > > >
> > > > This should be easy to fix. We just need to tell it where to
find
> them,
> > > > and we do that by setting (or adding to the LD_LIBRARY_PATH).
Look
> in
> > > your
> > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there, add
> > the
> > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example, if
> the
> > > path
> > > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > > l_libs/GSL/gsl-1.16/lib
> > > > you would add teh following to your ~/.bashrc file:
> > > >
> > > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > > gsl-1.16/lib
> > > >
> > > > Then save the change and source that file:
> > > >
> > > >   source ~/.bashrc
> > > >
> > > > Then, please try rerunning the command manually and let me
know if it
> > > > works.
> > > >
> > > > I believe that this was the cause of the initial error you
received
> > from
> > > > MET+:
> > > >
> > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > calling
> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/ext
> > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > >>
> > > >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >>
> > > >> Hi Julie,
> > > >>
> > > >>
> > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > >> 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/ext
> > > ract_tiles/20141201_00/
> > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >>
> > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > > >> libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > or
> > > >> directory
> > > >>
> > > >>
> > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > >> xinxia_data directory.
> > > >>
> > > >>
> > > >> Thanks,
> > > >>
> > > >>
> > > >> Xinxia
> > > >>
> > > >> ________________________________
> > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > >> To: Xinxia_Song at outlook.com
> > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > >> constants_pdef
> > > >>
> > > >> Hi Xinxia.
> > > >>
> > > >> I can see that your command, which should have been all on
one line,
> > was
> > > >> broken up into several lines.  Please try running the command
again,
> > > >> making
> > > >> sure that the entire command is on one line:
> > > >>
> > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
20141201_00
> > > >> -match_points true -dump_row
> > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >>
> > > >> Then, please send the output from that command.
> > > >>
> > > >> Regarding, your error:
> > > >>
> > > >> sh: run_tc_pairs.py: command not found
> > > >>
> > > >> It's strange that would only have occurred after having
changed the
> > > >> LOG_LEVEL.  Could you please send us your configuration file?
> > > >>
> > > >> Thanks!
> > > >>
> > > >> Julie
> > > >>
> > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > >> wrote:
> > > >>
> > > >> >
> > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > >> >
> > > >> > Hi Julie,
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > >> > filter -lookin
> > > >> >
> > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > >> > libraries: libgsl.so.19: cannot open shared object file: No
such
> > file
> > > or
> > > >> > directory
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > >> >
> > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
> directory
> > > >> >
> > > >> >
> > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > >> ract_tiles/20141201_00/
> > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >> >
> > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/: No
> > such
> > > >> > file or directory
> > > >> >
> > > >> >
> > > >> > After I change the LOG_LEVEL, I ran the master_met_plus.py,
it
> says:
> > > >> >
> > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > >> >
> > > >> > sh: run_tc_pairs.py: command not found
> > > >> >
> > > >> >
> > > >> >
> > > >> > Thanks,
> > > >> >
> > > >> >
> > > >> > Xinxia
> > > >> >
> > > >> >
> > > >> > ________________________________
> > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > >> > To: Xinxia_Song at outlook.com
> > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > >> > constants_pdef
> > > >> >
> > > >> > Thank you.  Unfortunately, the level of detail in the log
file
> > wasn't
> > > >> what
> > > >> > I hoped for.  I'd like to have you try two things.
> > > >> >
> > > >> > First, could you please send me your output of your manual
run of
> > the
> > > >> > following?
> > > >> >
> > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst  -basin
ML
> > > >> > -out_init_mask
> > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > >> >
> > > >> > Second, could you please change your log level in your
> configuration
> > > >> file
> > > >> > from
> > > >> >
> > > >> > LOG_LEVEL = "INFO"
> > > >> >
> > > >> > to
> > > >> >
> > > >> > LOG_LEVEL = "DEBUG"
> > > >> >
> > > >> > then rerun and upload your log file to our ftp server
again?
> > > >> >
> > > >> > Thank you!
> > > >> >
> > > >> > Julie
> > > >> >
> > > >> >
> > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > met_help at ucar.edu
> > > >> >
> > > >> > wrote:
> > > >> >
> > > >> > >
> > > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > >> > >
> > > >> > > Hi Julie,
> > > >> > >
> > > >> > >
> > > >> > > I uploaded the log file under xinxia_data directory.
> > > >> > >
> > > >> > >
> > > >> > > Thanks,
> > > >> > >
> > > >> > >
> > > >> > > Xinxia
> > > >> > >
> > > >> > >
> > > >> > > ________________________________
> > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > >> > > To: Xinxia_Song at outlook.com
> > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > >> > > constants_pdef
> > > >> > >
> > > >> > > Hi Xinxia.
> > > >> > >
> > > >> > > I think it would be helpful if I could take a look at the
log
> > file.
> > > >> > Could
> > > >> > > you please upload your file to our anonymous ftp site as
follows
> > so
> > > >> that
> > > >> > I
> > > >> > > can take a look?
> > > >> > >
> > > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > > >> > >
> > > >> > > Also, could you please try running the following manually
and
> send
> > > the
> > > >> > > output to me?
> > > >> > >
> > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > >> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > > >> > > -out_init_mask
> > > >> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > >> > >
> > > >> > > Thank you!
> > > >> > >
> > > >> > > Julie
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > > >> met_help at ucar.edu>
> > > >> > > wrote:
> > > >> > >
> > > >> > > >
> > > >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > >> > > >
> > > >> > > > Hi Julie,
> > > >> > > >
> > > >> > > >
> > > >> > > > Now I can run the program, but when I look at the log
file in
> > the
> > > >> > output,
> > > >> > > > it shows error below:
> > > >> > > >
> > > >> > > >
> > > >> > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> > from
> > > >> > > calling
> > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > /met-5.2/bin/tc_stat
> > > >> > -job
> > > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > >> -init_inc
> > > >> > > > 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/
> > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > >> > 2/share/met/poly/CONUS.poly
> > > >> > > >
> > > >> > > >
> > > >> > > > How should I fix it?
> > > >> > > >
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > >
> > > >> > > >
> > > >> > > > Xinxia
> > > >> > > >
> > > >> > > > ________________________________
> > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > >> > > > To: Xinxia_Song at outlook.com
> > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > >> > > > constants_pdef
> > > >> > > >
> > > >> > > > Hi Xinxia.
> > > >> > > >
> > > >> > > > I believe that python doesn't know how to find the
module
> > because
> > > >> the
> > > >> > ush
> > > >> > > > directory is not in your PYTHONPATH.  Both the parm and
ush
> > > >> directory
> > > >> > > need
> > > >> > > > to be specified in your PYTHONPATH.  Please add the ush
> > directory
> > > to
> > > >> > your
> > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > > Julie
> > > >> > > >
> > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT <
> > > >> > met_help at ucar.edu>
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > >
> > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > >> > > > >
> > > >> > > > > Hi Julie,
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > Since I don't have setenv, I added these 3 sentence
into my
> > > >> .bashrc
> > > >> > > file:
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > >> > > > >
> > > >> > > > > export PATH=$USHROOT:$PATH
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables are
> > set,
> > > >> but
> > > >> > > the
> > > >> > > > > program still can't find the module.
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > Thanks,
> > > >> > > > >
> > > >> > > > > Xinxia
> > > >> > > > >
> > > >> > > > > ________________________________
> > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > >> > > > > To: Xinxia_Song at outlook.com
> > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > >> named
> > > >> > > > > constants_pdef
> > > >> > > > >
> > > >> > > > > Hi Xinxia.
> > > >> > > > >
> > > >> > > > > Could you please check to make sure that the ush
directory
> > with
> > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc file
> > (or
> > > >> > .bashrc
> > > >> > > > or
> > > >> > > > > similar file)?  The parm directory should also be in
your
> > > >> PYTHONPATH.
> > > >> > > > >
> > > >> > > > > For example,
> > > >> > > > >
> > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > >> > > > d1/jpresto/sbu/METplus/parm
> > > >> > > > >
> > > >> > > > > Please also check make sure that the path to the ush
> directory
> > > is
> > > >> > also
> > > >> > > > > specified your your path environment variable.  For
example,
> > > >> > > > >
> > > >> > > > > set path = (/usr/local/bin \
> > > >> > > > >                  /usr/local/python/bin/python \
> > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > >> > > > >
> > > >> > > > > If they are not there, please add them and then
source the
> > file
> > > >> (e.g.
> > > >> > > run
> > > >> > > > > "source ~/.cshrc").
> > > >> > > > >
> > > >> > > > > Thank you!  Please let us know how it goes.
> > > >> > > > >
> > > >> > > > > Julie
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT <
> > > >> > met_help at ucar.edu
> > > >> > > >
> > > >> > > > > wrote:
> > > >> > > > >
> > > >> > > > > >
> > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > > >> > > > > >        Queue: met_help
> > > >> > > > > >      Subject: ImportError: No module named
constants_pdef
> > > >> > > > > >        Owner: Nobody
> > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > >> > > > > >       Status: new
> > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > >> > > Ticket/Display.html?id=79605
> > > >> > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Hi,
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > ImportError: No module named constants_pdef
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Thanks,
> > > >> > > > > >
> > > >> > > > > > Xinxia
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 12:37:53 2017

Can you please tell me which version of Python you are using?
check_output
for subprocess was introduced in Python 2.7.    Do you have access to
Python version 2.7 or higher?

Thanks,
Julie

On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I added it to the $PATH and ran the master_met_python.py:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> Traceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
> <module>
>
>     main()
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
> main
>
>     filtered_out_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
> AttributeError: 'module' object has no attribute 'check_output'
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 9:07:40 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Unfortunately, your environment does not know where to find
> run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file, then
> run "source ~/.bashrc", then trying rerunning.  Please let me know
how that
> goes.
>
> Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I'm running met in a machine that's owned by our department, I
don't have
> > sudo right, so when I type which run_tc_pairs.py, it says couldn't
find
> it.
> >
> > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> environment-modules/3.2.10/
> > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> >
> >
> > But I could find it manually in that directory.
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 8:52:16 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > It looks like you got a successful run of tc_stat - that's great
news!
> >
> > I'm not sure what you mean by "Because I don't have the right, I
can't
> find
> > run_tc_pairs.py, but I know it's under
> >
> > /D2/xinxia/METplus/METplus/ush".
> >
> > Can you please explain?  What happened when you ran "which
> > run_tc_pairs.py"?
> >
> > Thanks,
> > Julie
> >
> >
> >
> >
> >
> >
> > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I removed the space.
> > >
> > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > >
> > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > >
> > > DEBUG 2:
> > >
> > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > 20141201_000000
> > > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > > DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > >
> > > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> > true
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > >
> > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > >
> > >
> > > Because I don't have the right, I can't find run_tc_pairs.py,
but I
> know
> > > it's under
> > >
> > > /D2/xinxia/METplus/METplus/ush
> > >
> > >
> > > For Python,
> > >
> > > [xinxia at chaos ~]$ which python
> > >
> > > /usr/bin/python
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > It looks like there is a space where there should not be a space
> (between
> > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > filter_20141201_00.tcst after the -dump_row option).
> > >
> > > Could you please try it again without the space?
> > >
> > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling MET
> > > TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter
> > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > > Regarding the master_met_plus.py run, please try running the
following
> > two
> > > commands and send me the output:
> > >
> > > which run_tc_pairs.py
> > >
> > > which python
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > After I ran the long one line command:
> > > >
> > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > >
> > > > ERROR  :
> > > >
> > > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const
char
> > > > *jobstring) -> unsupported job command options
> > "filter_20141201_00.tcst".
> > > >
> > > > ERROR  :
> > > >
> > > >
> > > > And for the master_met_plus.py, I got the error:
> > > >
> > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > >
> > > > sh: run_tc_pairs.py: command not found
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > My apologies, my response should have said, "By default, MET
version
> > 5.2
> > > is
> > > > compiled using dynamic linking."  It's true for both, but I
see
> you're
> > > > using 5.2 and I inadvertently referred to 5.1.
> > > >
> > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu
> >
> > > > wrote:
> > > >
> > > > > Hi Xinxia.  Regarding the error:
> > > > >
> > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > > > > libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > > or
> > > > > directory
> > > > >
> > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > Rather
> > > > > than compiling the external library code in with the MET
> executables
> > > > (which
> > > > > is
> > > > > called static linking), it looks for them at runtime.  And
it's
> > looking
> > > > > for those "shared object" (.so) library files.
> > > > >
> > > > > This should be easy to fix. We just need to tell it where to
find
> > them,
> > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).  Look
> > in
> > > > your
> > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there,
> add
> > > the
> > > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example, if
> > the
> > > > path
> > > > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > > > l_libs/GSL/gsl-1.16/lib
> > > > > you would add teh following to your ~/.bashrc file:
> > > > >
> > > > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > > > gsl-1.16/lib
> > > > >
> > > > > Then save the change and source that file:
> > > > >
> > > > >   source ~/.bashrc
> > > > >
> > > > > Then, please try rerunning the command manually and let me
know if
> it
> > > > > works.
> > > > >
> > > > > I believe that this was the cause of the initial error you
received
> > > from
> > > > > MET+:
> > > > >
> > > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > > calling
> > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> MET/met-5.2/bin/tc_stat
> > > -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/ext
> > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > > wrote:
> > > > >
> > > > >>
> > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >>
> > > > >> Hi Julie,
> > > > >>
> > > > >>
> > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > >> 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/ext
> > > > ract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > > >> libraries: libgsl.so.19: cannot open shared object file: No
such
> > file
> > > or
> > > > >> directory
> > > > >>
> > > > >>
> > > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > > >> xinxia_data directory.
> > > > >>
> > > > >>
> > > > >> Thanks,
> > > > >>
> > > > >>
> > > > >> Xinxia
> > > > >>
> > > > >> ________________________________
> > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > >> To: Xinxia_Song at outlook.com
> > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > > >> constants_pdef
> > > > >>
> > > > >> Hi Xinxia.
> > > > >>
> > > > >> I can see that your command, which should have been all on
one
> line,
> > > was
> > > > >> broken up into several lines.  Please try running the
command
> again,
> > > > >> making
> > > > >> sure that the entire command is on one line:
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > > > >> -match_points true -dump_row
> > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> Then, please send the output from that command.
> > > > >>
> > > > >> Regarding, your error:
> > > > >>
> > > > >> sh: run_tc_pairs.py: command not found
> > > > >>
> > > > >> It's strange that would only have occurred after having
changed
> the
> > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > >>
> > > > >> Thanks!
> > > > >>
> > > > >> Julie
> > > > >>
> > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > >> wrote:
> > > > >>
> > > > >> >
> > > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >> >
> > > > >> > Hi Julie,
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > >> > filter -lookin
> > > > >> >
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > > shared
> > > > >> > libraries: libgsl.so.19: cannot open shared object file:
No such
> > > file
> > > > or
> > > > >> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > >> >
> > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > >> ract_tiles/20141201_00/
> > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >> >
> > > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
> No
> > > such
> > > > >> > file or directory
> > > > >> >
> > > > >> >
> > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py, it
> > says:
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > >> >
> > > > >> > sh: run_tc_pairs.py: command not found
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Thanks,
> > > > >> >
> > > > >> >
> > > > >> > Xinxia
> > > > >> >
> > > > >> >
> > > > >> > ________________________________
> > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > >> > To: Xinxia_Song at outlook.com
> > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > > >> > constants_pdef
> > > > >> >
> > > > >> > Thank you.  Unfortunately, the level of detail in the log
file
> > > wasn't
> > > > >> what
> > > > >> > I hoped for.  I'd like to have you try two things.
> > > > >> >
> > > > >> > First, could you please send me your output of your
manual run
> of
> > > the
> > > > >> > following?
> > > > >> >
> > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin ML
> > > > >> > -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > > >> >
> > > > >> > Second, could you please change your log level in your
> > configuration
> > > > >> file
> > > > >> > from
> > > > >> >
> > > > >> > LOG_LEVEL = "INFO"
> > > > >> >
> > > > >> > to
> > > > >> >
> > > > >> > LOG_LEVEL = "DEBUG"
> > > > >> >
> > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > >> >
> > > > >> > Thank you!
> > > > >> >
> > > > >> > Julie
> > > > >> >
> > > > >> >
> > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > > met_help at ucar.edu
> > > > >> >
> > > > >> > wrote:
> > > > >> >
> > > > >> > >
> > > > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > >> > >
> > > > >> > > Hi Julie,
> > > > >> > >
> > > > >> > >
> > > > >> > > I uploaded the log file under xinxia_data directory.
> > > > >> > >
> > > > >> > >
> > > > >> > > Thanks,
> > > > >> > >
> > > > >> > >
> > > > >> > > Xinxia
> > > > >> > >
> > > > >> > >
> > > > >> > > ________________________________
> > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > >> > > To: Xinxia_Song at outlook.com
> > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > >> > > constants_pdef
> > > > >> > >
> > > > >> > > Hi Xinxia.
> > > > >> > >
> > > > >> > > I think it would be helpful if I could take a look at
the log
> > > file.
> > > > >> > Could
> > > > >> > > you please upload your file to our anonymous ftp site
as
> follows
> > > so
> > > > >> that
> > > > >> > I
> > > > >> > > can take a look?
> > > > >> > >
> > > > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > > > >> > >
> > > > >> > > Also, could you please try running the following
manually and
> > send
> > > > the
> > > > >> > > output to me?
> > > > >> > >
> > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > > > >> > > -out_init_mask
> > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > >> > >
> > > > >> > > Thank you!
> > > > >> > >
> > > > >> > > Julie
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > > > >> met_help at ucar.edu>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > >
> > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > >> > > >
> > > > >> > > > Hi Julie,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Now I can run the program, but when I look at the log
file
> in
> > > the
> > > > >> > output,
> > > > >> > > > it shows error below:
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> ush/run_tc_stat.py:tc_stat
> > > from
> > > > >> > > calling
> > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > /met-5.2/bin/tc_stat
> > > > >> > -job
> > > > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > > >> -init_inc
> > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/
> > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> ML
> > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > >> > 2/share/met/poly/CONUS.poly
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > How should I fix it?
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Xinxia
> > > > >> > > >
> > > > >> > > > ________________________________
> > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > >> > > > To: Xinxia_Song at outlook.com
> > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > >> > > > constants_pdef
> > > > >> > > >
> > > > >> > > > Hi Xinxia.
> > > > >> > > >
> > > > >> > > > I believe that python doesn't know how to find the
module
> > > because
> > > > >> the
> > > > >> > ush
> > > > >> > > > directory is not in your PYTHONPATH.  Both the parm
and ush
> > > > >> directory
> > > > >> > > need
> > > > >> > > > to be specified in your PYTHONPATH.  Please add the
ush
> > > directory
> > > > to
> > > > >> > your
> > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > > Julie
> > > > >> > > >
> > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu>
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > >
> > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > >> > > > >
> > > > >> > > > > Hi Julie,
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Since I don't have setenv, I added these 3 sentence
into
> my
> > > > >> .bashrc
> > > > >> > > file:
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > >> > > > >
> > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables
> are
> > > set,
> > > > >> but
> > > > >> > > the
> > > > >> > > > > program still can't find the module.
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Thanks,
> > > > >> > > > >
> > > > >> > > > > Xinxia
> > > > >> > > > >
> > > > >> > > > > ________________________________
> > > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > >> named
> > > > >> > > > > constants_pdef
> > > > >> > > > >
> > > > >> > > > > Hi Xinxia.
> > > > >> > > > >
> > > > >> > > > > Could you please check to make sure that the ush
directory
> > > with
> > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> file
> > > (or
> > > > >> > .bashrc
> > > > >> > > > or
> > > > >> > > > > similar file)?  The parm directory should also be
in your
> > > > >> PYTHONPATH.
> > > > >> > > > >
> > > > >> > > > > For example,
> > > > >> > > > >
> > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > >> > > > >
> > > > >> > > > > Please also check make sure that the path to the
ush
> > directory
> > > > is
> > > > >> > also
> > > > >> > > > > specified your your path environment variable.  For
> example,
> > > > >> > > > >
> > > > >> > > > > set path = (/usr/local/bin \
> > > > >> > > > >                  /usr/local/python/bin/python \
> > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > >> > > > >
> > > > >> > > > > If they are not there, please add them and then
source the
> > > file
> > > > >> (e.g.
> > > > >> > > run
> > > > >> > > > > "source ~/.cshrc").
> > > > >> > > > >
> > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > >> > > > >
> > > > >> > > > > Julie
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu
> > > > >> > > >
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > > > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > > > >> > > > > >        Queue: met_help
> > > > >> > > > > >      Subject: ImportError: No module named
> constants_pdef
> > > > >> > > > > >        Owner: Nobody
> > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > >> > > > > >       Status: new
> > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > >> > > Ticket/Display.html?id=79605
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Hi,
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > ImportError: No module named constants_pdef
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Thanks,
> > > > >> > > > > >
> > > > >> > > > > > Xinxia
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 12:39:44 2017

Hi Julie,


I see, the version is too low, it's Python 2.6.6.


Maybe I should install a higher version python myself.


Thanks,


Xinxia


________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 9:37:53 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Can you please tell me which version of Python you are using?
check_output
for subprocess was introduced in Python 2.7.    Do you have access to
Python version 2.7 or higher?

Thanks,
Julie

On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I added it to the $PATH and ran the master_met_python.py:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> Traceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
> <module>
>
>     main()
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
> main
>
>     filtered_out_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
> AttributeError: 'module' object has no attribute 'check_output'
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 9:07:40 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Unfortunately, your environment does not know where to find
> run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file, then
> run "source ~/.bashrc", then trying rerunning.  Please let me know
how that
> goes.
>
> Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I'm running met in a machine that's owned by our department, I
don't have
> > sudo right, so when I type which run_tc_pairs.py, it says couldn't
find
> it.
> >
> > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> environment-modules/3.2.10/
> > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> >
> >
> > But I could find it manually in that directory.
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 8:52:16 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > It looks like you got a successful run of tc_stat - that's great
news!
> >
> > I'm not sure what you mean by "Because I don't have the right, I
can't
> find
> > run_tc_pairs.py, but I know it's under
> >
> > /D2/xinxia/METplus/METplus/ush".
> >
> > Can you please explain?  What happened when you ran "which
> > run_tc_pairs.py"?
> >
> > Thanks,
> > Julie
> >
> >
> >
> >
> >
> >
> > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I removed the space.
> > >
> > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > >
> > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > >
> > > DEBUG 2:
> > >
> > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > 20141201_000000
> > > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > > DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > >
> > > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> > true
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > >
> > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > >
> > >
> > > Because I don't have the right, I can't find run_tc_pairs.py,
but I
> know
> > > it's under
> > >
> > > /D2/xinxia/METplus/METplus/ush
> > >
> > >
> > > For Python,
> > >
> > > [xinxia at chaos ~]$ which python
> > >
> > > /usr/bin/python
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > It looks like there is a space where there should not be a space
> (between
> > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > filter_20141201_00.tcst after the -dump_row option).
> > >
> > > Could you please try it again without the space?
> > >
> > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling MET
> > > TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter
> > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > > Regarding the master_met_plus.py run, please try running the
following
> > two
> > > commands and send me the output:
> > >
> > > which run_tc_pairs.py
> > >
> > > which python
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > After I ran the long one line command:
> > > >
> > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > >
> > > > ERROR  :
> > > >
> > > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const
char
> > > > *jobstring) -> unsupported job command options
> > "filter_20141201_00.tcst".
> > > >
> > > > ERROR  :
> > > >
> > > >
> > > > And for the master_met_plus.py, I got the error:
> > > >
> > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > >
> > > > sh: run_tc_pairs.py: command not found
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > My apologies, my response should have said, "By default, MET
version
> > 5.2
> > > is
> > > > compiled using dynamic linking."  It's true for both, but I
see
> you're
> > > > using 5.2 and I inadvertently referred to 5.1.
> > > >
> > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu
> >
> > > > wrote:
> > > >
> > > > > Hi Xinxia.  Regarding the error:
> > > > >
> > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > > > > libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > > or
> > > > > directory
> > > > >
> > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > Rather
> > > > > than compiling the external library code in with the MET
> executables
> > > > (which
> > > > > is
> > > > > called static linking), it looks for them at runtime.  And
it's
> > looking
> > > > > for those "shared object" (.so) library files.
> > > > >
> > > > > This should be easy to fix. We just need to tell it where to
find
> > them,
> > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).  Look
> > in
> > > > your
> > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there,
> add
> > > the
> > > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example, if
> > the
> > > > path
> > > > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > > > l_libs/GSL/gsl-1.16/lib
> > > > > you would add teh following to your ~/.bashrc file:
> > > > >
> > > > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > > > gsl-1.16/lib
> > > > >
> > > > > Then save the change and source that file:
> > > > >
> > > > >   source ~/.bashrc
> > > > >
> > > > > Then, please try rerunning the command manually and let me
know if
> it
> > > > > works.
> > > > >
> > > > > I believe that this was the cause of the initial error you
received
> > > from
> > > > > MET+:
> > > > >
> > > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > > calling
> > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> MET/met-5.2/bin/tc_stat
> > > -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/ext
> > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > > wrote:
> > > > >
> > > > >>
> > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >>
> > > > >> Hi Julie,
> > > > >>
> > > > >>
> > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > >> 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/ext
> > > > ract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > > >> libraries: libgsl.so.19: cannot open shared object file: No
such
> > file
> > > or
> > > > >> directory
> > > > >>
> > > > >>
> > > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > > >> xinxia_data directory.
> > > > >>
> > > > >>
> > > > >> Thanks,
> > > > >>
> > > > >>
> > > > >> Xinxia
> > > > >>
> > > > >> ________________________________
> > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > >> To: Xinxia_Song at outlook.com
> > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > > >> constants_pdef
> > > > >>
> > > > >> Hi Xinxia.
> > > > >>
> > > > >> I can see that your command, which should have been all on
one
> line,
> > > was
> > > > >> broken up into several lines.  Please try running the
command
> again,
> > > > >> making
> > > > >> sure that the entire command is on one line:
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > > > >> -match_points true -dump_row
> > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> Then, please send the output from that command.
> > > > >>
> > > > >> Regarding, your error:
> > > > >>
> > > > >> sh: run_tc_pairs.py: command not found
> > > > >>
> > > > >> It's strange that would only have occurred after having
changed
> the
> > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > >>
> > > > >> Thanks!
> > > > >>
> > > > >> Julie
> > > > >>
> > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > >> wrote:
> > > > >>
> > > > >> >
> > > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >> >
> > > > >> > Hi Julie,
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > >> > filter -lookin
> > > > >> >
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > > shared
> > > > >> > libraries: libgsl.so.19: cannot open shared object file:
No such
> > > file
> > > > or
> > > > >> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > >> >
> > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > >> ract_tiles/20141201_00/
> > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >> >
> > > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
> No
> > > such
> > > > >> > file or directory
> > > > >> >
> > > > >> >
> > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py, it
> > says:
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > >> >
> > > > >> > sh: run_tc_pairs.py: command not found
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Thanks,
> > > > >> >
> > > > >> >
> > > > >> > Xinxia
> > > > >> >
> > > > >> >
> > > > >> > ________________________________
> > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > >> > To: Xinxia_Song at outlook.com
> > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > > >> > constants_pdef
> > > > >> >
> > > > >> > Thank you.  Unfortunately, the level of detail in the log
file
> > > wasn't
> > > > >> what
> > > > >> > I hoped for.  I'd like to have you try two things.
> > > > >> >
> > > > >> > First, could you please send me your output of your
manual run
> of
> > > the
> > > > >> > following?
> > > > >> >
> > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin ML
> > > > >> > -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > > >> >
> > > > >> > Second, could you please change your log level in your
> > configuration
> > > > >> file
> > > > >> > from
> > > > >> >
> > > > >> > LOG_LEVEL = "INFO"
> > > > >> >
> > > > >> > to
> > > > >> >
> > > > >> > LOG_LEVEL = "DEBUG"
> > > > >> >
> > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > >> >
> > > > >> > Thank you!
> > > > >> >
> > > > >> > Julie
> > > > >> >
> > > > >> >
> > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > > met_help at ucar.edu
> > > > >> >
> > > > >> > wrote:
> > > > >> >
> > > > >> > >
> > > > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > >> > >
> > > > >> > > Hi Julie,
> > > > >> > >
> > > > >> > >
> > > > >> > > I uploaded the log file under xinxia_data directory.
> > > > >> > >
> > > > >> > >
> > > > >> > > Thanks,
> > > > >> > >
> > > > >> > >
> > > > >> > > Xinxia
> > > > >> > >
> > > > >> > >
> > > > >> > > ________________________________
> > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > >> > > To: Xinxia_Song at outlook.com
> > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > >> > > constants_pdef
> > > > >> > >
> > > > >> > > Hi Xinxia.
> > > > >> > >
> > > > >> > > I think it would be helpful if I could take a look at
the log
> > > file.
> > > > >> > Could
> > > > >> > > you please upload your file to our anonymous ftp site
as
> follows
> > > so
> > > > >> that
> > > > >> > I
> > > > >> > > can take a look?
> > > > >> > >
> > > > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > > > >> > >
> > > > >> > > Also, could you please try running the following
manually and
> > send
> > > > the
> > > > >> > > output to me?
> > > > >> > >
> > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > > > >> > > -out_init_mask
> > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > >> > >
> > > > >> > > Thank you!
> > > > >> > >
> > > > >> > > Julie
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > > > >> met_help at ucar.edu>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > >
> > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > >> > > >
> > > > >> > > > Hi Julie,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Now I can run the program, but when I look at the log
file
> in
> > > the
> > > > >> > output,
> > > > >> > > > it shows error below:
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> ush/run_tc_stat.py:tc_stat
> > > from
> > > > >> > > calling
> > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > /met-5.2/bin/tc_stat
> > > > >> > -job
> > > > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > > >> -init_inc
> > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/
> > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> ML
> > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > >> > 2/share/met/poly/CONUS.poly
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > How should I fix it?
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Xinxia
> > > > >> > > >
> > > > >> > > > ________________________________
> > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > >> > > > To: Xinxia_Song at outlook.com
> > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > >> > > > constants_pdef
> > > > >> > > >
> > > > >> > > > Hi Xinxia.
> > > > >> > > >
> > > > >> > > > I believe that python doesn't know how to find the
module
> > > because
> > > > >> the
> > > > >> > ush
> > > > >> > > > directory is not in your PYTHONPATH.  Both the parm
and ush
> > > > >> directory
> > > > >> > > need
> > > > >> > > > to be specified in your PYTHONPATH.  Please add the
ush
> > > directory
> > > > to
> > > > >> > your
> > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > > Julie
> > > > >> > > >
> > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu>
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > >
> > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > >> > > > >
> > > > >> > > > > Hi Julie,
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Since I don't have setenv, I added these 3 sentence
into
> my
> > > > >> .bashrc
> > > > >> > > file:
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > >> > > > >
> > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables
> are
> > > set,
> > > > >> but
> > > > >> > > the
> > > > >> > > > > program still can't find the module.
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Thanks,
> > > > >> > > > >
> > > > >> > > > > Xinxia
> > > > >> > > > >
> > > > >> > > > > ________________________________
> > > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > >> named
> > > > >> > > > > constants_pdef
> > > > >> > > > >
> > > > >> > > > > Hi Xinxia.
> > > > >> > > > >
> > > > >> > > > > Could you please check to make sure that the ush
directory
> > > with
> > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> file
> > > (or
> > > > >> > .bashrc
> > > > >> > > > or
> > > > >> > > > > similar file)?  The parm directory should also be
in your
> > > > >> PYTHONPATH.
> > > > >> > > > >
> > > > >> > > > > For example,
> > > > >> > > > >
> > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > >> > > > >
> > > > >> > > > > Please also check make sure that the path to the
ush
> > directory
> > > > is
> > > > >> > also
> > > > >> > > > > specified your your path environment variable.  For
> example,
> > > > >> > > > >
> > > > >> > > > > set path = (/usr/local/bin \
> > > > >> > > > >                  /usr/local/python/bin/python \
> > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > >> > > > >
> > > > >> > > > > If they are not there, please add them and then
source the
> > > file
> > > > >> (e.g.
> > > > >> > > run
> > > > >> > > > > "source ~/.cshrc").
> > > > >> > > > >
> > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > >> > > > >
> > > > >> > > > > Julie
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu
> > > > >> > > >
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > > > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > > > >> > > > > >        Queue: met_help
> > > > >> > > > > >      Subject: ImportError: No module named
> constants_pdef
> > > > >> > > > > >        Owner: Nobody
> > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > >> > > > > >       Status: new
> > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > >> > > Ticket/Display.html?id=79605
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Hi,
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > ImportError: No module named constants_pdef
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Thanks,
> > > > >> > > > > >
> > > > >> > > > > > Xinxia
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 13:51:28 2017

Hi Julie,


I installed myself the 2.7 python, it still got the error when
running:

Traceback (most recent call last):

  File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 945,
in <module>

    analysis_by_lead_time()

  File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 107,
in analysis_by_lead_time

    util.apply_series_filters(tile_dir, init_times,
series_lead_filtered_out_dir, p, logger)

  File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005, in
apply_series_filters

    tcs.tc_stat(p, logger, tc_cmd, series_output_dir)

  File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
tc_stat

    tc_stat_out = subprocess.check_output(tc_cmd,
stderr=subprocess.STDOUT, shell=True )

AttributeError: 'module' object has no attribute 'check_output'


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 9:37:53 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Can you please tell me which version of Python you are using?
check_output
for subprocess was introduced in Python 2.7.    Do you have access to
Python version 2.7 or higher?

Thanks,
Julie

On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I added it to the $PATH and ran the master_met_python.py:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> Traceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
> <module>
>
>     main()
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
> main
>
>     filtered_out_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
> AttributeError: 'module' object has no attribute 'check_output'
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 9:07:40 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Unfortunately, your environment does not know where to find
> run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file, then
> run "source ~/.bashrc", then trying rerunning.  Please let me know
how that
> goes.
>
> Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I'm running met in a machine that's owned by our department, I
don't have
> > sudo right, so when I type which run_tc_pairs.py, it says couldn't
find
> it.
> >
> > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> environment-modules/3.2.10/
> > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> >
> >
> > But I could find it manually in that directory.
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 8:52:16 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Hi Xinxia.
> >
> > It looks like you got a successful run of tc_stat - that's great
news!
> >
> > I'm not sure what you mean by "Because I don't have the right, I
can't
> find
> > run_tc_pairs.py, but I know it's under
> >
> > /D2/xinxia/METplus/METplus/ush".
> >
> > Can you please explain?  What happened when you ran "which
> > run_tc_pairs.py"?
> >
> > Thanks,
> > Julie
> >
> >
> >
> >
> >
> >
> > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I removed the space.
> > >
> > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > >
> > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > >
> > > DEBUG 2:
> > >
> > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > 20141201_000000
> > > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > > DEBUG 1: Creating output dump file: /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > >
> > > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> > true
> > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly
> > > -dump_row /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > filter_20141201_00.tcst
> > >
> > >
> > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > >
> > >
> > > Because I don't have the right, I can't find run_tc_pairs.py,
but I
> know
> > > it's under
> > >
> > > /D2/xinxia/METplus/METplus/ush
> > >
> > >
> > > For Python,
> > >
> > > [xinxia at chaos ~]$ which python
> > >
> > > /usr/bin/python
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > It looks like there is a space where there should not be a space
> (between
> > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > filter_20141201_00.tcst after the -dump_row option).
> > >
> > > Could you please try it again without the space?
> > >
> > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling MET
> > > TC-STAT with command:/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > > filter
> > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > >
> > > Regarding the master_met_plus.py run, please try running the
following
> > two
> > > commands and send me the output:
> > >
> > > which run_tc_pairs.py
> > >
> > > which python
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > After I ran the long one line command:
> > > >
> > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > >
> > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > >
> > > > ERROR  :
> > > >
> > > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const
char
> > > > *jobstring) -> unsupported job command options
> > "filter_20141201_00.tcst".
> > > >
> > > > ERROR  :
> > > >
> > > >
> > > > And for the master_met_plus.py, I got the error:
> > > >
> > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > >
> > > > sh: run_tc_pairs.py: command not found
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > My apologies, my response should have said, "By default, MET
version
> > 5.2
> > > is
> > > > compiled using dynamic linking."  It's true for both, but I
see
> you're
> > > > using 5.2 and I inadvertently referred to 5.1.
> > > >
> > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik
<jpresto at ucar.edu
> >
> > > > wrote:
> > > >
> > > > > Hi Xinxia.  Regarding the error:
> > > > >
> > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > shared
> > > > > libraries: libgsl.so.19: cannot open shared object file: No
such
> file
> > > or
> > > > > directory
> > > > >
> > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > Rather
> > > > > than compiling the external library code in with the MET
> executables
> > > > (which
> > > > > is
> > > > > called static linking), it looks for them at runtime.  And
it's
> > looking
> > > > > for those "shared object" (.so) library files.
> > > > >
> > > > > This should be easy to fix. We just need to tell it where to
find
> > them,
> > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).  Look
> > in
> > > > your
> > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there,
> add
> > > the
> > > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example, if
> > the
> > > > path
> > > > > to your libgsl.so.19 file is /D2/xinxia/METplus/MET/externa
> > > > l_libs/GSL/gsl-1.16/lib
> > > > > you would add teh following to your ~/.bashrc file:
> > > > >
> > > > >   export
LD_LIBRARY_PATH=/D2/xinxia/METplus/MET/external_libs/GSL/
> > > > > gsl-1.16/lib
> > > > >
> > > > > Then save the change and source that file:
> > > > >
> > > > >   source ~/.bashrc
> > > > >
> > > > > Then, please try rerunning the command manually and let me
know if
> it
> > > > > works.
> > > > >
> > > > > I believe that this was the cause of the initial error you
received
> > > from
> > > > > MET+:
> > > > >
> > > > > ERROR| /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > > > calling
> > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> MET/met-5.2/bin/tc_stat
> > > -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/ext
> > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > > wrote:
> > > > >
> > > > >>
> > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >>
> > > > >> Hi Julie,
> > > > >>
> > > > >>
> > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > >> filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > >> 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/ext
> > > > ract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > > >> libraries: libgsl.so.19: cannot open shared object file: No
such
> > file
> > > or
> > > > >> directory
> > > > >>
> > > > >>
> > > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > > >> xinxia_data directory.
> > > > >>
> > > > >>
> > > > >> Thanks,
> > > > >>
> > > > >>
> > > > >> Xinxia
> > > > >>
> > > > >> ________________________________
> > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > >> To: Xinxia_Song at outlook.com
> > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > > >> constants_pdef
> > > > >>
> > > > >> Hi Xinxia.
> > > > >>
> > > > >> I can see that your command, which should have been all on
one
> line,
> > > was
> > > > >> broken up into several lines.  Please try running the
command
> again,
> > > > >> making
> > > > >> sure that the entire command is on one line:
> > > > >>
> > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> 20141201_00
> > > > >> -match_points true -dump_row
> > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >>
> > > > >> Then, please send the output from that command.
> > > > >>
> > > > >> Regarding, your error:
> > > > >>
> > > > >> sh: run_tc_pairs.py: command not found
> > > > >>
> > > > >> It's strange that would only have occurred after having
changed
> the
> > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > >>
> > > > >> Thanks!
> > > > >>
> > > > >> Julie
> > > > >>
> > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > >> wrote:
> > > > >>
> > > > >> >
> > > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >> >
> > > > >> > Hi Julie,
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > >> > filter -lookin
> > > > >> >
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > > shared
> > > > >> > libraries: libgsl.so.19: cannot open shared object file:
No such
> > > file
> > > > or
> > > > >> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > >> >
> > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is a
> > directory
> > > > >> >
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > >> ract_tiles/20141201_00/
> > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >> >
> > > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
> No
> > > such
> > > > >> > file or directory
> > > > >> >
> > > > >> >
> > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py, it
> > says:
> > > > >> >
> > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > >> >
> > > > >> > sh: run_tc_pairs.py: command not found
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Thanks,
> > > > >> >
> > > > >> >
> > > > >> > Xinxia
> > > > >> >
> > > > >> >
> > > > >> > ________________________________
> > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > >> > To: Xinxia_Song at outlook.com
> > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > > >> > constants_pdef
> > > > >> >
> > > > >> > Thank you.  Unfortunately, the level of detail in the log
file
> > > wasn't
> > > > >> what
> > > > >> > I hoped for.  I'd like to have you try two things.
> > > > >> >
> > > > >> > First, could you please send me your output of your
manual run
> of
> > > the
> > > > >> > following?
> > > > >> >
> > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > > >> > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin ML
> > > > >> > -out_init_mask
> > > > >> > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly"
> > > > >> >
> > > > >> > Second, could you please change your log level in your
> > configuration
> > > > >> file
> > > > >> > from
> > > > >> >
> > > > >> > LOG_LEVEL = "INFO"
> > > > >> >
> > > > >> > to
> > > > >> >
> > > > >> > LOG_LEVEL = "DEBUG"
> > > > >> >
> > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > >> >
> > > > >> > Thank you!
> > > > >> >
> > > > >> > Julie
> > > > >> >
> > > > >> >
> > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > > met_help at ucar.edu
> > > > >> >
> > > > >> > wrote:
> > > > >> >
> > > > >> > >
> > > > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > >> > >
> > > > >> > > Hi Julie,
> > > > >> > >
> > > > >> > >
> > > > >> > > I uploaded the log file under xinxia_data directory.
> > > > >> > >
> > > > >> > >
> > > > >> > > Thanks,
> > > > >> > >
> > > > >> > >
> > > > >> > > Xinxia
> > > > >> > >
> > > > >> > >
> > > > >> > > ________________________________
> > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > >> > > To: Xinxia_Song at outlook.com
> > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > >> > > constants_pdef
> > > > >> > >
> > > > >> > > Hi Xinxia.
> > > > >> > >
> > > > >> > > I think it would be helpful if I could take a look at
the log
> > > file.
> > > > >> > Could
> > > > >> > > you please upload your file to our anonymous ftp site
as
> follows
> > > so
> > > > >> that
> > > > >> > I
> > > > >> > > can take a look?
> > > > >> > >
> > > > >> > >
http://www.dtcenter.org/met/users/support/met_help.php#ftp
> > > > >> > >
> > > > >> > > Also, could you please try running the following
manually and
> > send
> > > > the
> > > > >> > > output to me?
> > > > >> > >
> > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > > > >> > > -out_init_mask
> > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > >> > >
> > > > >> > > Thank you!
> > > > >> > >
> > > > >> > > Julie
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT <
> > > > >> met_help at ucar.edu>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > >
> > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > >> > > >
> > > > >> > > > Hi Julie,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Now I can run the program, but when I look at the log
file
> in
> > > the
> > > > >> > output,
> > > > >> > > > it shows error below:
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> ush/run_tc_stat.py:tc_stat
> > > from
> > > > >> > > calling
> > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > /met-5.2/bin/tc_stat
> > > > >> > -job
> > > > >> > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > > >> -init_inc
> > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/
> > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> ML
> > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > >> > 2/share/met/poly/CONUS.poly
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > How should I fix it?
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Xinxia
> > > > >> > > >
> > > > >> > > > ________________________________
> > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > >> > > > To: Xinxia_Song at outlook.com
> > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > >> > > > constants_pdef
> > > > >> > > >
> > > > >> > > > Hi Xinxia.
> > > > >> > > >
> > > > >> > > > I believe that python doesn't know how to find the
module
> > > because
> > > > >> the
> > > > >> > ush
> > > > >> > > > directory is not in your PYTHONPATH.  Both the parm
and ush
> > > > >> directory
> > > > >> > > need
> > > > >> > > > to be specified in your PYTHONPATH.  Please add the
ush
> > > directory
> > > > to
> > > > >> > your
> > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how it
goes.
> > > > >> > > >
> > > > >> > > > Thanks,
> > > > >> > > > Julie
> > > > >> > > >
> > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu>
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > >
> > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > >> > > > >
> > > > >> > > > > Hi Julie,
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Since I don't have setenv, I added these 3 sentence
into
> my
> > > > >> .bashrc
> > > > >> > > file:
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > >> > > > >
> > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables
> are
> > > set,
> > > > >> but
> > > > >> > > the
> > > > >> > > > > program still can't find the module.
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Thanks,
> > > > >> > > > >
> > > > >> > > > > Xinxia
> > > > >> > > > >
> > > > >> > > > > ________________________________
> > > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > >> named
> > > > >> > > > > constants_pdef
> > > > >> > > > >
> > > > >> > > > > Hi Xinxia.
> > > > >> > > > >
> > > > >> > > > > Could you please check to make sure that the ush
directory
> > > with
> > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> file
> > > (or
> > > > >> > .bashrc
> > > > >> > > > or
> > > > >> > > > > similar file)?  The parm directory should also be
in your
> > > > >> PYTHONPATH.
> > > > >> > > > >
> > > > >> > > > > For example,
> > > > >> > > > >
> > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > >> > > > >
> > > > >> > > > > Please also check make sure that the path to the
ush
> > directory
> > > > is
> > > > >> > also
> > > > >> > > > > specified your your path environment variable.  For
> example,
> > > > >> > > > >
> > > > >> > > > > set path = (/usr/local/bin \
> > > > >> > > > >                  /usr/local/python/bin/python \
> > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > >> > > > >
> > > > >> > > > > If they are not there, please add them and then
source the
> > > file
> > > > >> (e.g.
> > > > >> > > run
> > > > >> > > > > "source ~/.cshrc").
> > > > >> > > > >
> > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > >> > > > >
> > > > >> > > > > Julie
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via RT
<
> > > > >> > met_help at ucar.edu
> > > > >> > > >
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was acted
upon.
> > > > >> > > > > > Transaction: Ticket created by
Xinxia_Song at outlook.com
> > > > >> > > > > >        Queue: met_help
> > > > >> > > > > >      Subject: ImportError: No module named
> constants_pdef
> > > > >> > > > > >        Owner: Nobody
> > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > >> > > > > >       Status: new
> > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > >> > > Ticket/Display.html?id=79605
> > > > >> > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Hi,
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > ImportError: No module named constants_pdef
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Seems it doesn't recognize constants_pdef as its
module.
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Thanks,
> > > > >> > > > > >
> > > > >> > > > > > Xinxia
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Thu Feb 23 15:02:21 2017

Hi Xinxia.  I suspect that even though you installed Python 2.7 that
Python
2.6.6 is still being used.

Please try running:

python --version

on the command line.

If you see "Python 2..6.6", please add the path for Python 2.7 to the
front
of your path in your ~/.bashrc file.  Then, source your ~/.bashrc file
and
try rerunning

python --version

on the command line.  Hopefully, then you will see the new version.
Then,
please try rerunning master_met_plus.py.

I hope this helps!  Thanks!

Julie

On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I installed myself the 2.7 python, it still got the error when
running:
>
> Traceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 945,
in
> <module>
>
>     analysis_by_lead_time()
>
>   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 107,
in
> analysis_by_lead_time
>
>     util.apply_series_filters(tile_dir, init_times,
> series_lead_filtered_out_dir, p, logger)
>
>   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005, in
> apply_series_filters
>
>     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
> AttributeError: 'module' object has no attribute 'check_output'
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 9:37:53 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Can you please tell me which version of Python you are using?
check_output
> for subprocess was introduced in Python 2.7.    Do you have access
to
> Python version 2.7 or higher?
>
> Thanks,
> Julie
>
> On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I added it to the $PATH and ran the master_met_python.py:
> >
> > [xinxia at chaos ush]$ python master_met_plus.py
> >
> > Traceback (most recent call last):
> >
> >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157, in
> > <module>
> >
> >     main()
> >
> >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100, in
> > main
> >
> >     filtered_out_dir)
> >
> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> > tc_stat
> >
> >     tc_stat_out = subprocess.check_output(tc_cmd,
> > stderr=subprocess.STDOUT, shell=True )
> >
> > AttributeError: 'module' object has no attribute 'check_output'
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 9:07:40 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Unfortunately, your environment does not know where to find
> > run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> > (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file,
> then
> > run "source ~/.bashrc", then trying rerunning.  Please let me know
how
> that
> > goes.
> >
> > Thanks!
> >
> > Julie
> >
> > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I'm running met in a machine that's owned by our department, I
don't
> have
> > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't find
> > it.
> > >
> > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> > environment-modules/3.2.10/
> > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> > >
> > >
> > > But I could find it manually in that directory.
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 8:52:16 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > It looks like you got a successful run of tc_stat - that's great
news!
> > >
> > > I'm not sure what you mean by "Because I don't have the right, I
can't
> > find
> > > run_tc_pairs.py, but I know it's under
> > >
> > > /D2/xinxia/METplus/METplus/ush".
> > >
> > > Can you please explain?  What happened when you ran "which
> > > run_tc_pairs.py"?
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > I removed the space.
> > > >
> > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > >
> > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > >
> > > > DEBUG 2:
> > > >
> > > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > > 20141201_000000
> > > > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-
5.
> > > 2/share/met/poly/CONUS.poly
> > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst
> > > >
> > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > > >
> > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> > > true
> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst
> > > >
> > > >
> > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > > >
> > > >
> > > > Because I don't have the right, I can't find run_tc_pairs.py,
but I
> > know
> > > > it's under
> > > >
> > > > /D2/xinxia/METplus/METplus/ush
> > > >
> > > >
> > > > For Python,
> > > >
> > > > [xinxia at chaos ~]$ which python
> > > >
> > > > /usr/bin/python
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > It looks like there is a space where there should not be a
space
> > (between
> > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > > filter_20141201_00.tcst after the -dump_row option).
> > > >
> > > > Could you please try it again without the space?
> > > >
> > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET
> > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter
> > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > > Regarding the master_met_plus.py run, please try running the
> following
> > > two
> > > > commands and send me the output:
> > > >
> > > > which run_tc_pairs.py
> > > >
> > > > which python
> > > >
> > > > Thanks!
> > > >
> > > > Julie
> > > >
> > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >
> > > > > Hi Julie,
> > > > >
> > > > >
> > > > > After I ran the long one line command:
> > > > >
> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/
> > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > >
> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > > tc_pairs/201412
> > > > >
> > > > > ERROR  :
> > > > >
> > > > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const
char
> > > > > *jobstring) -> unsupported job command options
> > > "filter_20141201_00.tcst".
> > > > >
> > > > > ERROR  :
> > > > >
> > > > >
> > > > > And for the master_met_plus.py, I got the error:
> > > > >
> > > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > > >
> > > > > sh: run_tc_pairs.py: command not found
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > >
> > > > > Xinxia
> > > > >
> > > > > ________________________________
> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > > To: Xinxia_Song at outlook.com
> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > > constants_pdef
> > > > >
> > > > > My apologies, my response should have said, "By default, MET
> version
> > > 5.2
> > > > is
> > > > > compiled using dynamic linking."  It's true for both, but I
see
> > you're
> > > > > using 5.2 and I inadvertently referred to 5.1.
> > > > >
> > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> jpresto at ucar.edu
> > >
> > > > > wrote:
> > > > >
> > > > > > Hi Xinxia.  Regarding the error:
> > > > > >
> > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > > > > libraries: libgsl.so.19: cannot open shared object file:
No such
> > file
> > > > or
> > > > > > directory
> > > > > >
> > > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > > Rather
> > > > > > than compiling the external library code in with the MET
> > executables
> > > > > (which
> > > > > > is
> > > > > > called static linking), it looks for them at runtime.  And
it's
> > > looking
> > > > > > for those "shared object" (.so) library files.
> > > > > >
> > > > > > This should be easy to fix. We just need to tell it where
to find
> > > them,
> > > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).
> Look
> > > in
> > > > > your
> > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there,
> > add
> > > > the
> > > > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example,
> if
> > > the
> > > > > path
> > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
> > > > > l_libs/GSL/gsl-1.16/lib
> > > > > > you would add teh following to your ~/.bashrc file:
> > > > > >
> > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> METplus/MET/external_libs/GSL/
> > > > > > gsl-1.16/lib
> > > > > >
> > > > > > Then save the change and source that file:
> > > > > >
> > > > > >   source ~/.bashrc
> > > > > >
> > > > > > Then, please try rerunning the command manually and let me
know
> if
> > it
> > > > > > works.
> > > > > >
> > > > > > I believe that this was the cause of the initial error you
> received
> > > > from
> > > > > > MET+:
> > > > > >
> > > > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> from
> > > > > calling
> > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> > MET/met-5.2/bin/tc_stat
> > > > -job
> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > -init_inc
> > > > > > 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/ext
> > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask
> > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > > met_help at ucar.edu>
> > > > > > wrote:
> > > > > >
> > > > > >>
> > > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > > >>
> > > > > >> Hi Julie,
> > > > > >>
> > > > > >>
> > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > > >> filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > -init_inc
> > > > > >> 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/ext
> > > > > ract_tiles/20141201_00/
> > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >>
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > > shared
> > > > > >> libraries: libgsl.so.19: cannot open shared object file:
No such
> > > file
> > > > or
> > > > > >> directory
> > > > > >>
> > > > > >>
> > > > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > > > >> xinxia_data directory.
> > > > > >>
> > > > > >>
> > > > > >> Thanks,
> > > > > >>
> > > > > >>
> > > > > >> Xinxia
> > > > > >>
> > > > > >> ________________________________
> > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > > >> To: Xinxia_Song at outlook.com
> > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > > > >> constants_pdef
> > > > > >>
> > > > > >> Hi Xinxia.
> > > > > >>
> > > > > >> I can see that your command, which should have been all
on one
> > line,
> > > > was
> > > > > >> broken up into several lines.  Please try running the
command
> > again,
> > > > > >> making
> > > > > >> sure that the entire command is on one line:
> > > > > >>
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > > > >> -match_points true -dump_row
> > > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >>
> > > > > >> Then, please send the output from that command.
> > > > > >>
> > > > > >> Regarding, your error:
> > > > > >>
> > > > > >> sh: run_tc_pairs.py: command not found
> > > > > >>
> > > > > >> It's strange that would only have occurred after having
changed
> > the
> > > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > > >>
> > > > > >> Thanks!
> > > > > >>
> > > > > >> Julie
> > > > > >>
> > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > > met_help at ucar.edu>
> > > > > >> wrote:
> > > > > >>
> > > > > >> >
> > > > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > > >> >
> > > > > >> > Hi Julie,
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> 2/bin/tc_stat
> > > -job
> > > > > >> > filter -lookin
> > > > > >> >
> > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
> loading
> > > > > shared
> > > > > >> > libraries: libgsl.so.19: cannot open shared object
file: No
> such
> > > > file
> > > > > or
> > > > > >> > directory
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > > >> >
> > > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is
a
> > > directory
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > > >> ract_tiles/20141201_00/
> > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > > > > >> >
> > > > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
> > No
> > > > such
> > > > > >> > file or directory
> > > > > >> >
> > > > > >> >
> > > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py, it
> > > says:
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > > >> >
> > > > > >> > sh: run_tc_pairs.py: command not found
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > Thanks,
> > > > > >> >
> > > > > >> >
> > > > > >> > Xinxia
> > > > > >> >
> > > > > >> >
> > > > > >> > ________________________________
> > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > > >> > To: Xinxia_Song at outlook.com
> > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > > >> > constants_pdef
> > > > > >> >
> > > > > >> > Thank you.  Unfortunately, the level of detail in the
log file
> > > > wasn't
> > > > > >> what
> > > > > >> > I hoped for.  I'd like to have you try two things.
> > > > > >> >
> > > > > >> > First, could you please send me your output of your
manual run
> > of
> > > > the
> > > > > >> > following?
> > > > > >> >
> > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin ML
> > > > > >> > -out_init_mask
> > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > >> >
> > > > > >> > Second, could you please change your log level in your
> > > configuration
> > > > > >> file
> > > > > >> > from
> > > > > >> >
> > > > > >> > LOG_LEVEL = "INFO"
> > > > > >> >
> > > > > >> > to
> > > > > >> >
> > > > > >> > LOG_LEVEL = "DEBUG"
> > > > > >> >
> > > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > > >> >
> > > > > >> > Thank you!
> > > > > >> >
> > > > > >> > Julie
> > > > > >> >
> > > > > >> >
> > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > > > met_help at ucar.edu
> > > > > >> >
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > >
> > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > > >> > >
> > > > > >> > > Hi Julie,
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > I uploaded the log file under xinxia_data directory.
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > Thanks,
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > Xinxia
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > ________________________________
> > > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > > >> > > To: Xinxia_Song at outlook.com
> > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > > >> > > constants_pdef
> > > > > >> > >
> > > > > >> > > Hi Xinxia.
> > > > > >> > >
> > > > > >> > > I think it would be helpful if I could take a look at
the
> log
> > > > file.
> > > > > >> > Could
> > > > > >> > > you please upload your file to our anonymous ftp site
as
> > follows
> > > > so
> > > > > >> that
> > > > > >> > I
> > > > > >> > > can take a look?
> > > > > >> > >
> > > > > >> > >    http://www.dtcenter.org/met/
> users/support/met_help.php#ftp
> > > > > >> > >
> > > > > >> > > Also, could you please try running the following
manually
> and
> > > send
> > > > > the
> > > > > >> > > output to me?
> > > > > >> > >
> > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> > -lookin
> > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > > 20141201_00
> > > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> ML
> > > > > >> > > -out_init_mask
> > > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > >> > >
> > > > > >> > > Thank you!
> > > > > >> > >
> > > > > >> > > Julie
> > > > > >> > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<
> > > > > >> met_help at ucar.edu>
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > >
> > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > > >> > > >
> > > > > >> > > > Hi Julie,
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Now I can run the program, but when I look at the
log file
> > in
> > > > the
> > > > > >> > output,
> > > > > >> > > > it shows error below:
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> > ush/run_tc_stat.py:tc_stat
> > > > from
> > > > > >> > > calling
> > > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > > /met-5.2/bin/tc_stat
> > > > > >> > -job
> > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > > > > >> -init_inc
> > > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > > /D2/xinxia/METplus/MET/out/
> > > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> > ML
> > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > > >> > 2/share/met/poly/CONUS.poly
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > How should I fix it?
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Thanks,
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Xinxia
> > > > > >> > > >
> > > > > >> > > > ________________________________
> > > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > > >> > > > To: Xinxia_Song at outlook.com
> > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > > named
> > > > > >> > > > constants_pdef
> > > > > >> > > >
> > > > > >> > > > Hi Xinxia.
> > > > > >> > > >
> > > > > >> > > > I believe that python doesn't know how to find the
module
> > > > because
> > > > > >> the
> > > > > >> > ush
> > > > > >> > > > directory is not in your PYTHONPATH.  Both the parm
and
> ush
> > > > > >> directory
> > > > > >> > > need
> > > > > >> > > > to be specified in your PYTHONPATH.  Please add the
ush
> > > > directory
> > > > > to
> > > > > >> > your
> > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how
it goes.
> > > > > >> > > >
> > > > > >> > > > Thanks,
> > > > > >> > > > Julie
> > > > > >> > > >
> > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via
RT <
> > > > > >> > met_help at ucar.edu>
> > > > > >> > > > wrote:
> > > > > >> > > >
> > > > > >> > > > >
> > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > > Ticket/Display.html?id=79605
> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Hi Julie,
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Since I don't have setenv, I added these 3
sentence into
> > my
> > > > > >> .bashrc
> > > > > >> > > file:
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > export
PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > > >> > > > >
> > > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables
> > are
> > > > set,
> > > > > >> but
> > > > > >> > > the
> > > > > >> > > > > program still can't find the module.
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Thanks,
> > > > > >> > > > >
> > > > > >> > > > > Xinxia
> > > > > >> > > > >
> > > > > >> > > > > ________________________________
> > > > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> > > module
> > > > > >> named
> > > > > >> > > > > constants_pdef
> > > > > >> > > > >
> > > > > >> > > > > Hi Xinxia.
> > > > > >> > > > >
> > > > > >> > > > > Could you please check to make sure that the ush
> directory
> > > > with
> > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> > file
> > > > (or
> > > > > >> > .bashrc
> > > > > >> > > > or
> > > > > >> > > > > similar file)?  The parm directory should also be
in
> your
> > > > > >> PYTHONPATH.
> > > > > >> > > > >
> > > > > >> > > > > For example,
> > > > > >> > > > >
> > > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > > >> > > > >
> > > > > >> > > > > Please also check make sure that the path to the
ush
> > > directory
> > > > > is
> > > > > >> > also
> > > > > >> > > > > specified your your path environment variable.
For
> > example,
> > > > > >> > > > >
> > > > > >> > > > > set path = (/usr/local/bin \
> > > > > >> > > > >                  /usr/local/python/bin/python \
> > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > > >> > > > >
> > > > > >> > > > > If they are not there, please add them and then
source
> the
> > > > file
> > > > > >> (e.g.
> > > > > >> > > run
> > > > > >> > > > > "source ~/.cshrc").
> > > > > >> > > > >
> > > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > > >> > > > >
> > > > > >> > > > > Julie
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via
RT <
> > > > > >> > met_help at ucar.edu
> > > > > >> > > >
> > > > > >> > > > > wrote:
> > > > > >> > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was
acted
> upon.
> > > > > >> > > > > > Transaction: Ticket created by
> Xinxia_Song at outlook.com
> > > > > >> > > > > >        Queue: met_help
> > > > > >> > > > > >      Subject: ImportError: No module named
> > constants_pdef
> > > > > >> > > > > >        Owner: Nobody
> > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > > >> > > > > >       Status: new
> > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > > >> > > Ticket/Display.html?id=79605
> > > > > >> > > > >
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Hi,
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > ImportError: No module named constants_pdef
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Seems it doesn't recognize constants_pdef as
its
> module.
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Thanks,
> > > > > >> > > > > >
> > > > > >> > > > > > Xinxia
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Thu Feb 23 16:28:27 2017

Hi Julie,


The version is set to be 2.7+. When I ran master_met_plus.py, it seems
it will run forever. So I killed it, and got the following:

[xinxia at chaos ush]$ python master_met_plus.py

^CTraceback (most recent call last):

  File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157, in
<module>

    main()

  File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100, in
main

    filtered_out_dir)

  File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
tc_stat

    tc_stat_out = subprocess.check_output(tc_cmd,
stderr=subprocess.STDOUT, shell=True )

  File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line 213,
in check_output

    output, unused_err = process.communicate()

  File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line 471,
in communicate

    stdout = _eintr_retry_call(self.stdout.read)

  File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line 121,
in _eintr_retry_call

    return func(*args)

KeyboardInterrupt


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, February 24, 2017 12:02:21 PM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.  I suspect that even though you installed Python 2.7 that
Python
2.6.6 is still being used.

Please try running:

python --version

on the command line.

If you see "Python 2..6.6", please add the path for Python 2.7 to the
front
of your path in your ~/.bashrc file.  Then, source your ~/.bashrc file
and
try rerunning

python --version

on the command line.  Hopefully, then you will see the new version.
Then,
please try rerunning master_met_plus.py.

I hope this helps!  Thanks!

Julie

On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I installed myself the 2.7 python, it still got the error when
running:
>
> Traceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 945,
in
> <module>
>
>     analysis_by_lead_time()
>
>   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line 107,
in
> analysis_by_lead_time
>
>     util.apply_series_filters(tile_dir, init_times,
> series_lead_filtered_out_dir, p, logger)
>
>   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005, in
> apply_series_filters
>
>     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
> AttributeError: 'module' object has no attribute 'check_output'
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 9:37:53 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Can you please tell me which version of Python you are using?
check_output
> for subprocess was introduced in Python 2.7.    Do you have access
to
> Python version 2.7 or higher?
>
> Thanks,
> Julie
>
> On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I added it to the $PATH and ran the master_met_python.py:
> >
> > [xinxia at chaos ush]$ python master_met_plus.py
> >
> > Traceback (most recent call last):
> >
> >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157, in
> > <module>
> >
> >     main()
> >
> >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100, in
> > main
> >
> >     filtered_out_dir)
> >
> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> > tc_stat
> >
> >     tc_stat_out = subprocess.check_output(tc_cmd,
> > stderr=subprocess.STDOUT, shell=True )
> >
> > AttributeError: 'module' object has no attribute 'check_output'
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 9:07:40 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Unfortunately, your environment does not know where to find
> > run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> > (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file,
> then
> > run "source ~/.bashrc", then trying rerunning.  Please let me know
how
> that
> > goes.
> >
> > Thanks!
> >
> > Julie
> >
> > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I'm running met in a machine that's owned by our department, I
don't
> have
> > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't find
> > it.
> > >
> > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> > environment-modules/3.2.10/
> > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> > >
> > >
> > > But I could find it manually in that directory.
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 8:52:16 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Hi Xinxia.
> > >
> > > It looks like you got a successful run of tc_stat - that's great
news!
> > >
> > > I'm not sure what you mean by "Because I don't have the right, I
can't
> > find
> > > run_tc_pairs.py, but I know it's under
> > >
> > > /D2/xinxia/METplus/METplus/ush".
> > >
> > > Can you please explain?  What happened when you ran "which
> > > run_tc_pairs.py"?
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > I removed the space.
> > > >
> > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > > > 20141201_00 -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > >
> > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > >
> > > > DEBUG 2:
> > > >
> > > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > > 20141201_000000
> > > > -match_points true -out_init_mask /D2/xinxia/METplus/MET/met-
5.
> > > 2/share/met/poly/CONUS.poly
> > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst
> > > >
> > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > > >
> > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
-match_points
> > > true
> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly
> > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > filter_20141201_00.tcst
> > > >
> > > >
> > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > > >
> > > >
> > > > Because I don't have the right, I can't find run_tc_pairs.py,
but I
> > know
> > > > it's under
> > > >
> > > > /D2/xinxia/METplus/METplus/ush
> > > >
> > > >
> > > > For Python,
> > > >
> > > > [xinxia at chaos ~]$ which python
> > > >
> > > > /usr/bin/python
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > It looks like there is a space where there should not be a
space
> > (between
> > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > > filter_20141201_00.tcst after the -dump_row option).
> > > >
> > > > Could you please try it again without the space?
> > > >
> > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> MET
> > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat -job
> > > > filter
> > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask
> > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > >
> > > > Regarding the master_met_plus.py run, please try running the
> following
> > > two
> > > > commands and send me the output:
> > > >
> > > > which run_tc_pairs.py
> > > >
> > > > which python
> > > >
> > > > Thanks!
> > > >
> > > > Julie
> > > >
> > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >
> > > > > Hi Julie,
> > > > >
> > > > >
> > > > > After I ran the long one line command:
> > > > >
> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> > > > extract_tiles/20141201_00/
> > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > >
> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > > tc_pairs/201412
> > > > >
> > > > > ERROR  :
> > > > >
> > > > > ERROR  : TCStatJob *TCStatJobFactory::new_tc_stat_job(const
char
> > > > > *jobstring) -> unsupported job command options
> > > "filter_20141201_00.tcst".
> > > > >
> > > > > ERROR  :
> > > > >
> > > > >
> > > > > And for the master_met_plus.py, I got the error:
> > > > >
> > > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > > >
> > > > > sh: run_tc_pairs.py: command not found
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > >
> > > > > Xinxia
> > > > >
> > > > > ________________________________
> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > > To: Xinxia_Song at outlook.com
> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > > constants_pdef
> > > > >
> > > > > My apologies, my response should have said, "By default, MET
> version
> > > 5.2
> > > > is
> > > > > compiled using dynamic linking."  It's true for both, but I
see
> > you're
> > > > > using 5.2 and I inadvertently referred to 5.1.
> > > > >
> > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> jpresto at ucar.edu
> > >
> > > > > wrote:
> > > > >
> > > > > > Hi Xinxia.  Regarding the error:
> > > > > >
> > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > shared
> > > > > > libraries: libgsl.so.19: cannot open shared object file:
No such
> > file
> > > > or
> > > > > > directory
> > > > > >
> > > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > > Rather
> > > > > > than compiling the external library code in with the MET
> > executables
> > > > > (which
> > > > > > is
> > > > > > called static linking), it looks for them at runtime.  And
it's
> > > looking
> > > > > > for those "shared object" (.so) library files.
> > > > > >
> > > > > > This should be easy to fix. We just need to tell it where
to find
> > > them,
> > > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).
> Look
> > > in
> > > > > your
> > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined in
there,
> > add
> > > > the
> > > > > > path to the libgsl.so.19 to the end of it.  If not, add an
> > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example,
> if
> > > the
> > > > > path
> > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
> > > > > l_libs/GSL/gsl-1.16/lib
> > > > > > you would add teh following to your ~/.bashrc file:
> > > > > >
> > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> METplus/MET/external_libs/GSL/
> > > > > > gsl-1.16/lib
> > > > > >
> > > > > > Then save the change and source that file:
> > > > > >
> > > > > >   source ~/.bashrc
> > > > > >
> > > > > > Then, please try rerunning the command manually and let me
know
> if
> > it
> > > > > > works.
> > > > > >
> > > > > > I believe that this was the cause of the initial error you
> received
> > > > from
> > > > > > MET+:
> > > > > >
> > > > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> from
> > > > > calling
> > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> > MET/met-5.2/bin/tc_stat
> > > > -job
> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > -init_inc
> > > > > > 20141201_00 -match_points true -dump_row
> > > /D2/xinxia/METplus/MET/out/ext
> > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > -out_init_mask
> > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > > met_help at ucar.edu>
> > > > > > wrote:
> > > > > >
> > > > > >>
> > > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > > >>
> > > > > >> Hi Julie,
> > > > > >>
> > > > > >>
> > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > > >> filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > -init_inc
> > > > > >> 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/ext
> > > > > ract_tiles/20141201_00/
> > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >>
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
loading
> > > > shared
> > > > > >> libraries: libgsl.so.19: cannot open shared object file:
No such
> > > file
> > > > or
> > > > > >> directory
> > > > > >>
> > > > > >>
> > > > > >> And I uploaded the configuration file (constants_pdef.py)
under
> > > > > >> xinxia_data directory.
> > > > > >>
> > > > > >>
> > > > > >> Thanks,
> > > > > >>
> > > > > >>
> > > > > >> Xinxia
> > > > > >>
> > > > > >> ________________________________
> > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > > >> To: Xinxia_Song at outlook.com
> > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > > > > >> constants_pdef
> > > > > >>
> > > > > >> Hi Xinxia.
> > > > > >>
> > > > > >> I can see that your command, which should have been all
on one
> > line,
> > > > was
> > > > > >> broken up into several lines.  Please try running the
command
> > again,
> > > > > >> making
> > > > > >> sure that the entire command is on one line:
> > > > > >>
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
-lookin
> > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > 20141201_00
> > > > > >> -match_points true -dump_row
> > > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >>
> > > > > >> Then, please send the output from that command.
> > > > > >>
> > > > > >> Regarding, your error:
> > > > > >>
> > > > > >> sh: run_tc_pairs.py: command not found
> > > > > >>
> > > > > >> It's strange that would only have occurred after having
changed
> > the
> > > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > > >>
> > > > > >> Thanks!
> > > > > >>
> > > > > >> Julie
> > > > > >>
> > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > > met_help at ucar.edu>
> > > > > >> wrote:
> > > > > >>
> > > > > >> >
> > > > > >> > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > > >> >
> > > > > >> > Hi Julie,
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> 2/bin/tc_stat
> > > -job
> > > > > >> > filter -lookin
> > > > > >> >
> > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
> loading
> > > > > shared
> > > > > >> > libraries: libgsl.so.19: cannot open shared object
file: No
> such
> > > > file
> > > > > or
> > > > > >> > directory
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > > >> >
> > > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412: is
a
> > > directory
> > > > > >> >
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > > >> ract_tiles/20141201_00/
> > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > > > > >> >
> > > > > >> > -bash:
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/:
> > No
> > > > such
> > > > > >> > file or directory
> > > > > >> >
> > > > > >> >
> > > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py, it
> > > says:
> > > > > >> >
> > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > > >> >
> > > > > >> > sh: run_tc_pairs.py: command not found
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > Thanks,
> > > > > >> >
> > > > > >> >
> > > > > >> > Xinxia
> > > > > >> >
> > > > > >> >
> > > > > >> > ________________________________
> > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > > >> > To: Xinxia_Song at outlook.com
> > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > > >> > constants_pdef
> > > > > >> >
> > > > > >> > Thank you.  Unfortunately, the level of detail in the
log file
> > > > wasn't
> > > > > >> what
> > > > > >> > I hoped for.  I'd like to have you try two things.
> > > > > >> >
> > > > > >> > First, could you please send me your output of your
manual run
> > of
> > > > the
> > > > > >> > following?
> > > > > >> >
> > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin ML
> > > > > >> > -out_init_mask
> > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > >> >
> > > > > >> > Second, could you please change your log level in your
> > > configuration
> > > > > >> file
> > > > > >> > from
> > > > > >> >
> > > > > >> > LOG_LEVEL = "INFO"
> > > > > >> >
> > > > > >> > to
> > > > > >> >
> > > > > >> > LOG_LEVEL = "DEBUG"
> > > > > >> >
> > > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > > >> >
> > > > > >> > Thank you!
> > > > > >> >
> > > > > >> > Julie
> > > > > >> >
> > > > > >> >
> > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT <
> > > > > met_help at ucar.edu
> > > > > >> >
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > >
> > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > > >> > >
> > > > > >> > > Hi Julie,
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > I uploaded the log file under xinxia_data directory.
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > Thanks,
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > Xinxia
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > ________________________________
> > > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > > >> > > To: Xinxia_Song at outlook.com
> > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > > >> > > constants_pdef
> > > > > >> > >
> > > > > >> > > Hi Xinxia.
> > > > > >> > >
> > > > > >> > > I think it would be helpful if I could take a look at
the
> log
> > > > file.
> > > > > >> > Could
> > > > > >> > > you please upload your file to our anonymous ftp site
as
> > follows
> > > > so
> > > > > >> that
> > > > > >> > I
> > > > > >> > > can take a look?
> > > > > >> > >
> > > > > >> > >    http://www.dtcenter.org/met/
> users/support/met_help.php#ftp
> > > > > >> > >
> > > > > >> > > Also, could you please try running the following
manually
> and
> > > send
> > > > > the
> > > > > >> > > output to me?
> > > > > >> > >
> > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> > -lookin
> > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > > 20141201_00
> > > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> ML
> > > > > >> > > -out_init_mask
> > > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > >> > >
> > > > > >> > > Thank you!
> > > > > >> > >
> > > > > >> > > Julie
> > > > > >> > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via RT
<
> > > > > >> met_help at ucar.edu>
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > >
> > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > > >> > > >
> > > > > >> > > > Hi Julie,
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Now I can run the program, but when I look at the
log file
> > in
> > > > the
> > > > > >> > output,
> > > > > >> > > > it shows error below:
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> > ush/run_tc_stat.py:tc_stat
> > > > from
> > > > > >> > > calling
> > > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > > /met-5.2/bin/tc_stat
> > > > > >> > -job
> > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> > > > > >> -init_inc
> > > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > > /D2/xinxia/METplus/MET/out/
> > > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> > ML
> > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > > >> > 2/share/met/poly/CONUS.poly
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > How should I fix it?
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Thanks,
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Xinxia
> > > > > >> > > >
> > > > > >> > > > ________________________________
> > > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > > >> > > > To: Xinxia_Song at outlook.com
> > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > > named
> > > > > >> > > > constants_pdef
> > > > > >> > > >
> > > > > >> > > > Hi Xinxia.
> > > > > >> > > >
> > > > > >> > > > I believe that python doesn't know how to find the
module
> > > > because
> > > > > >> the
> > > > > >> > ush
> > > > > >> > > > directory is not in your PYTHONPATH.  Both the parm
and
> ush
> > > > > >> directory
> > > > > >> > > need
> > > > > >> > > > to be specified in your PYTHONPATH.  Please add the
ush
> > > > directory
> > > > > to
> > > > > >> > your
> > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how
it goes.
> > > > > >> > > >
> > > > > >> > > > Thanks,
> > > > > >> > > > Julie
> > > > > >> > > >
> > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via
RT <
> > > > > >> > met_help at ucar.edu>
> > > > > >> > > > wrote:
> > > > > >> > > >
> > > > > >> > > > >
> > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > > Ticket/Display.html?id=79605
> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Hi Julie,
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Since I don't have setenv, I added these 3
sentence into
> > my
> > > > > >> .bashrc
> > > > > >> > > file:
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > export
PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > > >> > > > >
> > > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > I sourced the ~/.bashrc, and checked that the
variables
> > are
> > > > set,
> > > > > >> but
> > > > > >> > > the
> > > > > >> > > > > program still can't find the module.
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > Thanks,
> > > > > >> > > > >
> > > > > >> > > > > Xinxia
> > > > > >> > > > >
> > > > > >> > > > > ________________________________
> > > > > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> > > module
> > > > > >> named
> > > > > >> > > > > constants_pdef
> > > > > >> > > > >
> > > > > >> > > > > Hi Xinxia.
> > > > > >> > > > >
> > > > > >> > > > > Could you please check to make sure that the ush
> directory
> > > > with
> > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> > file
> > > > (or
> > > > > >> > .bashrc
> > > > > >> > > > or
> > > > > >> > > > > similar file)?  The parm directory should also be
in
> your
> > > > > >> PYTHONPATH.
> > > > > >> > > > >
> > > > > >> > > > > For example,
> > > > > >> > > > >
> > > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > > >> > > > >
> > > > > >> > > > > Please also check make sure that the path to the
ush
> > > directory
> > > > > is
> > > > > >> > also
> > > > > >> > > > > specified your your path environment variable.
For
> > example,
> > > > > >> > > > >
> > > > > >> > > > > set path = (/usr/local/bin \
> > > > > >> > > > >                  /usr/local/python/bin/python \
> > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > > >> > > > >
> > > > > >> > > > > If they are not there, please add them and then
source
> the
> > > > file
> > > > > >> (e.g.
> > > > > >> > > run
> > > > > >> > > > > "source ~/.cshrc").
> > > > > >> > > > >
> > > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > > >> > > > >
> > > > > >> > > > > Julie
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song via
RT <
> > > > > >> > met_help at ucar.edu
> > > > > >> > > >
> > > > > >> > > > > wrote:
> > > > > >> > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was
acted
> upon.
> > > > > >> > > > > > Transaction: Ticket created by
> Xinxia_Song at outlook.com
> > > > > >> > > > > >        Queue: met_help
> > > > > >> > > > > >      Subject: ImportError: No module named
> > constants_pdef
> > > > > >> > > > > >        Owner: Nobody
> > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > > >> > > > > >       Status: new
> > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > > >> > > Ticket/Display.html?id=79605
> > > > > >> > > > >
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Hi,
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > ImportError: No module named constants_pdef
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Seems it doesn't recognize constants_pdef as
its
> module.
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Thanks,
> > > > > >> > > > > >
> > > > > >> > > > > > Xinxia
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Fri Feb 24 09:43:27 2017

Hi Xinxia.  Running the entire three months of data could certainly
take a
long time.  I am hoping to get an estimate on how long it took to run
the
three month data set here, but have not been able to obtain that
number
yet.   It sounds the code was running successfully for you.  If you're
eager to take a lot at some output, I would suggest running a smaller
subset of the data, or perhaps you could set up the whole three month
to
run over the weekend.  I would suggest letting the code run to
completion
for either a smaller subset or for the entire subset and then checking
the
log file for errors.  I hope that helps.  Please let me know if you
have
any questions or encounter any issues.

Thanks,
Julie

On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> The version is set to be 2.7+. When I ran master_met_plus.py, it
seems it
> will run forever. So I killed it, and got the following:
>
> [xinxia at chaos ush]$ python master_met_plus.py
>
> ^CTraceback (most recent call last):
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
> <module>
>
>     main()
>
>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
> main
>
>     filtered_out_dir)
>
>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
> tc_stat
>
>     tc_stat_out = subprocess.check_output(tc_cmd,
> stderr=subprocess.STDOUT, shell=True )
>
>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
213, in
> check_output
>
>     output, unused_err = process.communicate()
>
>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
471, in
> communicate
>
>     stdout = _eintr_retry_call(self.stdout.read)
>
>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
121, in
> _eintr_retry_call
>
>     return func(*args)
>
> KeyboardInterrupt
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, February 24, 2017 12:02:21 PM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.  I suspect that even though you installed Python 2.7 that
Python
> 2.6.6 is still being used.
>
> Please try running:
>
> python --version
>
> on the command line.
>
> If you see "Python 2..6.6", please add the path for Python 2.7 to
the front
> of your path in your ~/.bashrc file.  Then, source your ~/.bashrc
file and
> try rerunning
>
> python --version
>
> on the command line.  Hopefully, then you will see the new version.
Then,
> please try rerunning master_met_plus.py.
>
> I hope this helps!  Thanks!
>
> Julie
>
> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I installed myself the 2.7 python, it still got the error when
running:
> >
> > Traceback (most recent call last):
> >
> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
945, in
> > <module>
> >
> >     analysis_by_lead_time()
> >
> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
107, in
> > analysis_by_lead_time
> >
> >     util.apply_series_filters(tile_dir, init_times,
> > series_lead_filtered_out_dir, p, logger)
> >
> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005, in
> > apply_series_filters
> >
> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
> >
> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> > tc_stat
> >
> >     tc_stat_out = subprocess.check_output(tc_cmd,
> > stderr=subprocess.STDOUT, shell=True )
> >
> > AttributeError: 'module' object has no attribute 'check_output'
> >
> >
> > Thanks,
> >
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Friday, February 24, 2017 9:37:53 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > Can you please tell me which version of Python you are using?
> check_output
> > for subprocess was introduced in Python 2.7.    Do you have access
to
> > Python version 2.7 or higher?
> >
> > Thanks,
> > Julie
> >
> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >
> > > Hi Julie,
> > >
> > >
> > > I added it to the $PATH and ran the master_met_python.py:
> > >
> > > [xinxia at chaos ush]$ python master_met_plus.py
> > >
> > > Traceback (most recent call last):
> > >
> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157, in
> > > <module>
> > >
> > >     main()
> > >
> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100, in
> > > main
> > >
> > >     filtered_out_dir)
> > >
> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> > > tc_stat
> > >
> > >     tc_stat_out = subprocess.check_output(tc_cmd,
> > > stderr=subprocess.STDOUT, shell=True )
> > >
> > > AttributeError: 'module' object has no attribute 'check_output'
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Xinxia
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Friday, February 24, 2017 9:07:40 AM
> > > To: Xinxia_Song at outlook.com
> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > constants_pdef
> > >
> > > Unfortunately, your environment does not know where to find
> > > run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
> > > (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file,
> > then
> > > run "source ~/.bashrc", then trying rerunning.  Please let me
know how
> > that
> > > goes.
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > > >
> > > > Hi Julie,
> > > >
> > > >
> > > > I'm running met in a machine that's owned by our department, I
don't
> > have
> > > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't
> find
> > > it.
> > > >
> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> > > environment-modules/3.2.10/
> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> > > >
> > > >
> > > > But I could find it manually in that directory.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > > Xinxia
> > > >
> > > > ________________________________
> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > Sent: Friday, February 24, 2017 8:52:16 AM
> > > > To: Xinxia_Song at outlook.com
> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > constants_pdef
> > > >
> > > > Hi Xinxia.
> > > >
> > > > It looks like you got a successful run of tc_stat - that's
great
> news!
> > > >
> > > > I'm not sure what you mean by "Because I don't have the right,
I
> can't
> > > find
> > > > run_tc_pairs.py, but I know it's under
> > > >
> > > > /D2/xinxia/METplus/METplus/ush".
> > > >
> > > > Can you please explain?  What happened when you ran "which
> > > > run_tc_pairs.py"?
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> > met_help at ucar.edu>
> > > > wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > >
> > > > > Hi Julie,
> > > > >
> > > > >
> > > > > I removed the space.
> > > > >
> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> > -init_inc
> > > > > 20141201_00 -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > 2/share/met/poly/CONUS.poly
> > > > >
> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > > tc_pairs/201412
> > > > >
> > > > > DEBUG 2:
> > > > >
> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
> > > > 20141201_000000
> > > > > -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.
> > > > 2/share/met/poly/CONUS.poly
> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > > filter_20141201_00.tcst
> > > > >
> > > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > > > >
> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
> -match_points
> > > > true
> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > 2/share/met/poly/CONUS.poly
> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > > filter_20141201_00.tcst
> > > > >
> > > > >
> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > > > >
> > > > >
> > > > > Because I don't have the right, I can't find
run_tc_pairs.py, but I
> > > know
> > > > > it's under
> > > > >
> > > > > /D2/xinxia/METplus/METplus/ush
> > > > >
> > > > >
> > > > > For Python,
> > > > >
> > > > > [xinxia at chaos ~]$ which python
> > > > >
> > > > > /usr/bin/python
> > > > >
> > > > >
> > > > > Xinxia
> > > > >
> > > > > ________________________________
> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
> > > > > To: Xinxia_Song at outlook.com
> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > > > > constants_pdef
> > > > >
> > > > > Hi Xinxia.
> > > > >
> > > > > It looks like there is a space where there should not be a
space
> > > (between
> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> > > > > filter_20141201_00.tcst after the -dump_row option).
> > > > >
> > > > > Could you please try it again without the space?
> > > > >
> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
calling
> > MET
> > > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> -job
> > > > > filter
> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > > 20141201_00
> > > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin ML
> > > > > -out_init_mask
> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > >
> > > > > Regarding the master_met_plus.py run, please try running the
> > following
> > > > two
> > > > > commands and send me the output:
> > > > >
> > > > > which run_tc_pairs.py
> > > > >
> > > > > which python
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Julie
> > > > >
> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> > > met_help at ucar.edu>
> > > > > wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > > > > >
> > > > > > Hi Julie,
> > > > > >
> > > > > >
> > > > > > After I ran the long one line command:
> > > > > >
> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> > -job
> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > -init_inc
> > > > > > 20141201_00 -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/
> > > > > extract_tiles/20141201_00/
> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > >
> > > > > >
> > > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> > > > tc_pairs/201412
> > > > > >
> > > > > > ERROR  :
> > > > > >
> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const char
> > > > > > *jobstring) -> unsupported job command options
> > > > "filter_20141201_00.tcst".
> > > > > >
> > > > > > ERROR  :
> > > > > >
> > > > > >
> > > > > > And for the master_met_plus.py, I got the error:
> > > > > >
> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
> > > > > >
> > > > > > sh: run_tc_pairs.py: command not found
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > >
> > > > > > Xinxia
> > > > > >
> > > > > > ________________________________
> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > > > > > To: Xinxia_Song at outlook.com
> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > > > > > constants_pdef
> > > > > >
> > > > > > My apologies, my response should have said, "By default,
MET
> > version
> > > > 5.2
> > > > > is
> > > > > > compiled using dynamic linking."  It's true for both, but
I see
> > > you're
> > > > > > using 5.2 and I inadvertently referred to 5.1.
> > > > > >
> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> > jpresto at ucar.edu
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Xinxia.  Regarding the error:
> > > > > > >
> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
> loading
> > > > shared
> > > > > > > libraries: libgsl.so.19: cannot open shared object file:
No
> such
> > > file
> > > > > or
> > > > > > > directory
> > > > > > >
> > > > > > > By default, MET version 5.1 is compiled using dynamic
linking.
> > > > Rather
> > > > > > > than compiling the external library code in with the MET
> > > executables
> > > > > > (which
> > > > > > > is
> > > > > > > called static linking), it looks for them at runtime.
And it's
> > > > looking
> > > > > > > for those "shared object" (.so) library files.
> > > > > > >
> > > > > > > This should be easy to fix. We just need to tell it
where to
> find
> > > > them,
> > > > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).
> > Look
> > > > in
> > > > > > your
> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined
in
> there,
> > > add
> > > > > the
> > > > > > > path to the libgsl.so.19 to the end of it.  If not, add
an
> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
example,
> > if
> > > > the
> > > > > > path
> > > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
> > > > > > l_libs/GSL/gsl-1.16/lib
> > > > > > > you would add teh following to your ~/.bashrc file:
> > > > > > >
> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> > METplus/MET/external_libs/GSL/
> > > > > > > gsl-1.16/lib
> > > > > > >
> > > > > > > Then save the change and source that file:
> > > > > > >
> > > > > > >   source ~/.bashrc
> > > > > > >
> > > > > > > Then, please try rerunning the command manually and let
me know
> > if
> > > it
> > > > > > > works.
> > > > > > >
> > > > > > > I believe that this was the cause of the initial error
you
> > received
> > > > > from
> > > > > > > MET+:
> > > > > > >
> > > > > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
> > from
> > > > > > calling
> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> > > MET/met-5.2/bin/tc_stat
> > > > > -job
> > > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > > -init_inc
> > > > > > > 20141201_00 -match_points true -dump_row
> > > > /D2/xinxia/METplus/MET/out/ext
> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> > > > > -out_init_mask
> > > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> > > > > > >
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Julie
> > > > > > >
> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
> > > > > met_help at ucar.edu>
> > > > > > > wrote:
> > > > > > >
> > > > > > >>
> > > > > > >> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > > > > > >>
> > > > > > >> Hi Julie,
> > > > > > >>
> > > > > > >>
> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> 2/bin/tc_stat
> > > -job
> > > > > > >> filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > > > -init_inc
> > > > > > >> 20141201_00 -match_points true -dump_row
> > > > > /D2/xinxia/METplus/MET/out/ext
> > > > > > ract_tiles/20141201_00/
> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > > > > > >>
> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
> loading
> > > > > shared
> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file: No
> such
> > > > file
> > > > > or
> > > > > > >> directory
> > > > > > >>
> > > > > > >>
> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
> under
> > > > > > >> xinxia_data directory.
> > > > > > >>
> > > > > > >>
> > > > > > >> Thanks,
> > > > > > >>
> > > > > > >>
> > > > > > >> Xinxia
> > > > > > >>
> > > > > > >> ________________________________
> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > > > > > >> To: Xinxia_Song at outlook.com
> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > > named
> > > > > > >> constants_pdef
> > > > > > >>
> > > > > > >> Hi Xinxia.
> > > > > > >>
> > > > > > >> I can see that your command, which should have been all
on one
> > > line,
> > > > > was
> > > > > > >> broken up into several lines.  Please try running the
command
> > > again,
> > > > > > >> making
> > > > > > >> sure that the entire command is on one line:
> > > > > > >>
> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
> -lookin
> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
> > > 20141201_00
> > > > > > >> -match_points true -dump_row
> > > > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > > > > > >>
> > > > > > >> Then, please send the output from that command.
> > > > > > >>
> > > > > > >> Regarding, your error:
> > > > > > >>
> > > > > > >> sh: run_tc_pairs.py: command not found
> > > > > > >>
> > > > > > >> It's strange that would only have occurred after having
> changed
> > > the
> > > > > > >> LOG_LEVEL.  Could you please send us your configuration
file?
> > > > > > >>
> > > > > > >> Thanks!
> > > > > > >>
> > > > > > >> Julie
> > > > > > >>
> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
> > > > > met_help at ucar.edu>
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> >
> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79605
> > >
> > > > > > >> >
> > > > > > >> > Hi Julie,
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> > 2/bin/tc_stat
> > > > -job
> > > > > > >> > filter -lookin
> > > > > > >> >
> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> > loading
> > > > > > shared
> > > > > > >> > libraries: libgsl.so.19: cannot open shared object
file: No
> > such
> > > > > file
> > > > > > or
> > > > > > >> > directory
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> > > tc_pairs/201412
> > > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> > > > > > >> >
> > > > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412:
is a
> > > > directory
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> > > > > > >> ract_tiles/20141201_00/
> > > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > > > > > >> >
> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/
> extract_tiles/20141201_00/:
> > > No
> > > > > such
> > > > > > >> > file or directory
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > After I change the LOG_LEVEL, I ran the
master_met_plus.py,
> it
> > > > says:
> > > > > > >> >
> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > > > > > >> >
> > > > > > >> > sh: run_tc_pairs.py: command not found
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > Thanks,
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > Xinxia
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > ________________________________
> > > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > > > > > >> > To: Xinxia_Song at outlook.com
> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > > > named
> > > > > > >> > constants_pdef
> > > > > > >> >
> > > > > > >> > Thank you.  Unfortunately, the level of detail in the
log
> file
> > > > > wasn't
> > > > > > >> what
> > > > > > >> > I hoped for.  I'd like to have you try two things.
> > > > > > >> >
> > > > > > >> > First, could you please send me your output of your
manual
> run
> > > of
> > > > > the
> > > > > > >> > following?
> > > > > > >> >
> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> > -lookin
> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > > 20141201_00
> > > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin
> ML
> > > > > > >> > -out_init_mask
> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > > >> >
> > > > > > >> > Second, could you please change your log level in
your
> > > > configuration
> > > > > > >> file
> > > > > > >> > from
> > > > > > >> >
> > > > > > >> > LOG_LEVEL = "INFO"
> > > > > > >> >
> > > > > > >> > to
> > > > > > >> >
> > > > > > >> > LOG_LEVEL = "DEBUG"
> > > > > > >> >
> > > > > > >> > then rerun and upload your log file to our ftp server
again?
> > > > > > >> >
> > > > > > >> > Thank you!
> > > > > > >> >
> > > > > > >> > Julie
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<
> > > > > > met_help at ucar.edu
> > > > > > >> >
> > > > > > >> > wrote:
> > > > > > >> >
> > > > > > >> > >
> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79605
> > > >
> > > > > > >> > >
> > > > > > >> > > Hi Julie,
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > Thanks,
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > Xinxia
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > ________________________________
> > > > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > > > > > >> > > To: Xinxia_Song at outlook.com
> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > > > > named
> > > > > > >> > > constants_pdef
> > > > > > >> > >
> > > > > > >> > > Hi Xinxia.
> > > > > > >> > >
> > > > > > >> > > I think it would be helpful if I could take a look
at the
> > log
> > > > > file.
> > > > > > >> > Could
> > > > > > >> > > you please upload your file to our anonymous ftp
site as
> > > follows
> > > > > so
> > > > > > >> that
> > > > > > >> > I
> > > > > > >> > > can take a look?
> > > > > > >> > >
> > > > > > >> > >    http://www.dtcenter.org/met/
> > users/support/met_help.php#ftp
> > > > > > >> > >
> > > > > > >> > > Also, could you please try running the following
manually
> > and
> > > > send
> > > > > > the
> > > > > > >> > > output to me?
> > > > > > >> > >
> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> > > -lookin
> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > > > > 20141201_00
> > > > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > > > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin
> > ML
> > > > > > >> > > -out_init_mask
> > > > > > >> > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
> > > > > > >> > >
> > > > > > >> > > Thank you!
> > > > > > >> > >
> > > > > > >> > > Julie
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via
RT <
> > > > > > >> met_help at ucar.edu>
> > > > > > >> > > wrote:
> > > > > > >> > >
> > > > > > >> > > >
> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> > > Ticket/Display.html?id=79605
> > > > >
> > > > > > >> > > >
> > > > > > >> > > > Hi Julie,
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Now I can run the program, but when I look at the
log
> file
> > > in
> > > > > the
> > > > > > >> > output,
> > > > > > >> > > > it shows error below:
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> > > ush/run_tc_stat.py:tc_stat
> > > > > from
> > > > > > >> > > calling
> > > > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
> > > > > > /met-5.2/bin/tc_stat
> > > > > > >> > -job
> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > > > > > >> -init_inc
> > > > > > >> > > > 20141201_00 -match_points true -dump_row
> > > > > > /D2/xinxia/METplus/MET/out/
> > > > > > >> > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> -basin
> > > ML
> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > > > > > >> > 2/share/met/poly/CONUS.poly
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > How should I fix it?
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Thanks,
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Xinxia
> > > > > > >> > > >
> > > > > > >> > > > ________________________________
> > > > > > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > > > > > >> > > > To: Xinxia_Song at outlook.com
> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> > > module
> > > > > > named
> > > > > > >> > > > constants_pdef
> > > > > > >> > > >
> > > > > > >> > > > Hi Xinxia.
> > > > > > >> > > >
> > > > > > >> > > > I believe that python doesn't know how to find
the
> module
> > > > > because
> > > > > > >> the
> > > > > > >> > ush
> > > > > > >> > > > directory is not in your PYTHONPATH.  Both the
parm and
> > ush
> > > > > > >> directory
> > > > > > >> > > need
> > > > > > >> > > > to be specified in your PYTHONPATH.  Please add
the ush
> > > > > directory
> > > > > > to
> > > > > > >> > your
> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know how
it
> goes.
> > > > > > >> > > >
> > > > > > >> > > > Thanks,
> > > > > > >> > > > Julie
> > > > > > >> > > >
> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song via
RT <
> > > > > > >> > met_help at ucar.edu>
> > > > > > >> > > > wrote:
> > > > > > >> > > >
> > > > > > >> > > > >
> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > > > Ticket/Display.html?id=79605
> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > Hi Julie,
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > Since I don't have setenv, I added these 3
sentence
> into
> > > my
> > > > > > >> .bashrc
> > > > > > >> > > file:
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > export
PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
> > > > > > >> > > > >
> > > > > > >> > > > > export PATH=$USHROOT:$PATH
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that the
> variables
> > > are
> > > > > set,
> > > > > > >> but
> > > > > > >> > > the
> > > > > > >> > > > > program still can't find the module.
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > Thanks,
> > > > > > >> > > > >
> > > > > > >> > > > > Xinxia
> > > > > > >> > > > >
> > > > > > >> > > > > ________________________________
> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> > > > > > >> > > > > To: Xinxia_Song at outlook.com
> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> > > > module
> > > > > > >> named
> > > > > > >> > > > > constants_pdef
> > > > > > >> > > > >
> > > > > > >> > > > > Hi Xinxia.
> > > > > > >> > > > >
> > > > > > >> > > > > Could you please check to make sure that the
ush
> > directory
> > > > > with
> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in your
.cshrc
> > > file
> > > > > (or
> > > > > > >> > .bashrc
> > > > > > >> > > > or
> > > > > > >> > > > > similar file)?  The parm directory should also
be in
> > your
> > > > > > >> PYTHONPATH.
> > > > > > >> > > > >
> > > > > > >> > > > > For example,
> > > > > > >> > > > >
> > > > > > >> > > > > setenv PYTHONPATH /d1/jpresto/sbu/METplus/ush:/
> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
> > > > > > >> > > > >
> > > > > > >> > > > > Please also check make sure that the path to
the ush
> > > > directory
> > > > > > is
> > > > > > >> > also
> > > > > > >> > > > > specified your your path environment variable.
For
> > > example,
> > > > > > >> > > > >
> > > > > > >> > > > > set path = (/usr/local/bin \
> > > > > > >> > > > >                  /usr/local/python/bin/python \
> > > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
> > > > > > >> > > > >
> > > > > > >> > > > > If they are not there, please add them and then
source
> > the
> > > > > file
> > > > > > >> (e.g.
> > > > > > >> > > run
> > > > > > >> > > > > "source ~/.cshrc").
> > > > > > >> > > > >
> > > > > > >> > > > > Thank you!  Please let us know how it goes.
> > > > > > >> > > > >
> > > > > > >> > > > > Julie
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song
via RT <
> > > > > > >> > met_help at ucar.edu
> > > > > > >> > > >
> > > > > > >> > > > > wrote:
> > > > > > >> > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was
acted
> > upon.
> > > > > > >> > > > > > Transaction: Ticket created by
> > Xinxia_Song at outlook.com
> > > > > > >> > > > > >        Queue: met_help
> > > > > > >> > > > > >      Subject: ImportError: No module named
> > > constants_pdef
> > > > > > >> > > > > >        Owner: Nobody
> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > > > > > >> > > > > >       Status: new
> > > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > > > >> > > Ticket/Display.html?id=79605
> > > > > > >> > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Hi,
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > ImportError: No module named constants_pdef
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Seems it doesn't recognize constants_pdef as
its
> > module.
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Thanks,
> > > > > > >> > > > > >
> > > > > > >> > > > > > Xinxia
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Fri Feb 24 09:49:56 2017

You could also run "tail -f </path/to/logfile/logfile_name>" replacing
</path/to/logfile/logfile_name> with the logfile path and name
information
to see how the run is coming along.  I hope that helps!

Julie

On Fri, Feb 24, 2017 at 9:42 AM, Julie Prestopnik <jpresto at ucar.edu>
wrote:

> Hi Xinxia.  Running the entire three months of data could certainly
take a
> long time.  I am hoping to get an estimate on how long it took to
run the
> three month data set here, but have not been able to obtain that
number
> yet.   It sounds the code was running successfully for you.  If
you're
> eager to take a lot at some output, I would suggest running a
smaller
> subset of the data, or perhaps you could set up the whole three
month to
> run over the weekend.  I would suggest letting the code run to
completion
> for either a smaller subset or for the entire subset and then
checking the
> log file for errors.  I hope that helps.  Please let me know if you
have
> any questions or encounter any issues.
>
> Thanks,
> Julie
>
>
> On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>>
>> Hi Julie,
>>
>>
>> The version is set to be 2.7+. When I ran master_met_plus.py, it
seems it
>> will run forever. So I killed it, and got the following:
>>
>> [xinxia at chaos ush]$ python master_met_plus.py
>>
>> ^CTraceback (most recent call last):
>>
>>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
>> <module>
>>
>>     main()
>>
>>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
>> main
>>
>>     filtered_out_dir)
>>
>>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
>> tc_stat
>>
>>     tc_stat_out = subprocess.check_output(tc_cmd,
>> stderr=subprocess.STDOUT, shell=True )
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
213,
>> in check_output
>>
>>     output, unused_err = process.communicate()
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
471,
>> in communicate
>>
>>     stdout = _eintr_retry_call(self.stdout.read)
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
121,
>> in _eintr_retry_call
>>
>>     return func(*args)
>>
>> KeyboardInterrupt
>>
>>
>> Thanks,
>>
>>
>> Xinxia
>>
>> ________________________________
>> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> Sent: Friday, February 24, 2017 12:02:21 PM
>> To: Xinxia_Song at outlook.com
>> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
>> constants_pdef
>>
>> Hi Xinxia.  I suspect that even though you installed Python 2.7
that
>> Python
>> 2.6.6 is still being used.
>>
>> Please try running:
>>
>> python --version
>>
>> on the command line.
>>
>> If you see "Python 2..6.6", please add the path for Python 2.7 to
the
>> front
>> of your path in your ~/.bashrc file.  Then, source your ~/.bashrc
file and
>> try rerunning
>>
>> python --version
>>
>> on the command line.  Hopefully, then you will see the new version.
Then,
>> please try rerunning master_met_plus.py.
>>
>> I hope this helps!  Thanks!
>>
>> Julie
>>
>> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
>> wrote:
>>
>> >
>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> >
>> > Hi Julie,
>> >
>> >
>> > I installed myself the 2.7 python, it still got the error when
running:
>> >
>> > Traceback (most recent call last):
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
945, in
>> > <module>
>> >
>> >     analysis_by_lead_time()
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
107, in
>> > analysis_by_lead_time
>> >
>> >     util.apply_series_filters(tile_dir, init_times,
>> > series_lead_filtered_out_dir, p, logger)
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005,
in
>> > apply_series_filters
>> >
>> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
>> > tc_stat
>> >
>> >     tc_stat_out = subprocess.check_output(tc_cmd,
>> > stderr=subprocess.STDOUT, shell=True )
>> >
>> > AttributeError: 'module' object has no attribute 'check_output'
>> >
>> >
>> > Thanks,
>> >
>> >
>> > Xinxia
>> >
>> > ________________________________
>> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > Sent: Friday, February 24, 2017 9:37:53 AM
>> > To: Xinxia_Song at outlook.com
>> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > constants_pdef
>> >
>> > Can you please tell me which version of Python you are using?
>> check_output
>> > for subprocess was introduced in Python 2.7.    Do you have
access to
>> > Python version 2.7 or higher?
>> >
>> > Thanks,
>> > Julie
>> >
>> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu
>> >
>> > wrote:
>> >
>> > >
>> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > >
>> > > Hi Julie,
>> > >
>> > >
>> > > I added it to the $PATH and ran the master_met_python.py:
>> > >
>> > > [xinxia at chaos ush]$ python master_met_plus.py
>> > >
>> > > Traceback (most recent call last):
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157,
>> in
>> > > <module>
>> > >
>> > >     main()
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100,
>> in
>> > > main
>> > >
>> > >     filtered_out_dir)
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
>> > > tc_stat
>> > >
>> > >     tc_stat_out = subprocess.check_output(tc_cmd,
>> > > stderr=subprocess.STDOUT, shell=True )
>> > >
>> > > AttributeError: 'module' object has no attribute 'check_output'
>> > >
>> > >
>> > > Thanks,
>> > >
>> > >
>> > > Xinxia
>> > >
>> > > ________________________________
>> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > Sent: Friday, February 24, 2017 9:07:40 AM
>> > > To: Xinxia_Song at outlook.com
>> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > constants_pdef
>> > >
>> > > Unfortunately, your environment does not know where to find
>> > > run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
>> > > (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file,
>> > then
>> > > run "source ~/.bashrc", then trying rerunning.  Please let me
know how
>> > that
>> > > goes.
>> > >
>> > > Thanks!
>> > >
>> > > Julie
>> > >
>> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
>> met_help at ucar.edu>
>> > > wrote:
>> > >
>> > > >
>> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
>> > > >
>> > > > Hi Julie,
>> > > >
>> > > >
>> > > > I'm running met in a machine that's owned by our department,
I don't
>> > have
>> > > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't
>> find
>> > > it.
>> > > >
>> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
>> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
>> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
>> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
>> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
>> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
>> > > environment-modules/3.2.10/
>> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
>> > > >
>> > > >
>> > > > But I could find it manually in that directory.
>> > > >
>> > > >
>> > > > Thanks,
>> > > >
>> > > >
>> > > > Xinxia
>> > > >
>> > > > ________________________________
>> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > Sent: Friday, February 24, 2017 8:52:16 AM
>> > > > To: Xinxia_Song at outlook.com
>> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > > constants_pdef
>> > > >
>> > > > Hi Xinxia.
>> > > >
>> > > > It looks like you got a successful run of tc_stat - that's
great
>> news!
>> > > >
>> > > > I'm not sure what you mean by "Because I don't have the
right, I
>> can't
>> > > find
>> > > > run_tc_pairs.py, but I know it's under
>> > > >
>> > > > /D2/xinxia/METplus/METplus/ush".
>> > > >
>> > > > Can you please explain?  What happened when you ran "which
>> > > > run_tc_pairs.py"?
>> > > >
>> > > > Thanks,
>> > > > Julie
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
>> > met_help at ucar.edu>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > >
>> > > > > Hi Julie,
>> > > > >
>> > > > >
>> > > > > I removed the space.
>> > > > >
>> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> -job
>> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > -init_inc
>> > > > > 20141201_00 -match_points true -dump_row
>> /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > 2/share/met/poly/CONUS.poly
>> > > > >
>> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
>> > > tc_pairs/201412
>> > > > >
>> > > > > DEBUG 2:
>> > > > >
>> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
>> > > > 20141201_000000
>> > > > > -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.
>> > > > 2/share/met/poly/CONUS.poly
>> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > filter_20141201_00.tcst
>> > > > >
>> > > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
>> > > > >
>> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
>> -match_points
>> > > > true
>> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > 2/share/met/poly/CONUS.poly
>> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > filter_20141201_00.tcst
>> > > > >
>> > > > >
>> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
>> > > > >
>> > > > >
>> > > > > Because I don't have the right, I can't find
run_tc_pairs.py, but
>> I
>> > > know
>> > > > > it's under
>> > > > >
>> > > > > /D2/xinxia/METplus/METplus/ush
>> > > > >
>> > > > >
>> > > > > For Python,
>> > > > >
>> > > > > [xinxia at chaos ~]$ which python
>> > > > >
>> > > > > /usr/bin/python
>> > > > >
>> > > > >
>> > > > > Xinxia
>> > > > >
>> > > > > ________________________________
>> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
>> > > > > To: Xinxia_Song at outlook.com
>> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > constants_pdef
>> > > > >
>> > > > > Hi Xinxia.
>> > > > >
>> > > > > It looks like there is a space where there should not be a
space
>> > > (between
>> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
>> > > > > filter_20141201_00.tcst after the -dump_row option).
>> > > > >
>> > > > > Could you please try it again without the space?
>> > > > >
>> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
>> calling
>> > MET
>> > > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> -job
>> > > > > filter
>> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > 20141201_00
>> > > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask
>> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> > > > >
>> > > > > Regarding the master_met_plus.py run, please try running
the
>> > following
>> > > > two
>> > > > > commands and send me the output:
>> > > > >
>> > > > > which run_tc_pairs.py
>> > > > >
>> > > > > which python
>> > > > >
>> > > > > Thanks!
>> > > > >
>> > > > > Julie
>> > > > >
>> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
>> > > met_help at ucar.edu>
>> > > > > wrote:
>> > > > >
>> > > > > >
>> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > > >
>> > > > > > Hi Julie,
>> > > > > >
>> > > > > >
>> > > > > > After I ran the long one line command:
>> > > > > >
>> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> > -job
>> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > -init_inc
>> > > > > > 20141201_00 -match_points true -dump_row
>> > /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/
>> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> > > > > >
>> > > > > >
>> > > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
>> > > > tc_pairs/201412
>> > > > > >
>> > > > > > ERROR  :
>> > > > > >
>> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const
>> char
>> > > > > > *jobstring) -> unsupported job command options
>> > > > "filter_20141201_00.tcst".
>> > > > > >
>> > > > > > ERROR  :
>> > > > > >
>> > > > > >
>> > > > > > And for the master_met_plus.py, I got the error:
>> > > > > >
>> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
>> > > > > >
>> > > > > > sh: run_tc_pairs.py: command not found
>> > > > > >
>> > > > > >
>> > > > > > Thanks,
>> > > > > >
>> > > > > >
>> > > > > > Xinxia
>> > > > > >
>> > > > > > ________________________________
>> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
>> > > > > > To: Xinxia_Song at outlook.com
>> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > > constants_pdef
>> > > > > >
>> > > > > > My apologies, my response should have said, "By default,
MET
>> > version
>> > > > 5.2
>> > > > > is
>> > > > > > compiled using dynamic linking."  It's true for both, but
I see
>> > > you're
>> > > > > > using 5.2 and I inadvertently referred to 5.1.
>> > > > > >
>> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
>> > jpresto at ucar.edu
>> > > >
>> > > > > > wrote:
>> > > > > >
>> > > > > > > Hi Xinxia.  Regarding the error:
>> > > > > > >
>> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
>> loading
>> > > > shared
>> > > > > > > libraries: libgsl.so.19: cannot open shared object
file: No
>> such
>> > > file
>> > > > > or
>> > > > > > > directory
>> > > > > > >
>> > > > > > > By default, MET version 5.1 is compiled using dynamic
linking.
>> > > > Rather
>> > > > > > > than compiling the external library code in with the
MET
>> > > executables
>> > > > > > (which
>> > > > > > > is
>> > > > > > > called static linking), it looks for them at runtime.
And
>> it's
>> > > > looking
>> > > > > > > for those "shared object" (.so) library files.
>> > > > > > >
>> > > > > > > This should be easy to fix. We just need to tell it
where to
>> find
>> > > > them,
>> > > > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).
>> > Look
>> > > > in
>> > > > > > your
>> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined
in
>> there,
>> > > add
>> > > > > the
>> > > > > > > path to the libgsl.so.19 to the end of it.  If not, add
an
>> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
>> example,
>> > if
>> > > > the
>> > > > > > path
>> > > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
>> > > > > > l_libs/GSL/gsl-1.16/lib
>> > > > > > > you would add teh following to your ~/.bashrc file:
>> > > > > > >
>> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
>> > METplus/MET/external_libs/GSL/
>> > > > > > > gsl-1.16/lib
>> > > > > > >
>> > > > > > > Then save the change and source that file:
>> > > > > > >
>> > > > > > >   source ~/.bashrc
>> > > > > > >
>> > > > > > > Then, please try rerunning the command manually and let
me
>> know
>> > if
>> > > it
>> > > > > > > works.
>> > > > > > >
>> > > > > > > I believe that this was the cause of the initial error
you
>> > received
>> > > > > from
>> > > > > > > MET+:
>> > > > > > >
>> > > > > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
>> > from
>> > > > > > calling
>> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
>> > > MET/met-5.2/bin/tc_stat
>> > > > > -job
>> > > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > > -init_inc
>> > > > > > > 20141201_00 -match_points true -dump_row
>> > > > /D2/xinxia/METplus/MET/out/ext
>> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask
>> > > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >
>> > > > > > >
>> > > > > > > Thanks,
>> > > > > > > Julie
>> > > > > > >
>> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
>> > > > > met_help at ucar.edu>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > >>
>> > > > > > >> <URL: https://rt.rap.ucar.edu/rt/Tic
>> ket/Display.html?id=79605 >
>> > > > > > >>
>> > > > > > >> Hi Julie,
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2
>> /bin/tc_stat
>> > > -job
>> > > > > > >> filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > > -init_inc
>> > > > > > >> 20141201_00 -match_points true -dump_row
>> > > > > /D2/xinxia/METplus/MET/out/ext
>> > > > > > ract_tiles/20141201_00/
>> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >>
>> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
>> loading
>> > > > > shared
>> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file: No
>> such
>> > > > file
>> > > > > or
>> > > > > > >> directory
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
>> under
>> > > > > > >> xinxia_data directory.
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> Thanks,
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> Xinxia
>> > > > > > >>
>> > > > > > >> ________________________________
>> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
>> > > > > > >> To: Xinxia_Song at outlook.com
>> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> > > named
>> > > > > > >> constants_pdef
>> > > > > > >>
>> > > > > > >> Hi Xinxia.
>> > > > > > >>
>> > > > > > >> I can see that your command, which should have been
all on
>> one
>> > > line,
>> > > > > was
>> > > > > > >> broken up into several lines.  Please try running the
command
>> > > again,
>> > > > > > >> making
>> > > > > > >> sure that the entire command is on one line:
>> > > > > > >>
>> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
>> -lookin
>> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
>> > > 20141201_00
>> > > > > > >> -match_points true -dump_row
>> > > > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >>
>> > > > > > >> Then, please send the output from that command.
>> > > > > > >>
>> > > > > > >> Regarding, your error:
>> > > > > > >>
>> > > > > > >> sh: run_tc_pairs.py: command not found
>> > > > > > >>
>> > > > > > >> It's strange that would only have occurred after
having
>> changed
>> > > the
>> > > > > > >> LOG_LEVEL.  Could you please send us your
configuration file?
>> > > > > > >>
>> > > > > > >> Thanks!
>> > > > > > >>
>> > > > > > >> Julie
>> > > > > > >>
>> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
>> > > > > met_help at ucar.edu>
>> > > > > > >> wrote:
>> > > > > > >>
>> > > > > > >> >
>> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/Tic
>> ket/Display.html?id=79605
>> > >
>> > > > > > >> >
>> > > > > > >> > Hi Julie,
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
>> > 2/bin/tc_stat
>> > > > -job
>> > > > > > >> > filter -lookin
>> > > > > > >> >
>> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
>> > loading
>> > > > > > shared
>> > > > > > >> > libraries: libgsl.so.19: cannot open shared object
file: No
>> > such
>> > > > > file
>> > > > > > or
>> > > > > > >> > directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
>> > > tc_pairs/201412
>> > > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
>> > > > > > >> >
>> > > > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412:
is a
>> > > > directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
>> > > > > > >> ract_tiles/20141201_00/
>> > > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >> >
>> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/ext
>> ract_tiles/20141201_00/:
>> > > No
>> > > > > such
>> > > > > > >> > file or directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > After I change the LOG_LEVEL, I ran the
>> master_met_plus.py, it
>> > > > says:
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
>> > > > > > >> >
>> > > > > > >> > sh: run_tc_pairs.py: command not found
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > Thanks,
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > Xinxia
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > ________________________________
>> > > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
>> > > > > > >> > To: Xinxia_Song at outlook.com
>> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
>> module
>> > > > named
>> > > > > > >> > constants_pdef
>> > > > > > >> >
>> > > > > > >> > Thank you.  Unfortunately, the level of detail in
the log
>> file
>> > > > > wasn't
>> > > > > > >> what
>> > > > > > >> > I hoped for.  I'd like to have you try two things.
>> > > > > > >> >
>> > > > > > >> > First, could you please send me your output of your
manual
>> run
>> > > of
>> > > > > the
>> > > > > > >> > following?
>> > > > > > >> >
>> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
>> > -lookin
>> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > 20141201_00
>> > > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin
>> ML
>> > > > > > >> > -out_init_mask
>> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
>> > > > > > >> >
>> > > > > > >> > Second, could you please change your log level in
your
>> > > > configuration
>> > > > > > >> file
>> > > > > > >> > from
>> > > > > > >> >
>> > > > > > >> > LOG_LEVEL = "INFO"
>> > > > > > >> >
>> > > > > > >> > to
>> > > > > > >> >
>> > > > > > >> > LOG_LEVEL = "DEBUG"
>> > > > > > >> >
>> > > > > > >> > then rerun and upload your log file to our ftp
server
>> again?
>> > > > > > >> >
>> > > > > > >> > Thank you!
>> > > > > > >> >
>> > > > > > >> > Julie
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<
>> > > > > > met_help at ucar.edu
>> > > > > > >> >
>> > > > > > >> > wrote:
>> > > > > > >> >
>> > > > > > >> > >
>> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
>> > Ticket/Display.html?id=79605
>> > > >
>> > > > > > >> > >
>> > > > > > >> > > Hi Julie,
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > Thanks,
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > Xinxia
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > ________________________________
>> > > > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
>> > > > > > >> > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
>> > module
>> > > > > named
>> > > > > > >> > > constants_pdef
>> > > > > > >> > >
>> > > > > > >> > > Hi Xinxia.
>> > > > > > >> > >
>> > > > > > >> > > I think it would be helpful if I could take a look
at the
>> > log
>> > > > > file.
>> > > > > > >> > Could
>> > > > > > >> > > you please upload your file to our anonymous ftp
site as
>> > > follows
>> > > > > so
>> > > > > > >> that
>> > > > > > >> > I
>> > > > > > >> > > can take a look?
>> > > > > > >> > >
>> > > > > > >> > >    http://www.dtcenter.org/met/
>> > users/support/met_help.php#ftp
>> > > > > > >> > >
>> > > > > > >> > > Also, could you please try running the following
manually
>> > and
>> > > > send
>> > > > > > the
>> > > > > > >> > > output to me?
>> > > > > > >> > >
>> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
>> > > -lookin
>> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > > 20141201_00
>> > > > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
>> -basin
>> > ML
>> > > > > > >> > > -out_init_mask
>> > > > > > >> > > /D2/xinxia/METplus/MET/met-5.2
>> /share/met/poly/CONUS.poly"
>> > > > > > >> > >
>> > > > > > >> > > Thank you!
>> > > > > > >> > >
>> > > > > > >> > > Julie
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via
RT <
>> > > > > > >> met_help at ucar.edu>
>> > > > > > >> > > wrote:
>> > > > > > >> > >
>> > > > > > >> > > >
>> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
>> > > Ticket/Display.html?id=79605
>> > > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Hi Julie,
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Now I can run the program, but when I look at
the log
>> file
>> > > in
>> > > > > the
>> > > > > > >> > output,
>> > > > > > >> > > > it shows error below:
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
>> > > ush/run_tc_stat.py:tc_stat
>> > > > > from
>> > > > > > >> > > calling
>> > > > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
>> > > > > > /met-5.2/bin/tc_stat
>> > > > > > >> > -job
>> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
>> > tc_pairs/201412
>> > > > > > >> -init_inc
>> > > > > > >> > > > 20141201_00 -match_points true -dump_row
>> > > > > > /D2/xinxia/METplus/MET/out/
>> > > > > > >> > > >
extract_tiles/20141201_00/filter_20141201_00.tcst
>> -basin
>> > > ML
>> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > > > > >> > 2/share/met/poly/CONUS.poly
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > How should I fix it?
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Thanks,
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Xinxia
>> > > > > > >> > > >
>> > > > > > >> > > > ________________________________
>> > > > > > >> > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
>> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
>> > > > > > >> > > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
>> > > module
>> > > > > > named
>> > > > > > >> > > > constants_pdef
>> > > > > > >> > > >
>> > > > > > >> > > > Hi Xinxia.
>> > > > > > >> > > >
>> > > > > > >> > > > I believe that python doesn't know how to find
the
>> module
>> > > > > because
>> > > > > > >> the
>> > > > > > >> > ush
>> > > > > > >> > > > directory is not in your PYTHONPATH.  Both the
parm and
>> > ush
>> > > > > > >> directory
>> > > > > > >> > > need
>> > > > > > >> > > > to be specified in your PYTHONPATH.  Please add
the ush
>> > > > > directory
>> > > > > > to
>> > > > > > >> > your
>> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know
how it
>> goes.
>> > > > > > >> > > >
>> > > > > > >> > > > Thanks,
>> > > > > > >> > > > Julie
>> > > > > > >> > > >
>> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song
via RT <
>> > > > > > >> > met_help at ucar.edu>
>> > > > > > >> > > > wrote:
>> > > > > > >> > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
>> > > > Ticket/Display.html?id=79605
>> > > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Hi Julie,
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Since I don't have setenv, I added these 3
sentence
>> into
>> > > my
>> > > > > > >> .bashrc
>> > > > > > >> > > file:
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > export
PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
>> > > > > > >> > > > >
>> > > > > > >> > > > > export PATH=$USHROOT:$PATH
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that the
>> variables
>> > > are
>> > > > > set,
>> > > > > > >> but
>> > > > > > >> > > the
>> > > > > > >> > > > > program still can't find the module.
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Thanks,
>> > > > > > >> > > > >
>> > > > > > >> > > > > Xinxia
>> > > > > > >> > > > >
>> > > > > > >> > > > > ________________________________
>> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
>> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
>> > > > > > >> > > > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
>> No
>> > > > module
>> > > > > > >> named
>> > > > > > >> > > > > constants_pdef
>> > > > > > >> > > > >
>> > > > > > >> > > > > Hi Xinxia.
>> > > > > > >> > > > >
>> > > > > > >> > > > > Could you please check to make sure that the
ush
>> > directory
>> > > > > with
>> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in
your
>> .cshrc
>> > > file
>> > > > > (or
>> > > > > > >> > .bashrc
>> > > > > > >> > > > or
>> > > > > > >> > > > > similar file)?  The parm directory should also
be in
>> > your
>> > > > > > >> PYTHONPATH.
>> > > > > > >> > > > >
>> > > > > > >> > > > > For example,
>> > > > > > >> > > > >
>> > > > > > >> > > > > setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/
>> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
>> > > > > > >> > > > >
>> > > > > > >> > > > > Please also check make sure that the path to
the ush
>> > > > directory
>> > > > > > is
>> > > > > > >> > also
>> > > > > > >> > > > > specified your your path environment variable.
For
>> > > example,
>> > > > > > >> > > > >
>> > > > > > >> > > > > set path = (/usr/local/bin \
>> > > > > > >> > > > >                  /usr/local/python/bin/python
\
>> > > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
>> > > > > > >> > > > >
>> > > > > > >> > > > > If they are not there, please add them and
then
>> source
>> > the
>> > > > > file
>> > > > > > >> (e.g.
>> > > > > > >> > > run
>> > > > > > >> > > > > "source ~/.cshrc").
>> > > > > > >> > > > >
>> > > > > > >> > > > > Thank you!  Please let us know how it goes.
>> > > > > > >> > > > >
>> > > > > > >> > > > > Julie
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song
via RT <
>> > > > > > >> > met_help at ucar.edu
>> > > > > > >> > > >
>> > > > > > >> > > > > wrote:
>> > > > > > >> > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was
acted
>> > upon.
>> > > > > > >> > > > > > Transaction: Ticket created by
>> > Xinxia_Song at outlook.com
>> > > > > > >> > > > > >        Queue: met_help
>> > > > > > >> > > > > >      Subject: ImportError: No module named
>> > > constants_pdef
>> > > > > > >> > > > > >        Owner: Nobody
>> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
>> > > > > > >> > > > > >       Status: new
>> > > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
>> > > > > > >> > > Ticket/Display.html?id=79605
>> > > > > > >> > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Hi,
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > ImportError: No module named constants_pdef
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Seems it doesn't recognize constants_pdef as
its
>> > module.
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Thanks,
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Xinxia
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Sun Feb 26 14:35:21 2017

Hi Julie,


I ran the mater_met_plus.py and in the end in the log file it gave me
an error:

2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] | Problem
executing: series_by_lead.py


Thanks,

Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Saturday, February 25, 2017 6:49:56 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

You could also run "tail -f </path/to/logfile/logfile_name>" replacing
</path/to/logfile/logfile_name> with the logfile path and name
information
to see how the run is coming along.  I hope that helps!

Julie

On Fri, Feb 24, 2017 at 9:42 AM, Julie Prestopnik <jpresto at ucar.edu>
wrote:

> Hi Xinxia.  Running the entire three months of data could certainly
take a
> long time.  I am hoping to get an estimate on how long it took to
run the
> three month data set here, but have not been able to obtain that
number
> yet.   It sounds the code was running successfully for you.  If
you're
> eager to take a lot at some output, I would suggest running a
smaller
> subset of the data, or perhaps you could set up the whole three
month to
> run over the weekend.  I would suggest letting the code run to
completion
> for either a smaller subset or for the entire subset and then
checking the
> log file for errors.  I hope that helps.  Please let me know if you
have
> any questions or encounter any issues.
>
> Thanks,
> Julie
>
>
> On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>>
>> Hi Julie,
>>
>>
>> The version is set to be 2.7+. When I ran master_met_plus.py, it
seems it
>> will run forever. So I killed it, and got the following:
>>
>> [xinxia at chaos ush]$ python master_met_plus.py
>>
>> ^CTraceback (most recent call last):
>>
>>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 157,
in
>> <module>
>>
>>     main()
>>
>>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line 100,
in
>> main
>>
>>     filtered_out_dir)
>>
>>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69, in
>> tc_stat
>>
>>     tc_stat_out = subprocess.check_output(tc_cmd,
>> stderr=subprocess.STDOUT, shell=True )
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
213,
>> in check_output
>>
>>     output, unused_err = process.communicate()
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
471,
>> in communicate
>>
>>     stdout = _eintr_retry_call(self.stdout.read)
>>
>>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
121,
>> in _eintr_retry_call
>>
>>     return func(*args)
>>
>> KeyboardInterrupt
>>
>>
>> Thanks,
>>
>>
>> Xinxia
>>
>> ________________________________
>> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> Sent: Friday, February 24, 2017 12:02:21 PM
>> To: Xinxia_Song at outlook.com
>> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
>> constants_pdef
>>
>> Hi Xinxia.  I suspect that even though you installed Python 2.7
that
>> Python
>> 2.6.6 is still being used.
>>
>> Please try running:
>>
>> python --version
>>
>> on the command line.
>>
>> If you see "Python 2..6.6", please add the path for Python 2.7 to
the
>> front
>> of your path in your ~/.bashrc file.  Then, source your ~/.bashrc
file and
>> try rerunning
>>
>> python --version
>>
>> on the command line.  Hopefully, then you will see the new version.
Then,
>> please try rerunning master_met_plus.py.
>>
>> I hope this helps!  Thanks!
>>
>> Julie
>>
>> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
>> wrote:
>>
>> >
>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> >
>> > Hi Julie,
>> >
>> >
>> > I installed myself the 2.7 python, it still got the error when
running:
>> >
>> > Traceback (most recent call last):
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
945, in
>> > <module>
>> >
>> >     analysis_by_lead_time()
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
107, in
>> > analysis_by_lead_time
>> >
>> >     util.apply_series_filters(tile_dir, init_times,
>> > series_lead_filtered_out_dir, p, logger)
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005,
in
>> > apply_series_filters
>> >
>> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
>> >
>> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
>> > tc_stat
>> >
>> >     tc_stat_out = subprocess.check_output(tc_cmd,
>> > stderr=subprocess.STDOUT, shell=True )
>> >
>> > AttributeError: 'module' object has no attribute 'check_output'
>> >
>> >
>> > Thanks,
>> >
>> >
>> > Xinxia
>> >
>> > ________________________________
>> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > Sent: Friday, February 24, 2017 9:37:53 AM
>> > To: Xinxia_Song at outlook.com
>> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > constants_pdef
>> >
>> > Can you please tell me which version of Python you are using?
>> check_output
>> > for subprocess was introduced in Python 2.7.    Do you have
access to
>> > Python version 2.7 or higher?
>> >
>> > Thanks,
>> > Julie
>> >
>> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT
<met_help at ucar.edu
>> >
>> > wrote:
>> >
>> > >
>> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > >
>> > > Hi Julie,
>> > >
>> > >
>> > > I added it to the $PATH and ran the master_met_python.py:
>> > >
>> > > [xinxia at chaos ush]$ python master_met_plus.py
>> > >
>> > > Traceback (most recent call last):
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157,
>> in
>> > > <module>
>> > >
>> > >     main()
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100,
>> in
>> > > main
>> > >
>> > >     filtered_out_dir)
>> > >
>> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
>> > > tc_stat
>> > >
>> > >     tc_stat_out = subprocess.check_output(tc_cmd,
>> > > stderr=subprocess.STDOUT, shell=True )
>> > >
>> > > AttributeError: 'module' object has no attribute 'check_output'
>> > >
>> > >
>> > > Thanks,
>> > >
>> > >
>> > > Xinxia
>> > >
>> > > ________________________________
>> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > Sent: Friday, February 24, 2017 9:07:40 AM
>> > > To: Xinxia_Song at outlook.com
>> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > constants_pdef
>> > >
>> > > Unfortunately, your environment does not know where to find
>> > > run_tc_pairs.py.  Please try adding the directory with
run_tc_pairs.py
>> > > (/D2/xinxia/METplus/METplus/ush) to your path in your ~/.bashrc
file,
>> > then
>> > > run "source ~/.bashrc", then trying rerunning.  Please let me
know how
>> > that
>> > > goes.
>> > >
>> > > Thanks!
>> > >
>> > > Julie
>> > >
>> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
>> met_help at ucar.edu>
>> > > wrote:
>> > >
>> > > >
>> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
>> > > >
>> > > > Hi Julie,
>> > > >
>> > > >
>> > > > I'm running met in a machine that's owned by our department,
I don't
>> > have
>> > > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't
>> find
>> > > it.
>> > > >
>> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
>> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
>> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
>> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
>> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
>> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
>> > > environment-modules/3.2.10/
>> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
>> > > >
>> > > >
>> > > > But I could find it manually in that directory.
>> > > >
>> > > >
>> > > > Thanks,
>> > > >
>> > > >
>> > > > Xinxia
>> > > >
>> > > > ________________________________
>> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > Sent: Friday, February 24, 2017 8:52:16 AM
>> > > > To: Xinxia_Song at outlook.com
>> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
>> > > > constants_pdef
>> > > >
>> > > > Hi Xinxia.
>> > > >
>> > > > It looks like you got a successful run of tc_stat - that's
great
>> news!
>> > > >
>> > > > I'm not sure what you mean by "Because I don't have the
right, I
>> can't
>> > > find
>> > > > run_tc_pairs.py, but I know it's under
>> > > >
>> > > > /D2/xinxia/METplus/METplus/ush".
>> > > >
>> > > > Can you please explain?  What happened when you ran "which
>> > > > run_tc_pairs.py"?
>> > > >
>> > > > Thanks,
>> > > > Julie
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
>> > met_help at ucar.edu>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > >
>> > > > > Hi Julie,
>> > > > >
>> > > > >
>> > > > > I removed the space.
>> > > > >
>> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> -job
>> > > > > filter -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > -init_inc
>> > > > > 20141201_00 -match_points true -dump_row
>> /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > 2/share/met/poly/CONUS.poly
>> > > > >
>> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
>> > > tc_pairs/201412
>> > > > >
>> > > > > DEBUG 2:
>> > > > >
>> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML -init_inc
>> > > > 20141201_000000
>> > > > > -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.
>> > > > 2/share/met/poly/CONUS.poly
>> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > filter_20141201_00.tcst
>> > > > >
>> > > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
>> > > > >
>> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
>> -match_points
>> > > > true
>> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > 2/share/met/poly/CONUS.poly
>> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > filter_20141201_00.tcst
>> > > > >
>> > > > >
>> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
>> > > > >
>> > > > >
>> > > > > Because I don't have the right, I can't find
run_tc_pairs.py, but
>> I
>> > > know
>> > > > > it's under
>> > > > >
>> > > > > /D2/xinxia/METplus/METplus/ush
>> > > > >
>> > > > >
>> > > > > For Python,
>> > > > >
>> > > > > [xinxia at chaos ~]$ which python
>> > > > >
>> > > > > /usr/bin/python
>> > > > >
>> > > > >
>> > > > > Xinxia
>> > > > >
>> > > > > ________________________________
>> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
>> > > > > To: Xinxia_Song at outlook.com
>> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > constants_pdef
>> > > > >
>> > > > > Hi Xinxia.
>> > > > >
>> > > > > It looks like there is a space where there should not be a
space
>> > > (between
>> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
>> > > > > filter_20141201_00.tcst after the -dump_row option).
>> > > > >
>> > > > > Could you please try it again without the space?
>> > > > >
>> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat from
>> calling
>> > MET
>> > > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> -job
>> > > > > filter
>> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > 20141201_00
>> > > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask
>> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> > > > >
>> > > > > Regarding the master_met_plus.py run, please try running
the
>> > following
>> > > > two
>> > > > > commands and send me the output:
>> > > > >
>> > > > > which run_tc_pairs.py
>> > > > >
>> > > > > which python
>> > > > >
>> > > > > Thanks!
>> > > > >
>> > > > > Julie
>> > > > >
>> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
>> > > met_help at ucar.edu>
>> > > > > wrote:
>> > > > >
>> > > > > >
>> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>> > > > > >
>> > > > > > Hi Julie,
>> > > > > >
>> > > > > >
>> > > > > > After I ran the long one line command:
>> > > > > >
>> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
>> > -job
>> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > -init_inc
>> > > > > > 20141201_00 -match_points true -dump_row
>> > /D2/xinxia/METplus/MET/out/
>> > > > > extract_tiles/20141201_00/
>> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
>> > > > > >
>> > > > > >
>> > > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
>> > > > tc_pairs/201412
>> > > > > >
>> > > > > > ERROR  :
>> > > > > >
>> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const
>> char
>> > > > > > *jobstring) -> unsupported job command options
>> > > > "filter_20141201_00.tcst".
>> > > > > >
>> > > > > > ERROR  :
>> > > > > >
>> > > > > >
>> > > > > > And for the master_met_plus.py, I got the error:
>> > > > > >
>> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
>> > > > > >
>> > > > > > sh: run_tc_pairs.py: command not found
>> > > > > >
>> > > > > >
>> > > > > > Thanks,
>> > > > > >
>> > > > > >
>> > > > > > Xinxia
>> > > > > >
>> > > > > > ________________________________
>> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
>> > > > > > To: Xinxia_Song at outlook.com
>> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> named
>> > > > > > constants_pdef
>> > > > > >
>> > > > > > My apologies, my response should have said, "By default,
MET
>> > version
>> > > > 5.2
>> > > > > is
>> > > > > > compiled using dynamic linking."  It's true for both, but
I see
>> > > you're
>> > > > > > using 5.2 and I inadvertently referred to 5.1.
>> > > > > >
>> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
>> > jpresto at ucar.edu
>> > > >
>> > > > > > wrote:
>> > > > > >
>> > > > > > > Hi Xinxia.  Regarding the error:
>> > > > > > >
>> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error while
>> loading
>> > > > shared
>> > > > > > > libraries: libgsl.so.19: cannot open shared object
file: No
>> such
>> > > file
>> > > > > or
>> > > > > > > directory
>> > > > > > >
>> > > > > > > By default, MET version 5.1 is compiled using dynamic
linking.
>> > > > Rather
>> > > > > > > than compiling the external library code in with the
MET
>> > > executables
>> > > > > > (which
>> > > > > > > is
>> > > > > > > called static linking), it looks for them at runtime.
And
>> it's
>> > > > looking
>> > > > > > > for those "shared object" (.so) library files.
>> > > > > > >
>> > > > > > > This should be easy to fix. We just need to tell it
where to
>> find
>> > > > them,
>> > > > > > > and we do that by setting (or adding to the
LD_LIBRARY_PATH).
>> > Look
>> > > > in
>> > > > > > your
>> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already defined
in
>> there,
>> > > add
>> > > > > the
>> > > > > > > path to the libgsl.so.19 to the end of it.  If not, add
an
>> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So, for
>> example,
>> > if
>> > > > the
>> > > > > > path
>> > > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
>> > > > > > l_libs/GSL/gsl-1.16/lib
>> > > > > > > you would add teh following to your ~/.bashrc file:
>> > > > > > >
>> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
>> > METplus/MET/external_libs/GSL/
>> > > > > > > gsl-1.16/lib
>> > > > > > >
>> > > > > > > Then save the change and source that file:
>> > > > > > >
>> > > > > > >   source ~/.bashrc
>> > > > > > >
>> > > > > > > Then, please try rerunning the command manually and let
me
>> know
>> > if
>> > > it
>> > > > > > > works.
>> > > > > > >
>> > > > > > > I believe that this was the cause of the initial error
you
>> > received
>> > > > > from
>> > > > > > > MET+:
>> > > > > > >
>> > > > > > > ERROR|
/D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
>> > from
>> > > > > > calling
>> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
>> > > MET/met-5.2/bin/tc_stat
>> > > > > -job
>> > > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > > -init_inc
>> > > > > > > 20141201_00 -match_points true -dump_row
>> > > > /D2/xinxia/METplus/MET/out/ext
>> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
>> > > > > -out_init_mask
>> > > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >
>> > > > > > >
>> > > > > > > Thanks,
>> > > > > > > Julie
>> > > > > > >
>> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT <
>> > > > > met_help at ucar.edu>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > >>
>> > > > > > >> <URL: https://rt.rap.ucar.edu/rt/Tic
>> ket/Display.html?id=79605 >
>> > > > > > >>
>> > > > > > >> Hi Julie,
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2
>> /bin/tc_stat
>> > > -job
>> > > > > > >> filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
>> > > > -init_inc
>> > > > > > >> 20141201_00 -match_points true -dump_row
>> > > > > /D2/xinxia/METplus/MET/out/ext
>> > > > > > ract_tiles/20141201_00/
>> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >>
>> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
>> loading
>> > > > > shared
>> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file: No
>> such
>> > > > file
>> > > > > or
>> > > > > > >> directory
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
>> under
>> > > > > > >> xinxia_data directory.
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> Thanks,
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> Xinxia
>> > > > > > >>
>> > > > > > >> ________________________________
>> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
>> > > > > > >> To: Xinxia_Song at outlook.com
>> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
>> > > named
>> > > > > > >> constants_pdef
>> > > > > > >>
>> > > > > > >> Hi Xinxia.
>> > > > > > >>
>> > > > > > >> I can see that your command, which should have been
all on
>> one
>> > > line,
>> > > > > was
>> > > > > > >> broken up into several lines.  Please try running the
command
>> > > again,
>> > > > > > >> making
>> > > > > > >> sure that the entire command is on one line:
>> > > > > > >>
>> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job filter
>> -lookin
>> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412 -init_inc
>> > > 20141201_00
>> > > > > > >> -match_points true -dump_row
>> > > > > > >> /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
>> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >>
>> > > > > > >> Then, please send the output from that command.
>> > > > > > >>
>> > > > > > >> Regarding, your error:
>> > > > > > >>
>> > > > > > >> sh: run_tc_pairs.py: command not found
>> > > > > > >>
>> > > > > > >> It's strange that would only have occurred after
having
>> changed
>> > > the
>> > > > > > >> LOG_LEVEL.  Could you please send us your
configuration file?
>> > > > > > >>
>> > > > > > >> Thanks!
>> > > > > > >>
>> > > > > > >> Julie
>> > > > > > >>
>> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT <
>> > > > > met_help at ucar.edu>
>> > > > > > >> wrote:
>> > > > > > >>
>> > > > > > >> >
>> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/Tic
>> ket/Display.html?id=79605
>> > >
>> > > > > > >> >
>> > > > > > >> > Hi Julie,
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
>> > 2/bin/tc_stat
>> > > > -job
>> > > > > > >> > filter -lookin
>> > > > > > >> >
>> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
>> > loading
>> > > > > > shared
>> > > > > > >> > libraries: libgsl.so.19: cannot open shared object
file: No
>> > such
>> > > > > file
>> > > > > > or
>> > > > > > >> > directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
>> > > tc_pairs/201412
>> > > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
>> > > > > > >> >
>> > > > > > >> > -bash: /D2/xinxia/METplus/MET/input/tc_pairs/201412:
is a
>> > > > directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
>> > > > > > >> ract_tiles/20141201_00/
>> > > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
>> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
>> > > > > > >> >
>> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/ext
>> ract_tiles/20141201_00/:
>> > > No
>> > > > > such
>> > > > > > >> > file or directory
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > After I change the LOG_LEVEL, I ran the
>> master_met_plus.py, it
>> > > > says:
>> > > > > > >> >
>> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
>> > > > > > >> >
>> > > > > > >> > sh: run_tc_pairs.py: command not found
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > Thanks,
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > Xinxia
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > ________________________________
>> > > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
>> > > > > > >> > To: Xinxia_Song at outlook.com
>> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
>> module
>> > > > named
>> > > > > > >> > constants_pdef
>> > > > > > >> >
>> > > > > > >> > Thank you.  Unfortunately, the level of detail in
the log
>> file
>> > > > > wasn't
>> > > > > > >> what
>> > > > > > >> > I hoped for.  I'd like to have you try two things.
>> > > > > > >> >
>> > > > > > >> > First, could you please send me your output of your
manual
>> run
>> > > of
>> > > > > the
>> > > > > > >> > following?
>> > > > > > >> >
>> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
>> > -lookin
>> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > 20141201_00
>> > > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
-basin
>> ML
>> > > > > > >> > -out_init_mask
>> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly"
>> > > > > > >> >
>> > > > > > >> > Second, could you please change your log level in
your
>> > > > configuration
>> > > > > > >> file
>> > > > > > >> > from
>> > > > > > >> >
>> > > > > > >> > LOG_LEVEL = "INFO"
>> > > > > > >> >
>> > > > > > >> > to
>> > > > > > >> >
>> > > > > > >> > LOG_LEVEL = "DEBUG"
>> > > > > > >> >
>> > > > > > >> > then rerun and upload your log file to our ftp
server
>> again?
>> > > > > > >> >
>> > > > > > >> > Thank you!
>> > > > > > >> >
>> > > > > > >> > Julie
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via RT
<
>> > > > > > met_help at ucar.edu
>> > > > > > >> >
>> > > > > > >> > wrote:
>> > > > > > >> >
>> > > > > > >> > >
>> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
>> > Ticket/Display.html?id=79605
>> > > >
>> > > > > > >> > >
>> > > > > > >> > > Hi Julie,
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > Thanks,
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > Xinxia
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > ________________________________
>> > > > > > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
>> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
>> > > > > > >> > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
>> > module
>> > > > > named
>> > > > > > >> > > constants_pdef
>> > > > > > >> > >
>> > > > > > >> > > Hi Xinxia.
>> > > > > > >> > >
>> > > > > > >> > > I think it would be helpful if I could take a look
at the
>> > log
>> > > > > file.
>> > > > > > >> > Could
>> > > > > > >> > > you please upload your file to our anonymous ftp
site as
>> > > follows
>> > > > > so
>> > > > > > >> that
>> > > > > > >> > I
>> > > > > > >> > > can take a look?
>> > > > > > >> > >
>> > > > > > >> > >    http://www.dtcenter.org/met/
>> > users/support/met_help.php#ftp
>> > > > > > >> > >
>> > > > > > >> > > Also, could you please try running the following
manually
>> > and
>> > > > send
>> > > > > > the
>> > > > > > >> > > output to me?
>> > > > > > >> > >
>> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
>> > > -lookin
>> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
>> > > > > 20141201_00
>> > > > > > >> > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
>> > > > > > >> > > extract_tiles/20141201_00/filter_20141201_00.tcst
>> -basin
>> > ML
>> > > > > > >> > > -out_init_mask
>> > > > > > >> > > /D2/xinxia/METplus/MET/met-5.2
>> /share/met/poly/CONUS.poly"
>> > > > > > >> > >
>> > > > > > >> > > Thank you!
>> > > > > > >> > >
>> > > > > > >> > > Julie
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song via
RT <
>> > > > > > >> met_help at ucar.edu>
>> > > > > > >> > > wrote:
>> > > > > > >> > >
>> > > > > > >> > > >
>> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
>> > > Ticket/Display.html?id=79605
>> > > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Hi Julie,
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Now I can run the program, but when I look at
the log
>> file
>> > > in
>> > > > > the
>> > > > > > >> > output,
>> > > > > > >> > > > it shows error below:
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
>> > > ush/run_tc_stat.py:tc_stat
>> > > > > from
>> > > > > > >> > > calling
>> > > > > > >> > > > MET TC-STAT with command:/D2/xinxia/METplus/MET
>> > > > > > /met-5.2/bin/tc_stat
>> > > > > > >> > -job
>> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
>> > tc_pairs/201412
>> > > > > > >> -init_inc
>> > > > > > >> > > > 20141201_00 -match_points true -dump_row
>> > > > > > /D2/xinxia/METplus/MET/out/
>> > > > > > >> > > >
extract_tiles/20141201_00/filter_20141201_00.tcst
>> -basin
>> > > ML
>> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
>> > > > > > >> > 2/share/met/poly/CONUS.poly
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > How should I fix it?
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Thanks,
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > > Xinxia
>> > > > > > >> > > >
>> > > > > > >> > > > ________________________________
>> > > > > > >> > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
>> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
>> > > > > > >> > > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
>> > > module
>> > > > > > named
>> > > > > > >> > > > constants_pdef
>> > > > > > >> > > >
>> > > > > > >> > > > Hi Xinxia.
>> > > > > > >> > > >
>> > > > > > >> > > > I believe that python doesn't know how to find
the
>> module
>> > > > > because
>> > > > > > >> the
>> > > > > > >> > ush
>> > > > > > >> > > > directory is not in your PYTHONPATH.  Both the
parm and
>> > ush
>> > > > > > >> directory
>> > > > > > >> > > need
>> > > > > > >> > > > to be specified in your PYTHONPATH.  Please add
the ush
>> > > > > directory
>> > > > > > to
>> > > > > > >> > your
>> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know
how it
>> goes.
>> > > > > > >> > > >
>> > > > > > >> > > > Thanks,
>> > > > > > >> > > > Julie
>> > > > > > >> > > >
>> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song
via RT <
>> > > > > > >> > met_help at ucar.edu>
>> > > > > > >> > > > wrote:
>> > > > > > >> > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
>> > > > Ticket/Display.html?id=79605
>> > > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Hi Julie,
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Since I don't have setenv, I added these 3
sentence
>> into
>> > > my
>> > > > > > >> .bashrc
>> > > > > > >> > > file:
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > export
PYTHONPATH="/D2/xinxia/METplus/METplus/parm"
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > export USHROOT=/D2/xinxia/METplus/METplus/ush
>> > > > > > >> > > > >
>> > > > > > >> > > > > export PATH=$USHROOT:$PATH
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that the
>> variables
>> > > are
>> > > > > set,
>> > > > > > >> but
>> > > > > > >> > > the
>> > > > > > >> > > > > program still can't find the module.
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > Thanks,
>> > > > > > >> > > > >
>> > > > > > >> > > > > Xinxia
>> > > > > > >> > > > >
>> > > > > > >> > > > > ________________________________
>> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
>> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
>> > > > > > >> > > > > To: Xinxia_Song at outlook.com
>> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
>> No
>> > > > module
>> > > > > > >> named
>> > > > > > >> > > > > constants_pdef
>> > > > > > >> > > > >
>> > > > > > >> > > > > Hi Xinxia.
>> > > > > > >> > > > >
>> > > > > > >> > > > > Could you please check to make sure that the
ush
>> > directory
>> > > > > with
>> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in
your
>> .cshrc
>> > > file
>> > > > > (or
>> > > > > > >> > .bashrc
>> > > > > > >> > > > or
>> > > > > > >> > > > > similar file)?  The parm directory should also
be in
>> > your
>> > > > > > >> PYTHONPATH.
>> > > > > > >> > > > >
>> > > > > > >> > > > > For example,
>> > > > > > >> > > > >
>> > > > > > >> > > > > setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/
>> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
>> > > > > > >> > > > >
>> > > > > > >> > > > > Please also check make sure that the path to
the ush
>> > > > directory
>> > > > > > is
>> > > > > > >> > also
>> > > > > > >> > > > > specified your your path environment variable.
For
>> > > example,
>> > > > > > >> > > > >
>> > > > > > >> > > > > set path = (/usr/local/bin \
>> > > > > > >> > > > >                  /usr/local/python/bin/python
\
>> > > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush )
>> > > > > > >> > > > >
>> > > > > > >> > > > > If they are not there, please add them and
then
>> source
>> > the
>> > > > > file
>> > > > > > >> (e.g.
>> > > > > > >> > > run
>> > > > > > >> > > > > "source ~/.cshrc").
>> > > > > > >> > > > >
>> > > > > > >> > > > > Thank you!  Please let us know how it goes.
>> > > > > > >> > > > >
>> > > > > > >> > > > > Julie
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song
via RT <
>> > > > > > >> > met_help at ucar.edu
>> > > > > > >> > > >
>> > > > > > >> > > > > wrote:
>> > > > > > >> > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605 was
acted
>> > upon.
>> > > > > > >> > > > > > Transaction: Ticket created by
>> > Xinxia_Song at outlook.com
>> > > > > > >> > > > > >        Queue: met_help
>> > > > > > >> > > > > >      Subject: ImportError: No module named
>> > > constants_pdef
>> > > > > > >> > > > > >        Owner: Nobody
>> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
>> > > > > > >> > > > > >       Status: new
>> > > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
>> > > > > > >> > > Ticket/Display.html?id=79605
>> > > > > > >> > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Hi,
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > ImportError: No module named constants_pdef
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Seems it doesn't recognize constants_pdef as
its
>> > module.
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Thanks,
>> > > > > > >> > > > > >
>> > > > > > >> > > > > > Xinxia
>> > > > > > >> > > > > >
>> > > > > > >> > > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> > >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >> >
>> > > > > > >>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Mon Feb 27 08:46:37 2017

Hi Xinxia.  Can you please upload the configuration file that you used
and
the log file from that run to our ftp server so that we can take a
look?

Thanks!

Julie

On Sun, Feb 26, 2017 at 2:35 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I ran the mater_met_plus.py and in the end in the log file it gave
me an
> error:
>
> 2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] |
Problem
> executing: series_by_lead.py
>
>
> Thanks,
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Saturday, February 25, 2017 6:49:56 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> You could also run "tail -f </path/to/logfile/logfile_name>"
replacing
> </path/to/logfile/logfile_name> with the logfile path and name
information
> to see how the run is coming along.  I hope that helps!
>
> Julie
>
> On Fri, Feb 24, 2017 at 9:42 AM, Julie Prestopnik <jpresto at ucar.edu>
> wrote:
>
> > Hi Xinxia.  Running the entire three months of data could
certainly take
> a
> > long time.  I am hoping to get an estimate on how long it took to
run the
> > three month data set here, but have not been able to obtain that
number
> > yet.   It sounds the code was running successfully for you.  If
you're
> > eager to take a lot at some output, I would suggest running a
smaller
> > subset of the data, or perhaps you could set up the whole three
month to
> > run over the weekend.  I would suggest letting the code run to
completion
> > for either a smaller subset or for the entire subset and then
checking
> the
> > log file for errors.  I hope that helps.  Please let me know if
you have
> > any questions or encounter any issues.
> >
> > Thanks,
> > Julie
> >
> >
> > On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >>
> >> Hi Julie,
> >>
> >>
> >> The version is set to be 2.7+. When I ran master_met_plus.py, it
seems
> it
> >> will run forever. So I killed it, and got the following:
> >>
> >> [xinxia at chaos ush]$ python master_met_plus.py
> >>
> >> ^CTraceback (most recent call last):
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157, in
> >> <module>
> >>
> >>     main()
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100, in
> >> main
> >>
> >>     filtered_out_dir)
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> >> tc_stat
> >>
> >>     tc_stat_out = subprocess.check_output(tc_cmd,
> >> stderr=subprocess.STDOUT, shell=True )
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
213,
> >> in check_output
> >>
> >>     output, unused_err = process.communicate()
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
471,
> >> in communicate
> >>
> >>     stdout = _eintr_retry_call(self.stdout.read)
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
121,
> >> in _eintr_retry_call
> >>
> >>     return func(*args)
> >>
> >> KeyboardInterrupt
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Xinxia
> >>
> >> ________________________________
> >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> Sent: Friday, February 24, 2017 12:02:21 PM
> >> To: Xinxia_Song at outlook.com
> >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> constants_pdef
> >>
> >> Hi Xinxia.  I suspect that even though you installed Python 2.7
that
> >> Python
> >> 2.6.6 is still being used.
> >>
> >> Please try running:
> >>
> >> python --version
> >>
> >> on the command line.
> >>
> >> If you see "Python 2..6.6", please add the path for Python 2.7 to
the
> >> front
> >> of your path in your ~/.bashrc file.  Then, source your ~/.bashrc
file
> and
> >> try rerunning
> >>
> >> python --version
> >>
> >> on the command line.  Hopefully, then you will see the new
version.
> Then,
> >> please try rerunning master_met_plus.py.
> >>
> >> I hope this helps!  Thanks!
> >>
> >> Julie
> >>
> >> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
> >> wrote:
> >>
> >> >
> >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> >
> >> > Hi Julie,
> >> >
> >> >
> >> > I installed myself the 2.7 python, it still got the error when
> running:
> >> >
> >> > Traceback (most recent call last):
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
945,
> in
> >> > <module>
> >> >
> >> >     analysis_by_lead_time()
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
107,
> in
> >> > analysis_by_lead_time
> >> >
> >> >     util.apply_series_filters(tile_dir, init_times,
> >> > series_lead_filtered_out_dir, p, logger)
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005,
in
> >> > apply_series_filters
> >> >
> >> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> >> > tc_stat
> >> >
> >> >     tc_stat_out = subprocess.check_output(tc_cmd,
> >> > stderr=subprocess.STDOUT, shell=True )
> >> >
> >> > AttributeError: 'module' object has no attribute 'check_output'
> >> >
> >> >
> >> > Thanks,
> >> >
> >> >
> >> > Xinxia
> >> >
> >> > ________________________________
> >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > Sent: Friday, February 24, 2017 9:37:53 AM
> >> > To: Xinxia_Song at outlook.com
> >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > constants_pdef
> >> >
> >> > Can you please tell me which version of Python you are using?
> >> check_output
> >> > for subprocess was introduced in Python 2.7.    Do you have
access to
> >> > Python version 2.7 or higher?
> >> >
> >> > Thanks,
> >> > Julie
> >> >
> >> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT <
> met_help at ucar.edu
> >> >
> >> > wrote:
> >> >
> >> > >
> >> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> >> > >
> >> > > Hi Julie,
> >> > >
> >> > >
> >> > > I added it to the $PATH and ran the master_met_python.py:
> >> > >
> >> > > [xinxia at chaos ush]$ python master_met_plus.py
> >> > >
> >> > > Traceback (most recent call last):
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line 157,
> >> in
> >> > > <module>
> >> > >
> >> > >     main()
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line 100,
> >> in
> >> > > main
> >> > >
> >> > >     filtered_out_dir)
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> >> > > tc_stat
> >> > >
> >> > >     tc_stat_out = subprocess.check_output(tc_cmd,
> >> > > stderr=subprocess.STDOUT, shell=True )
> >> > >
> >> > > AttributeError: 'module' object has no attribute
'check_output'
> >> > >
> >> > >
> >> > > Thanks,
> >> > >
> >> > >
> >> > > Xinxia
> >> > >
> >> > > ________________________________
> >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > Sent: Friday, February 24, 2017 9:07:40 AM
> >> > > To: Xinxia_Song at outlook.com
> >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > > constants_pdef
> >> > >
> >> > > Unfortunately, your environment does not know where to find
> >> > > run_tc_pairs.py.  Please try adding the directory with
> run_tc_pairs.py
> >> > > (/D2/xinxia/METplus/METplus/ush) to your path in your
~/.bashrc
> file,
> >> > then
> >> > > run "source ~/.bashrc", then trying rerunning.  Please let me
know
> how
> >> > that
> >> > > goes.
> >> > >
> >> > > Thanks!
> >> > >
> >> > > Julie
> >> > >
> >> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
> >> met_help at ucar.edu>
> >> > > wrote:
> >> > >
> >> > > >
> >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > >
> >> > > > Hi Julie,
> >> > > >
> >> > > >
> >> > > > I'm running met in a machine that's owned by our
department, I
> don't
> >> > have
> >> > > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't
> >> find
> >> > > it.
> >> > > >
> >> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> >> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> >> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> >> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> >> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> >> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> >> > > environment-modules/3.2.10/
> >> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> >> > > >
> >> > > >
> >> > > > But I could find it manually in that directory.
> >> > > >
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > >
> >> > > > Xinxia
> >> > > >
> >> > > > ________________________________
> >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > Sent: Friday, February 24, 2017 8:52:16 AM
> >> > > > To: Xinxia_Song at outlook.com
> >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> >> > > > constants_pdef
> >> > > >
> >> > > > Hi Xinxia.
> >> > > >
> >> > > > It looks like you got a successful run of tc_stat - that's
great
> >> news!
> >> > > >
> >> > > > I'm not sure what you mean by "Because I don't have the
right, I
> >> can't
> >> > > find
> >> > > > run_tc_pairs.py, but I know it's under
> >> > > >
> >> > > > /D2/xinxia/METplus/METplus/ush".
> >> > > >
> >> > > > Can you please explain?  What happened when you ran "which
> >> > > > run_tc_pairs.py"?
> >> > > >
> >> > > > Thanks,
> >> > > > Julie
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> >> > met_help at ucar.edu>
> >> > > > wrote:
> >> > > >
> >> > > > >
> >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > > >
> >> > > > > Hi Julie,
> >> > > > >
> >> > > > >
> >> > > > > I removed the space.
> >> > > > >
> >> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> >> -job
> >> > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > -init_inc
> >> > > > > 20141201_00 -match_points true -dump_row
> >> /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > 2/share/met/poly/CONUS.poly
> >> > > > >
> >> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> >> > > tc_pairs/201412
> >> > > > >
> >> > > > > DEBUG 2:
> >> > > > >
> >> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML
-init_inc
> >> > > > 20141201_000000
> >> > > > > -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.
> >> > > > 2/share/met/poly/CONUS.poly
> >> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > filter_20141201_00.tcst
> >> > > > >
> >> > > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> >> > > > >
> >> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
> >> -match_points
> >> > > > true
> >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > 2/share/met/poly/CONUS.poly
> >> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > filter_20141201_00.tcst
> >> > > > >
> >> > > > >
> >> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> >> > > > >
> >> > > > >
> >> > > > > Because I don't have the right, I can't find
run_tc_pairs.py,
> but
> >> I
> >> > > know
> >> > > > > it's under
> >> > > > >
> >> > > > > /D2/xinxia/METplus/METplus/ush
> >> > > > >
> >> > > > >
> >> > > > > For Python,
> >> > > > >
> >> > > > > [xinxia at chaos ~]$ which python
> >> > > > >
> >> > > > > /usr/bin/python
> >> > > > >
> >> > > > >
> >> > > > > Xinxia
> >> > > > >
> >> > > > > ________________________________
> >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
> >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > constants_pdef
> >> > > > >
> >> > > > > Hi Xinxia.
> >> > > > >
> >> > > > > It looks like there is a space where there should not be
a space
> >> > > (between
> >> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> >> > > > > filter_20141201_00.tcst after the -dump_row option).
> >> > > > >
> >> > > > > Could you please try it again without the space?
> >> > > > >
> >> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> >> calling
> >> > MET
> >> > > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> >> -job
> >> > > > > filter
> >> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > 20141201_00
> >> > > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > > -out_init_mask
> >> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >> > > > >
> >> > > > > Regarding the master_met_plus.py run, please try running
the
> >> > following
> >> > > > two
> >> > > > > commands and send me the output:
> >> > > > >
> >> > > > > which run_tc_pairs.py
> >> > > > >
> >> > > > > which python
> >> > > > >
> >> > > > > Thanks!
> >> > > > >
> >> > > > > Julie
> >> > > > >
> >> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> >> > > met_help at ucar.edu>
> >> > > > > wrote:
> >> > > > >
> >> > > > > >
> >> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> >> > > > > >
> >> > > > > > Hi Julie,
> >> > > > > >
> >> > > > > >
> >> > > > > > After I ran the long one line command:
> >> > > > > >
> >> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.
> 2/bin/tc_stat
> >> > -job
> >> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > > -init_inc
> >> > > > > > 20141201_00 -match_points true -dump_row
> >> > /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/
> >> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > >
> >> > > > > >
> >> > > > > > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/
> >> > > > tc_pairs/201412
> >> > > > > >
> >> > > > > > ERROR  :
> >> > > > > >
> >> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const
> >> char
> >> > > > > > *jobstring) -> unsupported job command options
> >> > > > "filter_20141201_00.tcst".
> >> > > > > >
> >> > > > > > ERROR  :
> >> > > > > >
> >> > > > > >
> >> > > > > > And for the master_met_plus.py, I got the error:
> >> > > > > >
> >> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
> >> > > > > >
> >> > > > > > sh: run_tc_pairs.py: command not found
> >> > > > > >
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > >
> >> > > > > >
> >> > > > > > Xinxia
> >> > > > > >
> >> > > > > > ________________________________
> >> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> >> > > > > > To: Xinxia_Song at outlook.com
> >> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > > constants_pdef
> >> > > > > >
> >> > > > > > My apologies, my response should have said, "By
default, MET
> >> > version
> >> > > > 5.2
> >> > > > > is
> >> > > > > > compiled using dynamic linking."  It's true for both,
but I
> see
> >> > > you're
> >> > > > > > using 5.2 and I inadvertently referred to 5.1.
> >> > > > > >
> >> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> >> > jpresto at ucar.edu
> >> > > >
> >> > > > > > wrote:
> >> > > > > >
> >> > > > > > > Hi Xinxia.  Regarding the error:
> >> > > > > > >
> >> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> loading
> >> > > > shared
> >> > > > > > > libraries: libgsl.so.19: cannot open shared object
file: No
> >> such
> >> > > file
> >> > > > > or
> >> > > > > > > directory
> >> > > > > > >
> >> > > > > > > By default, MET version 5.1 is compiled using dynamic
> linking.
> >> > > > Rather
> >> > > > > > > than compiling the external library code in with the
MET
> >> > > executables
> >> > > > > > (which
> >> > > > > > > is
> >> > > > > > > called static linking), it looks for them at runtime.
And
> >> it's
> >> > > > looking
> >> > > > > > > for those "shared object" (.so) library files.
> >> > > > > > >
> >> > > > > > > This should be easy to fix. We just need to tell it
where to
> >> find
> >> > > > them,
> >> > > > > > > and we do that by setting (or adding to the
> LD_LIBRARY_PATH).
> >> > Look
> >> > > > in
> >> > > > > > your
> >> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already
defined in
> >> there,
> >> > > add
> >> > > > > the
> >> > > > > > > path to the libgsl.so.19 to the end of it.  If not,
add an
> >> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So,
for
> >> example,
> >> > if
> >> > > > the
> >> > > > > > path
> >> > > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
> >> > > > > > l_libs/GSL/gsl-1.16/lib
> >> > > > > > > you would add teh following to your ~/.bashrc file:
> >> > > > > > >
> >> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> >> > METplus/MET/external_libs/GSL/
> >> > > > > > > gsl-1.16/lib
> >> > > > > > >
> >> > > > > > > Then save the change and source that file:
> >> > > > > > >
> >> > > > > > >   source ~/.bashrc
> >> > > > > > >
> >> > > > > > > Then, please try rerunning the command manually and
let me
> >> know
> >> > if
> >> > > it
> >> > > > > > > works.
> >> > > > > > >
> >> > > > > > > I believe that this was the cause of the initial
error you
> >> > received
> >> > > > > from
> >> > > > > > > MET+:
> >> > > > > > >
> >> > > > > > > ERROR| /D2/xinxia/METplus/METplus/
> ush/run_tc_stat.py:tc_stat
> >> > from
> >> > > > > > calling
> >> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> >> > > MET/met-5.2/bin/tc_stat
> >> > > > > -job
> >> > > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > > > -init_inc
> >> > > > > > > 20141201_00 -match_points true -dump_row
> >> > > > /D2/xinxia/METplus/MET/out/ext
> >> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> >> > > > > -out_init_mask
> >> > > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > Thanks,
> >> > > > > > > Julie
> >> > > > > > >
> >> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<
> >> > > > > met_help at ucar.edu>
> >> > > > > > > wrote:
> >> > > > > > >
> >> > > > > > >>
> >> > > > > > >> <URL: https://rt.rap.ucar.edu/rt/Tic
> >> ket/Display.html?id=79605 >
> >> > > > > > >>
> >> > > > > > >> Hi Julie,
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2
> >> /bin/tc_stat
> >> > > -job
> >> > > > > > >> filter -lookin /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> >> > > > -init_inc
> >> > > > > > >> 20141201_00 -match_points true -dump_row
> >> > > > > /D2/xinxia/METplus/MET/out/ext
> >> > > > > > ract_tiles/20141201_00/
> >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >>
> >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> loading
> >> > > > > shared
> >> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file: No
> >> such
> >> > > > file
> >> > > > > or
> >> > > > > > >> directory
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
> >> under
> >> > > > > > >> xinxia_data directory.
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> Thanks,
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> Xinxia
> >> > > > > > >>
> >> > > > > > >> ________________________________
> >> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> >> > > > > > >> To: Xinxia_Song at outlook.com
> >> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> module
> >> > > named
> >> > > > > > >> constants_pdef
> >> > > > > > >>
> >> > > > > > >> Hi Xinxia.
> >> > > > > > >>
> >> > > > > > >> I can see that your command, which should have been
all on
> >> one
> >> > > line,
> >> > > > > was
> >> > > > > > >> broken up into several lines.  Please try running
the
> command
> >> > > again,
> >> > > > > > >> making
> >> > > > > > >> sure that the entire command is on one line:
> >> > > > > > >>
> >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> >> -lookin
> >> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > 20141201_00
> >> > > > > > >> -match_points true -dump_row
> >> > > > > > >>
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >>
> >> > > > > > >> Then, please send the output from that command.
> >> > > > > > >>
> >> > > > > > >> Regarding, your error:
> >> > > > > > >>
> >> > > > > > >> sh: run_tc_pairs.py: command not found
> >> > > > > > >>
> >> > > > > > >> It's strange that would only have occurred after
having
> >> changed
> >> > > the
> >> > > > > > >> LOG_LEVEL.  Could you please send us your
configuration
> file?
> >> > > > > > >>
> >> > > > > > >> Thanks!
> >> > > > > > >>
> >> > > > > > >> Julie
> >> > > > > > >>
> >> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<
> >> > > > > met_help at ucar.edu>
> >> > > > > > >> wrote:
> >> > > > > > >>
> >> > > > > > >> >
> >> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/Tic
> >> ket/Display.html?id=79605
> >> > >
> >> > > > > > >> >
> >> > > > > > >> > Hi Julie,
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> >> > 2/bin/tc_stat
> >> > > > -job
> >> > > > > > >> > filter -lookin
> >> > > > > > >> >
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> > loading
> >> > > > > > shared
> >> > > > > > >> > libraries: libgsl.so.19: cannot open shared object
file:
> No
> >> > such
> >> > > > > file
> >> > > > > > or
> >> > > > > > >> > directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> >> > > tc_pairs/201412
> >> > > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> >> > > > > > >> >
> >> > > > > > >> > -bash:
/D2/xinxia/METplus/MET/input/tc_pairs/201412: is
> a
> >> > > > directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> >> > > > > > >> ract_tiles/20141201_00/
> >> > > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >> >
> >> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/ext
> >> ract_tiles/20141201_00/:
> >> > > No
> >> > > > > such
> >> > > > > > >> > file or directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > After I change the LOG_LEVEL, I ran the
> >> master_met_plus.py, it
> >> > > > says:
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> >> > > > > > >> >
> >> > > > > > >> > sh: run_tc_pairs.py: command not found
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > Thanks,
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > Xinxia
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > ________________________________
> >> > > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> >> > > > > > >> > To: Xinxia_Song at outlook.com
> >> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> >> module
> >> > > > named
> >> > > > > > >> > constants_pdef
> >> > > > > > >> >
> >> > > > > > >> > Thank you.  Unfortunately, the level of detail in
the log
> >> file
> >> > > > > wasn't
> >> > > > > > >> what
> >> > > > > > >> > I hoped for.  I'd like to have you try two things.
> >> > > > > > >> >
> >> > > > > > >> > First, could you please send me your output of
your
> manual
> >> run
> >> > > of
> >> > > > > the
> >> > > > > > >> > following?
> >> > > > > > >> >
> >> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> >> > -lookin
> >> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > 20141201_00
> >> > > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> >> > > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
> -basin
> >> ML
> >> > > > > > >> > -out_init_mask
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly"
> >> > > > > > >> >
> >> > > > > > >> > Second, could you please change your log level in
your
> >> > > > configuration
> >> > > > > > >> file
> >> > > > > > >> > from
> >> > > > > > >> >
> >> > > > > > >> > LOG_LEVEL = "INFO"
> >> > > > > > >> >
> >> > > > > > >> > to
> >> > > > > > >> >
> >> > > > > > >> > LOG_LEVEL = "DEBUG"
> >> > > > > > >> >
> >> > > > > > >> > then rerun and upload your log file to our ftp
server
> >> again?
> >> > > > > > >> >
> >> > > > > > >> > Thank you!
> >> > > > > > >> >
> >> > > > > > >> > Julie
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via
RT <
> >> > > > > > met_help at ucar.edu
> >> > > > > > >> >
> >> > > > > > >> > wrote:
> >> > > > > > >> >
> >> > > > > > >> > >
> >> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> >> > Ticket/Display.html?id=79605
> >> > > >
> >> > > > > > >> > >
> >> > > > > > >> > > Hi Julie,
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > Thanks,
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > Xinxia
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > ________________________________
> >> > > > > > >> > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> >> > > > > > >> > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> >> > module
> >> > > > > named
> >> > > > > > >> > > constants_pdef
> >> > > > > > >> > >
> >> > > > > > >> > > Hi Xinxia.
> >> > > > > > >> > >
> >> > > > > > >> > > I think it would be helpful if I could take a
look at
> the
> >> > log
> >> > > > > file.
> >> > > > > > >> > Could
> >> > > > > > >> > > you please upload your file to our anonymous ftp
site
> as
> >> > > follows
> >> > > > > so
> >> > > > > > >> that
> >> > > > > > >> > I
> >> > > > > > >> > > can take a look?
> >> > > > > > >> > >
> >> > > > > > >> > >    http://www.dtcenter.org/met/
> >> > users/support/met_help.php#ftp
> >> > > > > > >> > >
> >> > > > > > >> > > Also, could you please try running the following
> manually
> >> > and
> >> > > > send
> >> > > > > > the
> >> > > > > > >> > > output to me?
> >> > > > > > >> > >
> >> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter
> >> > > -lookin
> >> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > > 20141201_00
> >> > > > > > >> > > -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> >> > > > > > >> > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> >> -basin
> >> > ML
> >> > > > > > >> > > -out_init_mask
> >> > > > > > >> > > /D2/xinxia/METplus/MET/met-5.2
> >> /share/met/poly/CONUS.poly"
> >> > > > > > >> > >
> >> > > > > > >> > > Thank you!
> >> > > > > > >> > >
> >> > > > > > >> > > Julie
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song
via RT <
> >> > > > > > >> met_help at ucar.edu>
> >> > > > > > >> > > wrote:
> >> > > > > > >> > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> >> > > Ticket/Display.html?id=79605
> >> > > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Hi Julie,
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Now I can run the program, but when I look at
the log
> >> file
> >> > > in
> >> > > > > the
> >> > > > > > >> > output,
> >> > > > > > >> > > > it shows error below:
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> >> > > ush/run_tc_stat.py:tc_stat
> >> > > > > from
> >> > > > > > >> > > calling
> >> > > > > > >> > > > MET TC-STAT with
command:/D2/xinxia/METplus/MET
> >> > > > > > /met-5.2/bin/tc_stat
> >> > > > > > >> > -job
> >> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> >> > tc_pairs/201412
> >> > > > > > >> -init_inc
> >> > > > > > >> > > > 20141201_00 -match_points true -dump_row
> >> > > > > > /D2/xinxia/METplus/MET/out/
> >> > > > > > >> > > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> >> -basin
> >> > > ML
> >> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > > > > >> > 2/share/met/poly/CONUS.poly
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > How should I fix it?
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Thanks,
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Xinxia
> >> > > > > > >> > > >
> >> > > > > > >> > > > ________________________________
> >> > > > > > >> > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> >> > > > > > >> > > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> No
> >> > > module
> >> > > > > > named
> >> > > > > > >> > > > constants_pdef
> >> > > > > > >> > > >
> >> > > > > > >> > > > Hi Xinxia.
> >> > > > > > >> > > >
> >> > > > > > >> > > > I believe that python doesn't know how to find
the
> >> module
> >> > > > > because
> >> > > > > > >> the
> >> > > > > > >> > ush
> >> > > > > > >> > > > directory is not in your PYTHONPATH.  Both the
parm
> and
> >> > ush
> >> > > > > > >> directory
> >> > > > > > >> > > need
> >> > > > > > >> > > > to be specified in your PYTHONPATH.  Please
add the
> ush
> >> > > > > directory
> >> > > > > > to
> >> > > > > > >> > your
> >> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know
how it
> >> goes.
> >> > > > > > >> > > >
> >> > > > > > >> > > > Thanks,
> >> > > > > > >> > > > Julie
> >> > > > > > >> > > >
> >> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song
via RT
> <
> >> > > > > > >> > met_help at ucar.edu>
> >> > > > > > >> > > > wrote:
> >> > > > > > >> > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> >> > > > Ticket/Display.html?id=79605
> >> > > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Hi Julie,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Since I don't have setenv, I added these 3
sentence
> >> into
> >> > > my
> >> > > > > > >> .bashrc
> >> > > > > > >> > > file:
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export PYTHONPATH="/D2/xinxia/
> METplus/METplus/parm"
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export
USHROOT=/D2/xinxia/METplus/METplus/ush
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export PATH=$USHROOT:$PATH
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that
the
> >> variables
> >> > > are
> >> > > > > set,
> >> > > > > > >> but
> >> > > > > > >> > > the
> >> > > > > > >> > > > > program still can't find the module.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Thanks,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Xinxia
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > ________________________________
> >> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> >> > > > > > >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> >> No
> >> > > > module
> >> > > > > > >> named
> >> > > > > > >> > > > > constants_pdef
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Hi Xinxia.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Could you please check to make sure that the
ush
> >> > directory
> >> > > > > with
> >> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in
your
> >> .cshrc
> >> > > file
> >> > > > > (or
> >> > > > > > >> > .bashrc
> >> > > > > > >> > > > or
> >> > > > > > >> > > > > similar file)?  The parm directory should
also be
> in
> >> > your
> >> > > > > > >> PYTHONPATH.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > For example,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/
> >> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Please also check make sure that the path to
the
> ush
> >> > > > directory
> >> > > > > > is
> >> > > > > > >> > also
> >> > > > > > >> > > > > specified your your path environment
variable.  For
> >> > > example,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > set path = (/usr/local/bin \
> >> > > > > > >> > > > >
/usr/local/python/bin/python \
> >> > > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush
)
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > If they are not there, please add them and
then
> >> source
> >> > the
> >> > > > > file
> >> > > > > > >> (e.g.
> >> > > > > > >> > > run
> >> > > > > > >> > > > > "source ~/.cshrc").
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Thank you!  Please let us know how it goes.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Julie
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song
via
> RT <
> >> > > > > > >> > met_help at ucar.edu
> >> > > > > > >> > > >
> >> > > > > > >> > > > > wrote:
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605
was acted
> >> > upon.
> >> > > > > > >> > > > > > Transaction: Ticket created by
> >> > Xinxia_Song at outlook.com
> >> > > > > > >> > > > > >        Queue: met_help
> >> > > > > > >> > > > > >      Subject: ImportError: No module named
> >> > > constants_pdef
> >> > > > > > >> > > > > >        Owner: Nobody
> >> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> >> > > > > > >> > > > > >       Status: new
> >> > > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> >> > > > > > >> > > Ticket/Display.html?id=79605
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Hi,
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > ImportError: No module named
constants_pdef
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Seems it doesn't recognize constants_pdef
as its
> >> > module.
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Thanks,
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Xinxia
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Mon Feb 27 11:17:22 2017

Hi Julie,


I uploaded the constants_pdef.py and master_met_plus.20170226.log.


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Tuesday, February 28, 2017 5:46:37 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Hi Xinxia.  Can you please upload the configuration file that you used
and
the log file from that run to our ftp server so that we can take a
look?

Thanks!

Julie

On Sun, Feb 26, 2017 at 2:35 PM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I ran the mater_met_plus.py and in the end in the log file it gave
me an
> error:
>
> 2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] |
Problem
> executing: series_by_lead.py
>
>
> Thanks,
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Saturday, February 25, 2017 6:49:56 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> You could also run "tail -f </path/to/logfile/logfile_name>"
replacing
> </path/to/logfile/logfile_name> with the logfile path and name
information
> to see how the run is coming along.  I hope that helps!
>
> Julie
>
> On Fri, Feb 24, 2017 at 9:42 AM, Julie Prestopnik <jpresto at ucar.edu>
> wrote:
>
> > Hi Xinxia.  Running the entire three months of data could
certainly take
> a
> > long time.  I am hoping to get an estimate on how long it took to
run the
> > three month data set here, but have not been able to obtain that
number
> > yet.   It sounds the code was running successfully for you.  If
you're
> > eager to take a lot at some output, I would suggest running a
smaller
> > subset of the data, or perhaps you could set up the whole three
month to
> > run over the weekend.  I would suggest letting the code run to
completion
> > for either a smaller subset or for the entire subset and then
checking
> the
> > log file for errors.  I hope that helps.  Please let me know if
you have
> > any questions or encounter any issues.
> >
> > Thanks,
> > Julie
> >
> >
> > On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >>
> >> Hi Julie,
> >>
> >>
> >> The version is set to be 2.7+. When I ran master_met_plus.py, it
seems
> it
> >> will run forever. So I killed it, and got the following:
> >>
> >> [xinxia at chaos ush]$ python master_met_plus.py
> >>
> >> ^CTraceback (most recent call last):
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157, in
> >> <module>
> >>
> >>     main()
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100, in
> >> main
> >>
> >>     filtered_out_dir)
> >>
> >>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line 69,
in
> >> tc_stat
> >>
> >>     tc_stat_out = subprocess.check_output(tc_cmd,
> >> stderr=subprocess.STDOUT, shell=True )
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
213,
> >> in check_output
> >>
> >>     output, unused_err = process.communicate()
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
471,
> >> in communicate
> >>
> >>     stdout = _eintr_retry_call(self.stdout.read)
> >>
> >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line
121,
> >> in _eintr_retry_call
> >>
> >>     return func(*args)
> >>
> >> KeyboardInterrupt
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Xinxia
> >>
> >> ________________________________
> >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> Sent: Friday, February 24, 2017 12:02:21 PM
> >> To: Xinxia_Song at outlook.com
> >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> constants_pdef
> >>
> >> Hi Xinxia.  I suspect that even though you installed Python 2.7
that
> >> Python
> >> 2.6.6 is still being used.
> >>
> >> Please try running:
> >>
> >> python --version
> >>
> >> on the command line.
> >>
> >> If you see "Python 2..6.6", please add the path for Python 2.7 to
the
> >> front
> >> of your path in your ~/.bashrc file.  Then, source your ~/.bashrc
file
> and
> >> try rerunning
> >>
> >> python --version
> >>
> >> on the command line.  Hopefully, then you will see the new
version.
> Then,
> >> please try rerunning master_met_plus.py.
> >>
> >> I hope this helps!  Thanks!
> >>
> >> Julie
> >>
> >> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT
<met_help at ucar.edu>
> >> wrote:
> >>
> >> >
> >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> >
> >> > Hi Julie,
> >> >
> >> >
> >> > I installed myself the 2.7 python, it still got the error when
> running:
> >> >
> >> > Traceback (most recent call last):
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
945,
> in
> >> > <module>
> >> >
> >> >     analysis_by_lead_time()
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py", line
107,
> in
> >> > analysis_by_lead_time
> >> >
> >> >     util.apply_series_filters(tile_dir, init_times,
> >> > series_lead_filtered_out_dir, p, logger)
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line 1005,
in
> >> > apply_series_filters
> >> >
> >> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
> >> >
> >> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> >> > tc_stat
> >> >
> >> >     tc_stat_out = subprocess.check_output(tc_cmd,
> >> > stderr=subprocess.STDOUT, shell=True )
> >> >
> >> > AttributeError: 'module' object has no attribute 'check_output'
> >> >
> >> >
> >> > Thanks,
> >> >
> >> >
> >> > Xinxia
> >> >
> >> > ________________________________
> >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > Sent: Friday, February 24, 2017 9:37:53 AM
> >> > To: Xinxia_Song at outlook.com
> >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > constants_pdef
> >> >
> >> > Can you please tell me which version of Python you are using?
> >> check_output
> >> > for subprocess was introduced in Python 2.7.    Do you have
access to
> >> > Python version 2.7 or higher?
> >> >
> >> > Thanks,
> >> > Julie
> >> >
> >> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT <
> met_help at ucar.edu
> >> >
> >> > wrote:
> >> >
> >> > >
> >> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> >> > >
> >> > > Hi Julie,
> >> > >
> >> > >
> >> > > I added it to the $PATH and ran the master_met_python.py:
> >> > >
> >> > > [xinxia at chaos ush]$ python master_met_plus.py
> >> > >
> >> > > Traceback (most recent call last):
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line 157,
> >> in
> >> > > <module>
> >> > >
> >> > >     main()
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line 100,
> >> in
> >> > > main
> >> > >
> >> > >     filtered_out_dir)
> >> > >
> >> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> >> > > tc_stat
> >> > >
> >> > >     tc_stat_out = subprocess.check_output(tc_cmd,
> >> > > stderr=subprocess.STDOUT, shell=True )
> >> > >
> >> > > AttributeError: 'module' object has no attribute
'check_output'
> >> > >
> >> > >
> >> > > Thanks,
> >> > >
> >> > >
> >> > > Xinxia
> >> > >
> >> > > ________________________________
> >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > Sent: Friday, February 24, 2017 9:07:40 AM
> >> > > To: Xinxia_Song at outlook.com
> >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> >> > > constants_pdef
> >> > >
> >> > > Unfortunately, your environment does not know where to find
> >> > > run_tc_pairs.py.  Please try adding the directory with
> run_tc_pairs.py
> >> > > (/D2/xinxia/METplus/METplus/ush) to your path in your
~/.bashrc
> file,
> >> > then
> >> > > run "source ~/.bashrc", then trying rerunning.  Please let me
know
> how
> >> > that
> >> > > goes.
> >> > >
> >> > > Thanks!
> >> > >
> >> > > Julie
> >> > >
> >> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
> >> met_help at ucar.edu>
> >> > > wrote:
> >> > >
> >> > > >
> >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > >
> >> > > > Hi Julie,
> >> > > >
> >> > > >
> >> > > > I'm running met in a machine that's owned by our
department, I
> don't
> >> > have
> >> > > > sudo right, so when I type which run_tc_pairs.py, it says
couldn't
> >> find
> >> > > it.
> >> > > >
> >> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> >> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/
> >> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> >> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> >> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> >> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> >> > > environment-modules/3.2.10/
> >> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> >> > > >
> >> > > >
> >> > > > But I could find it manually in that directory.
> >> > > >
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > >
> >> > > > Xinxia
> >> > > >
> >> > > > ________________________________
> >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > Sent: Friday, February 24, 2017 8:52:16 AM
> >> > > > To: Xinxia_Song at outlook.com
> >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> >> > > > constants_pdef
> >> > > >
> >> > > > Hi Xinxia.
> >> > > >
> >> > > > It looks like you got a successful run of tc_stat - that's
great
> >> news!
> >> > > >
> >> > > > I'm not sure what you mean by "Because I don't have the
right, I
> >> can't
> >> > > find
> >> > > > run_tc_pairs.py, but I know it's under
> >> > > >
> >> > > > /D2/xinxia/METplus/METplus/ush".
> >> > > >
> >> > > > Can you please explain?  What happened when you ran "which
> >> > > > run_tc_pairs.py"?
> >> > > >
> >> > > > Thanks,
> >> > > > Julie
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> >> > met_help at ucar.edu>
> >> > > > wrote:
> >> > > >
> >> > > > >
> >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >> > > > >
> >> > > > > Hi Julie,
> >> > > > >
> >> > > > >
> >> > > > > I removed the space.
> >> > > > >
> >> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> >> -job
> >> > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > -init_inc
> >> > > > > 20141201_00 -match_points true -dump_row
> >> /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > 2/share/met/poly/CONUS.poly
> >> > > > >
> >> > > > > DEBUG 1: [Source 1] Lookin: /D2/xinxia/METplus/MET/input/
> >> > > tc_pairs/201412
> >> > > > >
> >> > > > > DEBUG 2:
> >> > > > >
> >> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML
-init_inc
> >> > > > 20141201_000000
> >> > > > > -match_points true -out_init_mask
/D2/xinxia/METplus/MET/met-5.
> >> > > > 2/share/met/poly/CONUS.poly
> >> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > filter_20141201_00.tcst
> >> > > > >
> >> > > > > DEBUG 1: Creating output dump file:
/D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> >> > > > >
> >> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
> >> -match_points
> >> > > > true
> >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > 2/share/met/poly/CONUS.poly
> >> > > > > -dump_row
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > filter_20141201_00.tcst
> >> > > > >
> >> > > > >
> >> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> >> > > > >
> >> > > > >
> >> > > > > Because I don't have the right, I can't find
run_tc_pairs.py,
> but
> >> I
> >> > > know
> >> > > > > it's under
> >> > > > >
> >> > > > > /D2/xinxia/METplus/METplus/ush
> >> > > > >
> >> > > > >
> >> > > > > For Python,
> >> > > > >
> >> > > > > [xinxia at chaos ~]$ which python
> >> > > > >
> >> > > > > /usr/bin/python
> >> > > > >
> >> > > > >
> >> > > > > Xinxia
> >> > > > >
> >> > > > > ________________________________
> >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
> >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > constants_pdef
> >> > > > >
> >> > > > > Hi Xinxia.
> >> > > > >
> >> > > > > It looks like there is a space where there should not be
a space
> >> > > (between
> >> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/ and
> >> > > > > filter_20141201_00.tcst after the -dump_row option).
> >> > > > >
> >> > > > > Could you please try it again without the space?
> >> > > > >
> >> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> >> calling
> >> > MET
> >> > > > > TC-STAT with command:/D2/xinxia/METplus/MET/met-
5.2/bin/tc_stat
> >> -job
> >> > > > > filter
> >> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > 20141201_00
> >> > > > > -match_points true -dump_row /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst  -basin
ML
> >> > > > > -out_init_mask
> >> > > > > /D2/xinxia/METplus/MET/met-5.2/share/met/poly/CONUS.poly
> >> > > > >
> >> > > > > Regarding the master_met_plus.py run, please try running
the
> >> > following
> >> > > > two
> >> > > > > commands and send me the output:
> >> > > > >
> >> > > > > which run_tc_pairs.py
> >> > > > >
> >> > > > > which python
> >> > > > >
> >> > > > > Thanks!
> >> > > > >
> >> > > > > Julie
> >> > > > >
> >> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> >> > > met_help at ucar.edu>
> >> > > > > wrote:
> >> > > > >
> >> > > > > >
> >> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> >> > > > > >
> >> > > > > > Hi Julie,
> >> > > > > >
> >> > > > > >
> >> > > > > > After I ran the long one line command:
> >> > > > > >
> >> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.
> 2/bin/tc_stat
> >> > -job
> >> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > > -init_inc
> >> > > > > > 20141201_00 -match_points true -dump_row
> >> > /D2/xinxia/METplus/MET/out/
> >> > > > > extract_tiles/20141201_00/
> >> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > >
> >> > > > > >
> >> > > > > > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/
> >> > > > tc_pairs/201412
> >> > > > > >
> >> > > > > > ERROR  :
> >> > > > > >
> >> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const
> >> char
> >> > > > > > *jobstring) -> unsupported job command options
> >> > > > "filter_20141201_00.tcst".
> >> > > > > >
> >> > > > > > ERROR  :
> >> > > > > >
> >> > > > > >
> >> > > > > > And for the master_met_plus.py, I got the error:
> >> > > > > >
> >> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
> >> > > > > >
> >> > > > > > sh: run_tc_pairs.py: command not found
> >> > > > > >
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > >
> >> > > > > >
> >> > > > > > Xinxia
> >> > > > > >
> >> > > > > > ________________________________
> >> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> >> > > > > > To: Xinxia_Song at outlook.com
> >> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> >> named
> >> > > > > > constants_pdef
> >> > > > > >
> >> > > > > > My apologies, my response should have said, "By
default, MET
> >> > version
> >> > > > 5.2
> >> > > > > is
> >> > > > > > compiled using dynamic linking."  It's true for both,
but I
> see
> >> > > you're
> >> > > > > > using 5.2 and I inadvertently referred to 5.1.
> >> > > > > >
> >> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> >> > jpresto at ucar.edu
> >> > > >
> >> > > > > > wrote:
> >> > > > > >
> >> > > > > > > Hi Xinxia.  Regarding the error:
> >> > > > > > >
> >> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> loading
> >> > > > shared
> >> > > > > > > libraries: libgsl.so.19: cannot open shared object
file: No
> >> such
> >> > > file
> >> > > > > or
> >> > > > > > > directory
> >> > > > > > >
> >> > > > > > > By default, MET version 5.1 is compiled using dynamic
> linking.
> >> > > > Rather
> >> > > > > > > than compiling the external library code in with the
MET
> >> > > executables
> >> > > > > > (which
> >> > > > > > > is
> >> > > > > > > called static linking), it looks for them at runtime.
And
> >> it's
> >> > > > looking
> >> > > > > > > for those "shared object" (.so) library files.
> >> > > > > > >
> >> > > > > > > This should be easy to fix. We just need to tell it
where to
> >> find
> >> > > > them,
> >> > > > > > > and we do that by setting (or adding to the
> LD_LIBRARY_PATH).
> >> > Look
> >> > > > in
> >> > > > > > your
> >> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already
defined in
> >> there,
> >> > > add
> >> > > > > the
> >> > > > > > > path to the libgsl.so.19 to the end of it.  If not,
add an
> >> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So,
for
> >> example,
> >> > if
> >> > > > the
> >> > > > > > path
> >> > > > > > > to your libgsl.so.19 file is
/D2/xinxia/METplus/MET/externa
> >> > > > > > l_libs/GSL/gsl-1.16/lib
> >> > > > > > > you would add teh following to your ~/.bashrc file:
> >> > > > > > >
> >> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> >> > METplus/MET/external_libs/GSL/
> >> > > > > > > gsl-1.16/lib
> >> > > > > > >
> >> > > > > > > Then save the change and source that file:
> >> > > > > > >
> >> > > > > > >   source ~/.bashrc
> >> > > > > > >
> >> > > > > > > Then, please try rerunning the command manually and
let me
> >> know
> >> > if
> >> > > it
> >> > > > > > > works.
> >> > > > > > >
> >> > > > > > > I believe that this was the cause of the initial
error you
> >> > received
> >> > > > > from
> >> > > > > > > MET+:
> >> > > > > > >
> >> > > > > > > ERROR| /D2/xinxia/METplus/METplus/
> ush/run_tc_stat.py:tc_stat
> >> > from
> >> > > > > > calling
> >> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> >> > > MET/met-5.2/bin/tc_stat
> >> > > > > -job
> >> > > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> >> > > > -init_inc
> >> > > > > > > 20141201_00 -match_points true -dump_row
> >> > > > /D2/xinxia/METplus/MET/out/ext
> >> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> >> > > > > -out_init_mask
> >> > > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > Thanks,
> >> > > > > > > Julie
> >> > > > > > >
> >> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via RT
<
> >> > > > > met_help at ucar.edu>
> >> > > > > > > wrote:
> >> > > > > > >
> >> > > > > > >>
> >> > > > > > >> <URL: https://rt.rap.ucar.edu/rt/Tic
> >> ket/Display.html?id=79605 >
> >> > > > > > >>
> >> > > > > > >> Hi Julie,
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2
> >> /bin/tc_stat
> >> > > -job
> >> > > > > > >> filter -lookin /D2/xinxia/METplus/MET/input/
> tc_pairs/201412
> >> > > > -init_inc
> >> > > > > > >> 20141201_00 -match_points true -dump_row
> >> > > > > /D2/xinxia/METplus/MET/out/ext
> >> > > > > > ract_tiles/20141201_00/
> >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >>
> >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> loading
> >> > > > > shared
> >> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file: No
> >> such
> >> > > > file
> >> > > > > or
> >> > > > > > >> directory
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
> >> under
> >> > > > > > >> xinxia_data directory.
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> Thanks,
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >> Xinxia
> >> > > > > > >>
> >> > > > > > >> ________________________________
> >> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> >> > > > > > >> To: Xinxia_Song at outlook.com
> >> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> module
> >> > > named
> >> > > > > > >> constants_pdef
> >> > > > > > >>
> >> > > > > > >> Hi Xinxia.
> >> > > > > > >>
> >> > > > > > >> I can see that your command, which should have been
all on
> >> one
> >> > > line,
> >> > > > > was
> >> > > > > > >> broken up into several lines.  Please try running
the
> command
> >> > > again,
> >> > > > > > >> making
> >> > > > > > >> sure that the entire command is on one line:
> >> > > > > > >>
> >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> >> -lookin
> >> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > 20141201_00
> >> > > > > > >> -match_points true -dump_row
> >> > > > > > >>
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >>
> >> > > > > > >> Then, please send the output from that command.
> >> > > > > > >>
> >> > > > > > >> Regarding, your error:
> >> > > > > > >>
> >> > > > > > >> sh: run_tc_pairs.py: command not found
> >> > > > > > >>
> >> > > > > > >> It's strange that would only have occurred after
having
> >> changed
> >> > > the
> >> > > > > > >> LOG_LEVEL.  Could you please send us your
configuration
> file?
> >> > > > > > >>
> >> > > > > > >> Thanks!
> >> > > > > > >>
> >> > > > > > >> Julie
> >> > > > > > >>
> >> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via RT
<
> >> > > > > met_help at ucar.edu>
> >> > > > > > >> wrote:
> >> > > > > > >>
> >> > > > > > >> >
> >> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/Tic
> >> ket/Display.html?id=79605
> >> > >
> >> > > > > > >> >
> >> > > > > > >> > Hi Julie,
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.
> >> > 2/bin/tc_stat
> >> > > > -job
> >> > > > > > >> > filter -lookin
> >> > > > > > >> >
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> >> > loading
> >> > > > > > shared
> >> > > > > > >> > libraries: libgsl.so.19: cannot open shared object
file:
> No
> >> > such
> >> > > > > file
> >> > > > > > or
> >> > > > > > >> > directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/input/
> >> > > tc_pairs/201412
> >> > > > > > >> > -init_inc 20141201_00 -match_points true -dump_row
> >> > > > > > >> >
> >> > > > > > >> > -bash:
/D2/xinxia/METplus/MET/input/tc_pairs/201412: is
> a
> >> > > > directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/out/ext
> >> > > > > > >> ract_tiles/20141201_00/
> >> > > > > > >> > filter_20141201_00.tcst  -basin ML -out_init_mask
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> >> > > > > > >> >
> >> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/ext
> >> ract_tiles/20141201_00/:
> >> > > No
> >> > > > > such
> >> > > > > > >> > file or directory
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > After I change the LOG_LEVEL, I ran the
> >> master_met_plus.py, it
> >> > > > says:
> >> > > > > > >> >
> >> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> >> > > > > > >> >
> >> > > > > > >> > sh: run_tc_pairs.py: command not found
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > Thanks,
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > Xinxia
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > ________________________________
> >> > > > > > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> >> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> >> > > > > > >> > To: Xinxia_Song at outlook.com
> >> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> >> module
> >> > > > named
> >> > > > > > >> > constants_pdef
> >> > > > > > >> >
> >> > > > > > >> > Thank you.  Unfortunately, the level of detail in
the log
> >> file
> >> > > > > wasn't
> >> > > > > > >> what
> >> > > > > > >> > I hoped for.  I'd like to have you try two things.
> >> > > > > > >> >
> >> > > > > > >> > First, could you please send me your output of
your
> manual
> >> run
> >> > > of
> >> > > > > the
> >> > > > > > >> > following?
> >> > > > > > >> >
> >> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> >> > -lookin
> >> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > 20141201_00
> >> > > > > > >> > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> >> > > > > > >> > extract_tiles/20141201_00/ filter_20141201_00.tcst
> -basin
> >> ML
> >> > > > > > >> > -out_init_mask
> >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.
> 2/share/met/poly/CONUS.poly"
> >> > > > > > >> >
> >> > > > > > >> > Second, could you please change your log level in
your
> >> > > > configuration
> >> > > > > > >> file
> >> > > > > > >> > from
> >> > > > > > >> >
> >> > > > > > >> > LOG_LEVEL = "INFO"
> >> > > > > > >> >
> >> > > > > > >> > to
> >> > > > > > >> >
> >> > > > > > >> > LOG_LEVEL = "DEBUG"
> >> > > > > > >> >
> >> > > > > > >> > then rerun and upload your log file to our ftp
server
> >> again?
> >> > > > > > >> >
> >> > > > > > >> > Thank you!
> >> > > > > > >> >
> >> > > > > > >> > Julie
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song via
RT <
> >> > > > > > met_help at ucar.edu
> >> > > > > > >> >
> >> > > > > > >> > wrote:
> >> > > > > > >> >
> >> > > > > > >> > >
> >> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> >> > Ticket/Display.html?id=79605
> >> > > >
> >> > > > > > >> > >
> >> > > > > > >> > > Hi Julie,
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > Thanks,
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > Xinxia
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > ________________________________
> >> > > > > > >> > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> >> > > > > > >> > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> >> > module
> >> > > > > named
> >> > > > > > >> > > constants_pdef
> >> > > > > > >> > >
> >> > > > > > >> > > Hi Xinxia.
> >> > > > > > >> > >
> >> > > > > > >> > > I think it would be helpful if I could take a
look at
> the
> >> > log
> >> > > > > file.
> >> > > > > > >> > Could
> >> > > > > > >> > > you please upload your file to our anonymous ftp
site
> as
> >> > > follows
> >> > > > > so
> >> > > > > > >> that
> >> > > > > > >> > I
> >> > > > > > >> > > can take a look?
> >> > > > > > >> > >
> >> > > > > > >> > >    http://www.dtcenter.org/met/
> >> > users/support/met_help.php#ftp
> >> > > > > > >> > >
> >> > > > > > >> > > Also, could you please try running the following
> manually
> >> > and
> >> > > > send
> >> > > > > > the
> >> > > > > > >> > > output to me?
> >> > > > > > >> > >
> >> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter
> >> > > -lookin
> >> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> >> > > > > 20141201_00
> >> > > > > > >> > > -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> >> > > > > > >> > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> >> -basin
> >> > ML
> >> > > > > > >> > > -out_init_mask
> >> > > > > > >> > > /D2/xinxia/METplus/MET/met-5.2
> >> /share/met/poly/CONUS.poly"
> >> > > > > > >> > >
> >> > > > > > >> > > Thank you!
> >> > > > > > >> > >
> >> > > > > > >> > > Julie
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song
via RT <
> >> > > > > > >> met_help at ucar.edu>
> >> > > > > > >> > > wrote:
> >> > > > > > >> > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> >> > > Ticket/Display.html?id=79605
> >> > > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Hi Julie,
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Now I can run the program, but when I look at
the log
> >> file
> >> > > in
> >> > > > > the
> >> > > > > > >> > output,
> >> > > > > > >> > > > it shows error below:
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> >> > > ush/run_tc_stat.py:tc_stat
> >> > > > > from
> >> > > > > > >> > > calling
> >> > > > > > >> > > > MET TC-STAT with
command:/D2/xinxia/METplus/MET
> >> > > > > > /met-5.2/bin/tc_stat
> >> > > > > > >> > -job
> >> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> >> > tc_pairs/201412
> >> > > > > > >> -init_inc
> >> > > > > > >> > > > 20141201_00 -match_points true -dump_row
> >> > > > > > /D2/xinxia/METplus/MET/out/
> >> > > > > > >> > > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> >> -basin
> >> > > ML
> >> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> >> > > > > > >> > 2/share/met/poly/CONUS.poly
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > How should I fix it?
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Thanks,
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > > Xinxia
> >> > > > > > >> > > >
> >> > > > > > >> > > > ________________________________
> >> > > > > > >> > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> >> > > > > > >> > > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> No
> >> > > module
> >> > > > > > named
> >> > > > > > >> > > > constants_pdef
> >> > > > > > >> > > >
> >> > > > > > >> > > > Hi Xinxia.
> >> > > > > > >> > > >
> >> > > > > > >> > > > I believe that python doesn't know how to find
the
> >> module
> >> > > > > because
> >> > > > > > >> the
> >> > > > > > >> > ush
> >> > > > > > >> > > > directory is not in your PYTHONPATH.  Both the
parm
> and
> >> > ush
> >> > > > > > >> directory
> >> > > > > > >> > > need
> >> > > > > > >> > > > to be specified in your PYTHONPATH.  Please
add the
> ush
> >> > > > > directory
> >> > > > > > to
> >> > > > > > >> > your
> >> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us know
how it
> >> goes.
> >> > > > > > >> > > >
> >> > > > > > >> > > > Thanks,
> >> > > > > > >> > > > Julie
> >> > > > > > >> > > >
> >> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia Song
via RT
> <
> >> > > > > > >> > met_help at ucar.edu>
> >> > > > > > >> > > > wrote:
> >> > > > > > >> > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> >> > > > Ticket/Display.html?id=79605
> >> > > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Hi Julie,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Since I don't have setenv, I added these 3
sentence
> >> into
> >> > > my
> >> > > > > > >> .bashrc
> >> > > > > > >> > > file:
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export PYTHONPATH="/D2/xinxia/
> METplus/METplus/parm"
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export
USHROOT=/D2/xinxia/METplus/METplus/ush
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > export PATH=$USHROOT:$PATH
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that
the
> >> variables
> >> > > are
> >> > > > > set,
> >> > > > > > >> but
> >> > > > > > >> > > the
> >> > > > > > >> > > > > program still can't find the module.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Thanks,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Xinxia
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > ________________________________
> >> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> >> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21 AM
> >> > > > > > >> > > > > To: Xinxia_Song at outlook.com
> >> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> >> No
> >> > > > module
> >> > > > > > >> named
> >> > > > > > >> > > > > constants_pdef
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Hi Xinxia.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Could you please check to make sure that the
ush
> >> > directory
> >> > > > > with
> >> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in
your
> >> .cshrc
> >> > > file
> >> > > > > (or
> >> > > > > > >> > .bashrc
> >> > > > > > >> > > > or
> >> > > > > > >> > > > > similar file)?  The parm directory should
also be
> in
> >> > your
> >> > > > > > >> PYTHONPATH.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > For example,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/
> >> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Please also check make sure that the path to
the
> ush
> >> > > > directory
> >> > > > > > is
> >> > > > > > >> > also
> >> > > > > > >> > > > > specified your your path environment
variable.  For
> >> > > example,
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > set path = (/usr/local/bin \
> >> > > > > > >> > > > >
/usr/local/python/bin/python \
> >> > > > > > >> > > > >                  /d1/jpresto/sbu/METplus/ush
)
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > If they are not there, please add them and
then
> >> source
> >> > the
> >> > > > > file
> >> > > > > > >> (e.g.
> >> > > > > > >> > > run
> >> > > > > > >> > > > > "source ~/.cshrc").
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Thank you!  Please let us know how it goes.
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > Julie
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia Song
via
> RT <
> >> > > > > > >> > met_help at ucar.edu
> >> > > > > > >> > > >
> >> > > > > > >> > > > > wrote:
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605
was acted
> >> > upon.
> >> > > > > > >> > > > > > Transaction: Ticket created by
> >> > Xinxia_Song at outlook.com
> >> > > > > > >> > > > > >        Queue: met_help
> >> > > > > > >> > > > > >      Subject: ImportError: No module named
> >> > > constants_pdef
> >> > > > > > >> > > > > >        Owner: Nobody
> >> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> >> > > > > > >> > > > > >       Status: new
> >> > > > > > >> > > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> >> > > > > > >> > > Ticket/Display.html?id=79605
> >> > > > > > >> > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Hi,
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > When I ran the mater_met_plus.py, it says:
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > ImportError: No module named
constants_pdef
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Seems it doesn't recognize constants_pdef
as its
> >> > module.
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Thanks,
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > > Xinxia
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> > >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >> >
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >>
> >> > > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
>
>
>


------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Julie Prestopnik
Time: Mon Feb 27 12:18:55 2017

Thank you, Xinxia.

Unfortunately, the "DEBUG" log level did not provide much information
for
this task:

2017-02-26 21:30:28,041 : INFO | [master_met_plus.py:main] | Running:
series_by_lead.py
2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] | Problem
executing: series_by_lead.py

Could you please try running series_by_lead.py in the ush directory?
Please let me know what the output is from that run - it may still be
contained in your log file.

Thanks!

Julie


On Mon, Feb 27, 2017 at 11:17 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I uploaded the constants_pdef.py and master_met_plus.20170226.log.
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, February 28, 2017 5:46:37 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.  Can you please upload the configuration file that you
used and
> the log file from that run to our ftp server so that we can take a
look?
>
> Thanks!
>
> Julie
>
> On Sun, Feb 26, 2017 at 2:35 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I ran the mater_met_plus.py and in the end in the log file it gave
me an
> > error:
> >
> > 2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] |
Problem
> > executing: series_by_lead.py
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Saturday, February 25, 2017 6:49:56 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
> >
> > You could also run "tail -f </path/to/logfile/logfile_name>"
replacing
> > </path/to/logfile/logfile_name> with the logfile path and name
> information
> > to see how the run is coming along.  I hope that helps!
> >
> > Julie
> >
> > On Fri, Feb 24, 2017 at 9:42 AM, Julie Prestopnik
<jpresto at ucar.edu>
> > wrote:
> >
> > > Hi Xinxia.  Running the entire three months of data could
certainly
> take
> > a
> > > long time.  I am hoping to get an estimate on how long it took
to run
> the
> > > three month data set here, but have not been able to obtain that
number
> > > yet.   It sounds the code was running successfully for you.  If
you're
> > > eager to take a lot at some output, I would suggest running a
smaller
> > > subset of the data, or perhaps you could set up the whole three
month
> to
> > > run over the weekend.  I would suggest letting the code run to
> completion
> > > for either a smaller subset or for the entire subset and then
checking
> > the
> > > log file for errors.  I hope that helps.  Please let me know if
you
> have
> > > any questions or encounter any issues.
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > > On Thu, Feb 23, 2017 at 4:28 PM, Xinxia Song via RT
<met_help at ucar.edu
> >
> > > wrote:
> > >
> > >>
> > >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >>
> > >> Hi Julie,
> > >>
> > >>
> > >> The version is set to be 2.7+. When I ran master_met_plus.py,
it seems
> > it
> > >> will run forever. So I killed it, and got the following:
> > >>
> > >> [xinxia at chaos ush]$ python master_met_plus.py
> > >>
> > >> ^CTraceback (most recent call last):
> > >>
> > >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
157,
> in
> > >> <module>
> > >>
> > >>     main()
> > >>
> > >>   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py", line
100,
> in
> > >> main
> > >>
> > >>     filtered_out_dir)
> > >>
> > >>   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> > >> tc_stat
> > >>
> > >>     tc_stat_out = subprocess.check_output(tc_cmd,
> > >> stderr=subprocess.STDOUT, shell=True )
> > >>
> > >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py",
line
> 213,
> > >> in check_output
> > >>
> > >>     output, unused_err = process.communicate()
> > >>
> > >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py",
line
> 471,
> > >> in communicate
> > >>
> > >>     stdout = _eintr_retry_call(self.stdout.read)
> > >>
> > >>   File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py",
line
> 121,
> > >> in _eintr_retry_call
> > >>
> > >>     return func(*args)
> > >>
> > >> KeyboardInterrupt
> > >>
> > >>
> > >> Thanks,
> > >>
> > >>
> > >> Xinxia
> > >>
> > >> ________________________________
> > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> Sent: Friday, February 24, 2017 12:02:21 PM
> > >> To: Xinxia_Song at outlook.com
> > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> constants_pdef
> > >>
> > >> Hi Xinxia.  I suspect that even though you installed Python 2.7
that
> > >> Python
> > >> 2.6.6 is still being used.
> > >>
> > >> Please try running:
> > >>
> > >> python --version
> > >>
> > >> on the command line.
> > >>
> > >> If you see "Python 2..6.6", please add the path for Python 2.7
to the
> > >> front
> > >> of your path in your ~/.bashrc file.  Then, source your
~/.bashrc file
> > and
> > >> try rerunning
> > >>
> > >> python --version
> > >>
> > >> on the command line.  Hopefully, then you will see the new
version.
> > Then,
> > >> please try rerunning master_met_plus.py.
> > >>
> > >> I hope this helps!  Thanks!
> > >>
> > >> Julie
> > >>
> > >> On Thu, Feb 23, 2017 at 1:51 PM, Xinxia Song via RT <
> met_help at ucar.edu>
> > >> wrote:
> > >>
> > >> >
> > >> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
>
> > >> >
> > >> > Hi Julie,
> > >> >
> > >> >
> > >> > I installed myself the 2.7 python, it still got the error
when
> > running:
> > >> >
> > >> > Traceback (most recent call last):
> > >> >
> > >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py",
line
> 945,
> > in
> > >> > <module>
> > >> >
> > >> >     analysis_by_lead_time()
> > >> >
> > >> >   File "/D2/xinxia/METplus/METplus/ush/series_by_lead.py",
line
> 107,
> > in
> > >> > analysis_by_lead_time
> > >> >
> > >> >     util.apply_series_filters(tile_dir, init_times,
> > >> > series_lead_filtered_out_dir, p, logger)
> > >> >
> > >> >   File "/D2/xinxia/METplus/METplus/ush/met_util.py", line
1005, in
> > >> > apply_series_filters
> > >> >
> > >> >     tcs.tc_stat(p, logger, tc_cmd, series_output_dir)
> > >> >
> > >> >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py", line
69, in
> > >> > tc_stat
> > >> >
> > >> >     tc_stat_out = subprocess.check_output(tc_cmd,
> > >> > stderr=subprocess.STDOUT, shell=True )
> > >> >
> > >> > AttributeError: 'module' object has no attribute
'check_output'
> > >> >
> > >> >
> > >> > Thanks,
> > >> >
> > >> >
> > >> > Xinxia
> > >> >
> > >> > ________________________________
> > >> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > Sent: Friday, February 24, 2017 9:37:53 AM
> > >> > To: Xinxia_Song at outlook.com
> > >> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module
named
> > >> > constants_pdef
> > >> >
> > >> > Can you please tell me which version of Python you are using?
> > >> check_output
> > >> > for subprocess was introduced in Python 2.7.    Do you have
access
> to
> > >> > Python version 2.7 or higher?
> > >> >
> > >> > Thanks,
> > >> > Julie
> > >> >
> > >> > On Thu, Feb 23, 2017 at 12:11 PM, Xinxia Song via RT <
> > met_help at ucar.edu
> > >> >
> > >> > wrote:
> > >> >
> > >> > >
> > >> > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > >
> > >> > > Hi Julie,
> > >> > >
> > >> > >
> > >> > > I added it to the $PATH and ran the master_met_python.py:
> > >> > >
> > >> > > [xinxia at chaos ush]$ python master_met_plus.py
> > >> > >
> > >> > > Traceback (most recent call last):
> > >> > >
> > >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line
> 157,
> > >> in
> > >> > > <module>
> > >> > >
> > >> > >     main()
> > >> > >
> > >> > >   File "/D2/xinxia/METplus/METplus/ush/extract_tiles.py",
line
> 100,
> > >> in
> > >> > > main
> > >> > >
> > >> > >     filtered_out_dir)
> > >> > >
> > >> > >   File "/D2/xinxia/METplus/METplus/ush/run_tc_stat.py",
line 69,
> in
> > >> > > tc_stat
> > >> > >
> > >> > >     tc_stat_out = subprocess.check_output(tc_cmd,
> > >> > > stderr=subprocess.STDOUT, shell=True )
> > >> > >
> > >> > > AttributeError: 'module' object has no attribute
'check_output'
> > >> > >
> > >> > >
> > >> > > Thanks,
> > >> > >
> > >> > >
> > >> > > Xinxia
> > >> > >
> > >> > > ________________________________
> > >> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > Sent: Friday, February 24, 2017 9:07:40 AM
> > >> > > To: Xinxia_Song at outlook.com
> > >> > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> named
> > >> > > constants_pdef
> > >> > >
> > >> > > Unfortunately, your environment does not know where to find
> > >> > > run_tc_pairs.py.  Please try adding the directory with
> > run_tc_pairs.py
> > >> > > (/D2/xinxia/METplus/METplus/ush) to your path in your
~/.bashrc
> > file,
> > >> > then
> > >> > > run "source ~/.bashrc", then trying rerunning.  Please let
me know
> > how
> > >> > that
> > >> > > goes.
> > >> > >
> > >> > > Thanks!
> > >> > >
> > >> > > Julie
> > >> > >
> > >> > > On Thu, Feb 23, 2017 at 11:55 AM, Xinxia Song via RT <
> > >> met_help at ucar.edu>
> > >> > > wrote:
> > >> > >
> > >> > > >
> > >> > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> > >> > > >
> > >> > > > Hi Julie,
> > >> > > >
> > >> > > >
> > >> > > > I'm running met in a machine that's owned by our
department, I
> > don't
> > >> > have
> > >> > > > sudo right, so when I type which run_tc_pairs.py, it says
> couldn't
> > >> find
> > >> > > it.
> > >> > > >
> > >> > > > no run_tc_pairs.py in (/opt/ncl/bin:/opt/intel-soft/
> > >> > > > bin:/opt/ncl/bin:/opt/ncl/bin:/opt/intel-
soft/bin:/opt/ncl/
> > >> > > > bin:/home/xinxia/anaconda/bin:/home/xinxia/anaconda/bin:/
> > >> > > > opt/ncl/bin:/opt/intel-soft/bin:/opt/ncl/bin:/usr/lib64/
> > >> > > > qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/
> > >> > > > usr/sbin:/sbin:/sbin:/usr/sbin:/cm/local/apps/
> > >> > > environment-modules/3.2.10/
> > >> > > > bin:/home/xinxia/bin:/opt/ncl-621/bin)
> > >> > > >
> > >> > > >
> > >> > > > But I could find it manually in that directory.
> > >> > > >
> > >> > > >
> > >> > > > Thanks,
> > >> > > >
> > >> > > >
> > >> > > > Xinxia
> > >> > > >
> > >> > > > ________________________________
> > >> > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > Sent: Friday, February 24, 2017 8:52:16 AM
> > >> > > > To: Xinxia_Song at outlook.com
> > >> > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > named
> > >> > > > constants_pdef
> > >> > > >
> > >> > > > Hi Xinxia.
> > >> > > >
> > >> > > > It looks like you got a successful run of tc_stat -
that's great
> > >> news!
> > >> > > >
> > >> > > > I'm not sure what you mean by "Because I don't have the
right, I
> > >> can't
> > >> > > find
> > >> > > > run_tc_pairs.py, but I know it's under
> > >> > > >
> > >> > > > /D2/xinxia/METplus/METplus/ush".
> > >> > > >
> > >> > > > Can you please explain?  What happened when you ran
"which
> > >> > > > run_tc_pairs.py"?
> > >> > > >
> > >> > > > Thanks,
> > >> > > > Julie
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > On Thu, Feb 23, 2017 at 11:44 AM, Xinxia Song via RT <
> > >> > met_help at ucar.edu>
> > >> > > > wrote:
> > >> > > >
> > >> > > > >
> > >> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605
> >
> > >> > > > >
> > >> > > > > Hi Julie,
> > >> > > > >
> > >> > > > >
> > >> > > > > I removed the space.
> > >> > > > >
> > >> > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.2
> /bin/tc_stat
> > >> -job
> > >> > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> > -init_inc
> > >> > > > > 20141201_00 -match_points true -dump_row
> > >> /D2/xinxia/METplus/MET/out/
> > >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > >> > > 2/share/met/poly/CONUS.poly
> > >> > > > >
> > >> > > > > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/
> > >> > > tc_pairs/201412
> > >> > > > >
> > >> > > > > DEBUG 2:
> > >> > > > >
> > >> > > > > DEBUG 2: Processing Job 1: -job filter -basin ML
-init_inc
> > >> > > > 20141201_000000
> > >> > > > > -match_points true -out_init_mask
> /D2/xinxia/METplus/MET/met-5.
> > >> > > > 2/share/met/poly/CONUS.poly
> > >> > > > > -dump_row /D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/
> > >> > > > > filter_20141201_00.tcst
> > >> > > > >
> > >> > > > > DEBUG 1: Creating output dump file:
> /D2/xinxia/METplus/MET/out/
> > >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
> > >> > > > >
> > >> > > > > FILTER: -job filter -basin ML -init_inc 20141201_000000
> > >> -match_points
> > >> > > > true
> > >> > > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > >> > > 2/share/met/poly/CONUS.poly
> > >> > > > > -dump_row /D2/xinxia/METplus/MET/out/ext
> ract_tiles/20141201_00/
> > >> > > > > filter_20141201_00.tcst
> > >> > > > >
> > >> > > > >
> > >> > > > > DEBUG 2: Job 1 used 0 out of 27292 lines read.
> > >> > > > >
> > >> > > > >
> > >> > > > > Because I don't have the right, I can't find
run_tc_pairs.py,
> > but
> > >> I
> > >> > > know
> > >> > > > > it's under
> > >> > > > >
> > >> > > > > /D2/xinxia/METplus/METplus/ush
> > >> > > > >
> > >> > > > >
> > >> > > > > For Python,
> > >> > > > >
> > >> > > > > [xinxia at chaos ~]$ which python
> > >> > > > >
> > >> > > > > /usr/bin/python
> > >> > > > >
> > >> > > > >
> > >> > > > > Xinxia
> > >> > > > >
> > >> > > > > ________________________________
> > >> > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > > Sent: Friday, February 24, 2017 8:30:01 AM
> > >> > > > > To: Xinxia_Song at outlook.com
> > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
module
> > >> named
> > >> > > > > constants_pdef
> > >> > > > >
> > >> > > > > Hi Xinxia.
> > >> > > > >
> > >> > > > > It looks like there is a space where there should not
be a
> space
> > >> > > (between
> > >> > > > > /D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
and
> > >> > > > > filter_20141201_00.tcst after the -dump_row option).
> > >> > > > >
> > >> > > > > Could you please try it again without the space?
> > >> > > > >
> > >> > > > > /D2/xinxia/METplus/METplus/ush/run_tc_stat.py:tc_stat
from
> > >> calling
> > >> > MET
> > >> > > > > TC-STAT with command:/D2/xinxia/METplus/MET
> /met-5.2/bin/tc_stat
> > >> -job
> > >> > > > > filter
> > >> > > > > -lookin /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > >> > > > 20141201_00
> > >> > > > > -match_points true -dump_row
/D2/xinxia/METplus/MET/out/
> > >> > > > > extract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > >> > > > > -out_init_mask
> > >> > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > >> > > > >
> > >> > > > > Regarding the master_met_plus.py run, please try
running the
> > >> > following
> > >> > > > two
> > >> > > > > commands and send me the output:
> > >> > > > >
> > >> > > > > which run_tc_pairs.py
> > >> > > > >
> > >> > > > > which python
> > >> > > > >
> > >> > > > > Thanks!
> > >> > > > >
> > >> > > > > Julie
> > >> > > > >
> > >> > > > > On Thu, Feb 23, 2017 at 11:06 AM, Xinxia Song via RT <
> > >> > > met_help at ucar.edu>
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > >
> > >> > > > > > <URL: https://rt.rap.ucar.edu/rt/Tic
> ket/Display.html?id=79605
> > >
> > >> > > > > >
> > >> > > > > > Hi Julie,
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > After I ran the long one line command:
> > >> > > > > >
> > >> > > > > > [xinxia at chaos parm]$ /D2/xinxia/METplus/MET/met-5.
> > 2/bin/tc_stat
> > >> > -job
> > >> > > > > > filter -lookin
/D2/xinxia/METplus/MET/input/tc_pairs/201412
> > >> > > -init_inc
> > >> > > > > > 20141201_00 -match_points true -dump_row
> > >> > /D2/xinxia/METplus/MET/out/
> > >> > > > > extract_tiles/20141201_00/
> > >> > > > > > filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > DEBUG 1: [Source 1] Lookin:
/D2/xinxia/METplus/MET/input/
> > >> > > > tc_pairs/201412
> > >> > > > > >
> > >> > > > > > ERROR  :
> > >> > > > > >
> > >> > > > > > ERROR  : TCStatJob
*TCStatJobFactory::new_tc_stat_job(const
> > >> char
> > >> > > > > > *jobstring) -> unsupported job command options
> > >> > > > "filter_20141201_00.tcst".
> > >> > > > > >
> > >> > > > > > ERROR  :
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > And for the master_met_plus.py, I got the error:
> > >> > > > > >
> > >> > > > > > [xinxia at chaos ush]$ python master_met_plus.py
> > >> > > > > >
> > >> > > > > > sh: run_tc_pairs.py: command not found
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Thanks,
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Xinxia
> > >> > > > > >
> > >> > > > > > ________________________________
> > >> > > > > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > > > Sent: Friday, February 24, 2017 7:42:21 AM
> > >> > > > > > To: Xinxia_Song at outlook.com
> > >> > > > > > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No
> module
> > >> named
> > >> > > > > > constants_pdef
> > >> > > > > >
> > >> > > > > > My apologies, my response should have said, "By
default, MET
> > >> > version
> > >> > > > 5.2
> > >> > > > > is
> > >> > > > > > compiled using dynamic linking."  It's true for both,
but I
> > see
> > >> > > you're
> > >> > > > > > using 5.2 and I inadvertently referred to 5.1.
> > >> > > > > >
> > >> > > > > > On Thu, Feb 23, 2017 at 10:40 AM, Julie Prestopnik <
> > >> > jpresto at ucar.edu
> > >> > > >
> > >> > > > > > wrote:
> > >> > > > > >
> > >> > > > > > > Hi Xinxia.  Regarding the error:
> > >> > > > > > >
> > >> > > > > > > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> > >> loading
> > >> > > > shared
> > >> > > > > > > libraries: libgsl.so.19: cannot open shared object
file:
> No
> > >> such
> > >> > > file
> > >> > > > > or
> > >> > > > > > > directory
> > >> > > > > > >
> > >> > > > > > > By default, MET version 5.1 is compiled using
dynamic
> > linking.
> > >> > > > Rather
> > >> > > > > > > than compiling the external library code in with
the MET
> > >> > > executables
> > >> > > > > > (which
> > >> > > > > > > is
> > >> > > > > > > called static linking), it looks for them at
runtime.  And
> > >> it's
> > >> > > > looking
> > >> > > > > > > for those "shared object" (.so) library files.
> > >> > > > > > >
> > >> > > > > > > This should be easy to fix. We just need to tell it
where
> to
> > >> find
> > >> > > > them,
> > >> > > > > > > and we do that by setting (or adding to the
> > LD_LIBRARY_PATH).
> > >> > Look
> > >> > > > in
> > >> > > > > > your
> > >> > > > > > > ~/.bashrc file.  If LD_LIBRARY_PATH is already
defined in
> > >> there,
> > >> > > add
> > >> > > > > the
> > >> > > > > > > path to the libgsl.so.19 to the end of it.  If not,
add an
> > >> > > > > > > LD_LIBRARY_PATH entry in your ~/.bashrc file.  So,
for
> > >> example,
> > >> > if
> > >> > > > the
> > >> > > > > > path
> > >> > > > > > > to your libgsl.so.19 file is
> /D2/xinxia/METplus/MET/externa
> > >> > > > > > l_libs/GSL/gsl-1.16/lib
> > >> > > > > > > you would add teh following to your ~/.bashrc file:
> > >> > > > > > >
> > >> > > > > > >   export LD_LIBRARY_PATH=/D2/xinxia/
> > >> > METplus/MET/external_libs/GSL/
> > >> > > > > > > gsl-1.16/lib
> > >> > > > > > >
> > >> > > > > > > Then save the change and source that file:
> > >> > > > > > >
> > >> > > > > > >   source ~/.bashrc
> > >> > > > > > >
> > >> > > > > > > Then, please try rerunning the command manually and
let me
> > >> know
> > >> > if
> > >> > > it
> > >> > > > > > > works.
> > >> > > > > > >
> > >> > > > > > > I believe that this was the cause of the initial
error you
> > >> > received
> > >> > > > > from
> > >> > > > > > > MET+:
> > >> > > > > > >
> > >> > > > > > > ERROR| /D2/xinxia/METplus/METplus/
> > ush/run_tc_stat.py:tc_stat
> > >> > from
> > >> > > > > > calling
> > >> > > > > > > MET TC-STAT with command:/D2/xinxia/METplus/
> > >> > > MET/met-5.2/bin/tc_stat
> > >> > > > > -job
> > >> > > > > > > filter -lookin /D2/xinxia/METplus/MET/input/t
> c_pairs/201412
> > >> > > > -init_inc
> > >> > > > > > > 20141201_00 -match_points true -dump_row
> > >> > > > /D2/xinxia/METplus/MET/out/ext
> > >> > > > > > > ract_tiles/20141201_00/filter_20141201_00.tcst
-basin ML
> > >> > > > > -out_init_mask
> > >> > > > > > > /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > >> > > > > > >
> > >> > > > > > >
> > >> > > > > > > Thanks,
> > >> > > > > > > Julie
> > >> > > > > > >
> > >> > > > > > > On Thu, Feb 23, 2017 at 10:14 AM, Xinxia Song via
RT <
> > >> > > > > met_help at ucar.edu>
> > >> > > > > > > wrote:
> > >> > > > > > >
> > >> > > > > > >>
> > >> > > > > > >> <URL: https://rt.rap.ucar.edu/rt/Tic
> > >> ket/Display.html?id=79605 >
> > >> > > > > > >>
> > >> > > > > > >> Hi Julie,
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >> [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-5.2
> > >> /bin/tc_stat
> > >> > > -job
> > >> > > > > > >> filter -lookin /D2/xinxia/METplus/MET/input/
> > tc_pairs/201412
> > >> > > > -init_inc
> > >> > > > > > >> 20141201_00 -match_points true -dump_row
> > >> > > > > /D2/xinxia/METplus/MET/out/ext
> > >> > > > > > ract_tiles/20141201_00/
> > >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > >> > > > > > >>
> > >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat: error
while
> > >> loading
> > >> > > > > shared
> > >> > > > > > >> libraries: libgsl.so.19: cannot open shared object
file:
> No
> > >> such
> > >> > > > file
> > >> > > > > or
> > >> > > > > > >> directory
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >> And I uploaded the configuration file
(constants_pdef.py)
> > >> under
> > >> > > > > > >> xinxia_data directory.
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >> Thanks,
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >> Xinxia
> > >> > > > > > >>
> > >> > > > > > >> ________________________________
> > >> > > > > > >> From: Julie Prestopnik via RT <met_help at ucar.edu>
> > >> > > > > > >> Sent: Friday, February 24, 2017 6:15:57 AM
> > >> > > > > > >> To: Xinxia_Song at outlook.com
> > >> > > > > > >> Subject: Re: [rt.rap.ucar.edu #79605] ImportError:
No
> > module
> > >> > > named
> > >> > > > > > >> constants_pdef
> > >> > > > > > >>
> > >> > > > > > >> Hi Xinxia.
> > >> > > > > > >>
> > >> > > > > > >> I can see that your command, which should have
been all
> on
> > >> one
> > >> > > line,
> > >> > > > > was
> > >> > > > > > >> broken up into several lines.  Please try running
the
> > command
> > >> > > again,
> > >> > > > > > >> making
> > >> > > > > > >> sure that the entire command is on one line:
> > >> > > > > > >>
> > >> > > > > > >> /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
filter
> > >> -lookin
> > >> > > > > > >> /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > >> > > 20141201_00
> > >> > > > > > >> -match_points true -dump_row
> > >> > > > > > >>
/D2/xinxia/METplus/MET/out/extract_tiles/20141201_00/
> > >> > > > > > >> filter_20141201_00.tcst  -basin ML -out_init_mask
> > >> > > > > > >> /D2/xinxia/METplus/MET/met-
5.2/share/met/poly/CONUS.poly
> > >> > > > > > >>
> > >> > > > > > >> Then, please send the output from that command.
> > >> > > > > > >>
> > >> > > > > > >> Regarding, your error:
> > >> > > > > > >>
> > >> > > > > > >> sh: run_tc_pairs.py: command not found
> > >> > > > > > >>
> > >> > > > > > >> It's strange that would only have occurred after
having
> > >> changed
> > >> > > the
> > >> > > > > > >> LOG_LEVEL.  Could you please send us your
configuration
> > file?
> > >> > > > > > >>
> > >> > > > > > >> Thanks!
> > >> > > > > > >>
> > >> > > > > > >> Julie
> > >> > > > > > >>
> > >> > > > > > >> On Wed, Feb 22, 2017 at 2:54 PM, Xinxia Song via
RT <
> > >> > > > > met_help at ucar.edu>
> > >> > > > > > >> wrote:
> > >> > > > > > >>
> > >> > > > > > >> >
> > >> > > > > > >> > <URL: https://rt.rap.ucar.edu/rt/Tic
> > >> ket/Display.html?id=79605
> > >> > >
> > >> > > > > > >> >
> > >> > > > > > >> > Hi Julie,
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > [xinxia at chaos ush]$ /D2/xinxia/METplus/MET/met-
5.
> > >> > 2/bin/tc_stat
> > >> > > > -job
> > >> > > > > > >> > filter -lookin
> > >> > > > > > >> >
> > >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2/bin/tc_stat:
error
> while
> > >> > loading
> > >> > > > > > shared
> > >> > > > > > >> > libraries: libgsl.so.19: cannot open shared
object
> file:
> > No
> > >> > such
> > >> > > > > file
> > >> > > > > > or
> > >> > > > > > >> > directory
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/input/
> > >> > > tc_pairs/201412
> > >> > > > > > >> > -init_inc 20141201_00 -match_points true
-dump_row
> > >> > > > > > >> >
> > >> > > > > > >> > -bash:
/D2/xinxia/METplus/MET/input/tc_pairs/201412:
> is
> > a
> > >> > > > directory
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > [xinxia at chaos ush]$
/D2/xinxia/METplus/MET/out/ext
> > >> > > > > > >> ract_tiles/20141201_00/
> > >> > > > > > >> > filter_20141201_00.tcst  -basin ML
-out_init_mask
> > >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.2
> /share/met/poly/CONUS.poly
> > >> > > > > > >> >
> > >> > > > > > >> > -bash: /D2/xinxia/METplus/MET/out/ext
> > >> ract_tiles/20141201_00/:
> > >> > > No
> > >> > > > > such
> > >> > > > > > >> > file or directory
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > After I change the LOG_LEVEL, I ran the
> > >> master_met_plus.py, it
> > >> > > > says:
> > >> > > > > > >> >
> > >> > > > > > >> > [xinxia at chaos ush]$ python master_met_plus.py
> > >> > > > > > >> >
> > >> > > > > > >> > sh: run_tc_pairs.py: command not found
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > Thanks,
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > Xinxia
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > ________________________________
> > >> > > > > > >> > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> > >> > > > > > >> > Sent: Thursday, February 23, 2017 10:04:55 AM
> > >> > > > > > >> > To: Xinxia_Song at outlook.com
> > >> > > > > > >> > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError: No
> > >> module
> > >> > > > named
> > >> > > > > > >> > constants_pdef
> > >> > > > > > >> >
> > >> > > > > > >> > Thank you.  Unfortunately, the level of detail
in the
> log
> > >> file
> > >> > > > > wasn't
> > >> > > > > > >> what
> > >> > > > > > >> > I hoped for.  I'd like to have you try two
things.
> > >> > > > > > >> >
> > >> > > > > > >> > First, could you please send me your output of
your
> > manual
> > >> run
> > >> > > of
> > >> > > > > the
> > >> > > > > > >> > following?
> > >> > > > > > >> >
> > >> > > > > > >> > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat -job
> filter
> > >> > -lookin
> > >> > > > > > >> > /D2/xinxia/METplus/MET/input/tc_pairs/201412
-init_inc
> > >> > > > 20141201_00
> > >> > > > > > >> > -match_points true -dump_row
> /D2/xinxia/METplus/MET/out/
> > >> > > > > > >> > extract_tiles/20141201_00/
filter_20141201_00.tcst
> > -basin
> > >> ML
> > >> > > > > > >> > -out_init_mask
> > >> > > > > > >> > /D2/xinxia/METplus/MET/met-5.
> > 2/share/met/poly/CONUS.poly"
> > >> > > > > > >> >
> > >> > > > > > >> > Second, could you please change your log level
in your
> > >> > > > configuration
> > >> > > > > > >> file
> > >> > > > > > >> > from
> > >> > > > > > >> >
> > >> > > > > > >> > LOG_LEVEL = "INFO"
> > >> > > > > > >> >
> > >> > > > > > >> > to
> > >> > > > > > >> >
> > >> > > > > > >> > LOG_LEVEL = "DEBUG"
> > >> > > > > > >> >
> > >> > > > > > >> > then rerun and upload your log file to our ftp
server
> > >> again?
> > >> > > > > > >> >
> > >> > > > > > >> > Thank you!
> > >> > > > > > >> >
> > >> > > > > > >> > Julie
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> > On Wed, Feb 22, 2017 at 12:39 PM, Xinxia Song
via RT <
> > >> > > > > > met_help at ucar.edu
> > >> > > > > > >> >
> > >> > > > > > >> > wrote:
> > >> > > > > > >> >
> > >> > > > > > >> > >
> > >> > > > > > >> > > <URL: https://rt.rap.ucar.edu/rt/
> > >> > Ticket/Display.html?id=79605
> > >> > > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > Hi Julie,
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > I uploaded the log file under xinxia_data
directory.
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > Thanks,
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > Xinxia
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > ________________________________
> > >> > > > > > >> > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> > >> > > > > > >> > > Sent: Thursday, February 23, 2017 9:11:32 AM
> > >> > > > > > >> > > To: Xinxia_Song at outlook.com
> > >> > > > > > >> > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> No
> > >> > module
> > >> > > > > named
> > >> > > > > > >> > > constants_pdef
> > >> > > > > > >> > >
> > >> > > > > > >> > > Hi Xinxia.
> > >> > > > > > >> > >
> > >> > > > > > >> > > I think it would be helpful if I could take a
look at
> > the
> > >> > log
> > >> > > > > file.
> > >> > > > > > >> > Could
> > >> > > > > > >> > > you please upload your file to our anonymous
ftp site
> > as
> > >> > > follows
> > >> > > > > so
> > >> > > > > > >> that
> > >> > > > > > >> > I
> > >> > > > > > >> > > can take a look?
> > >> > > > > > >> > >
> > >> > > > > > >> > >    http://www.dtcenter.org/met/
> > >> > users/support/met_help.php#ftp
> > >> > > > > > >> > >
> > >> > > > > > >> > > Also, could you please try running the
following
> > manually
> > >> > and
> > >> > > > send
> > >> > > > > > the
> > >> > > > > > >> > > output to me?
> > >> > > > > > >> > >
> > >> > > > > > >> > > "/D2/xinxia/METplus/MET/met-5.2/bin/tc_stat
-job
> > filter
> > >> > > -lookin
> > >> > > > > > >> > > /D2/xinxia/METplus/MET/input/tc_pairs/201412
> -init_inc
> > >> > > > > 20141201_00
> > >> > > > > > >> > > -match_points true -dump_row
> > /D2/xinxia/METplus/MET/out/
> > >> > > > > > >> > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> > >> -basin
> > >> > ML
> > >> > > > > > >> > > -out_init_mask
> > >> > > > > > >> > > /D2/xinxia/METplus/MET/met-5.2
> > >> /share/met/poly/CONUS.poly"
> > >> > > > > > >> > >
> > >> > > > > > >> > > Thank you!
> > >> > > > > > >> > >
> > >> > > > > > >> > > Julie
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > > On Wed, Feb 22, 2017 at 12:06 PM, Xinxia Song
via RT
> <
> > >> > > > > > >> met_help at ucar.edu>
> > >> > > > > > >> > > wrote:
> > >> > > > > > >> > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > <URL: https://rt.rap.ucar.edu/rt/
> > >> > > Ticket/Display.html?id=79605
> > >> > > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Hi Julie,
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Now I can run the program, but when I look
at the
> log
> > >> file
> > >> > > in
> > >> > > > > the
> > >> > > > > > >> > output,
> > >> > > > > > >> > > > it shows error below:
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > ERROR| /D2/xinxia/METplus/METplus/
> > >> > > ush/run_tc_stat.py:tc_stat
> > >> > > > > from
> > >> > > > > > >> > > calling
> > >> > > > > > >> > > > MET TC-STAT with
command:/D2/xinxia/METplus/MET
> > >> > > > > > /met-5.2/bin/tc_stat
> > >> > > > > > >> > -job
> > >> > > > > > >> > > > filter -lookin /D2/xinxia/METplus/MET/input/
> > >> > tc_pairs/201412
> > >> > > > > > >> -init_inc
> > >> > > > > > >> > > > 20141201_00 -match_points true -dump_row
> > >> > > > > > /D2/xinxia/METplus/MET/out/
> > >> > > > > > >> > > >
extract_tiles/20141201_00/filter_20141201_00.tcst
> > >> -basin
> > >> > > ML
> > >> > > > > > >> > > > -out_init_mask /D2/xinxia/METplus/MET/met-5.
> > >> > > > > > >> > 2/share/met/poly/CONUS.poly
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > How should I fix it?
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Thanks,
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Xinxia
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > ________________________________
> > >> > > > > > >> > > > From: Julie Prestopnik via RT
<met_help at ucar.edu>
> > >> > > > > > >> > > > Sent: Thursday, February 23, 2017 7:30:06 AM
> > >> > > > > > >> > > > To: Xinxia_Song at outlook.com
> > >> > > > > > >> > > > Subject: Re: [rt.rap.ucar.edu #79605]
ImportError:
> > No
> > >> > > module
> > >> > > > > > named
> > >> > > > > > >> > > > constants_pdef
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Hi Xinxia.
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > I believe that python doesn't know how to
find the
> > >> module
> > >> > > > > because
> > >> > > > > > >> the
> > >> > > > > > >> > ush
> > >> > > > > > >> > > > directory is not in your PYTHONPATH.  Both
the parm
> > and
> > >> > ush
> > >> > > > > > >> directory
> > >> > > > > > >> > > need
> > >> > > > > > >> > > > to be specified in your PYTHONPATH.  Please
add the
> > ush
> > >> > > > > directory
> > >> > > > > > to
> > >> > > > > > >> > your
> > >> > > > > > >> > > > PYTHONPATH, source ~/.bashrc, and let us
know how
> it
> > >> goes.
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > Thanks,
> > >> > > > > > >> > > > Julie
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > On Wed, Feb 22, 2017 at 10:24 AM, Xinxia
Song via
> RT
> > <
> > >> > > > > > >> > met_help at ucar.edu>
> > >> > > > > > >> > > > wrote:
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > <URL: https://rt.rap.ucar.edu/rt/
> > >> > > > Ticket/Display.html?id=79605
> > >> > > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Hi Julie,
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Since I don't have setenv, I added these 3
> sentence
> > >> into
> > >> > > my
> > >> > > > > > >> .bashrc
> > >> > > > > > >> > > file:
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > export PYTHONPATH="/D2/xinxia/
> > METplus/METplus/parm"
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > export
USHROOT=/D2/xinxia/METplus/METplus/ush
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > export PATH=$USHROOT:$PATH
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > I sourced the ~/.bashrc, and checked that
the
> > >> variables
> > >> > > are
> > >> > > > > set,
> > >> > > > > > >> but
> > >> > > > > > >> > > the
> > >> > > > > > >> > > > > program still can't find the module.
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Thanks,
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Xinxia
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > ________________________________
> > >> > > > > > >> > > > > From: Julie Prestopnik via RT
<met_help at ucar.edu
> >
> > >> > > > > > >> > > > > Sent: Thursday, February 23, 2017 6:24:21
AM
> > >> > > > > > >> > > > > To: Xinxia_Song at outlook.com
> > >> > > > > > >> > > > > Subject: Re: [rt.rap.ucar.edu #79605]
> ImportError:
> > >> No
> > >> > > > module
> > >> > > > > > >> named
> > >> > > > > > >> > > > > constants_pdef
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Hi Xinxia.
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Could you please check to make sure that
the ush
> > >> > directory
> > >> > > > > with
> > >> > > > > > >> > > > > constants_pdef.py is in your PYTHONPATH in
your
> > >> .cshrc
> > >> > > file
> > >> > > > > (or
> > >> > > > > > >> > .bashrc
> > >> > > > > > >> > > > or
> > >> > > > > > >> > > > > similar file)?  The parm directory should
also be
> > in
> > >> > your
> > >> > > > > > >> PYTHONPATH.
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > For example,
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > setenv PYTHONPATH
/d1/jpresto/sbu/METplus/ush:/
> > >> > > > > > >> > > > d1/jpresto/sbu/METplus/parm
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Please also check make sure that the path
to the
> > ush
> > >> > > > directory
> > >> > > > > > is
> > >> > > > > > >> > also
> > >> > > > > > >> > > > > specified your your path environment
variable.
> For
> > >> > > example,
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > set path = (/usr/local/bin \
> > >> > > > > > >> > > > >
/usr/local/python/bin/python \
> > >> > > > > > >> > > > >
/d1/jpresto/sbu/METplus/ush )
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > If they are not there, please add them and
then
> > >> source
> > >> > the
> > >> > > > > file
> > >> > > > > > >> (e.g.
> > >> > > > > > >> > > run
> > >> > > > > > >> > > > > "source ~/.cshrc").
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Thank you!  Please let us know how it
goes.
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > Julie
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > On Tue, Feb 21, 2017 at 4:49 PM, Xinxia
Song via
> > RT <
> > >> > > > > > >> > met_help at ucar.edu
> > >> > > > > > >> > > >
> > >> > > > > > >> > > > > wrote:
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > Tue Feb 21 16:49:28 2017: Request 79605
was
> acted
> > >> > upon.
> > >> > > > > > >> > > > > > Transaction: Ticket created by
> > >> > Xinxia_Song at outlook.com
> > >> > > > > > >> > > > > >        Queue: met_help
> > >> > > > > > >> > > > > >      Subject: ImportError: No module
named
> > >> > > constants_pdef
> > >> > > > > > >> > > > > >        Owner: Nobody
> > >> > > > > > >> > > > > >   Requestors: Xinxia_Song at outlook.com
> > >> > > > > > >> > > > > >       Status: new
> > >> > > > > > >> > > > > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/
> > >> > > > > > >> > > Ticket/Display.html?id=79605
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > Hi,
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > When I ran the mater_met_plus.py, it
says:
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > ImportError: No module named
constants_pdef
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > Seems it doesn't recognize
constants_pdef as
> its
> > >> > module.
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > Thanks,
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > > Xinxia
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > > >
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> > >
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >> >
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >>
> > >> > > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: ImportError: No module named constants_pdef
From: Xinxia Song
Time: Mon Feb 27 14:55:35 2017

Hi Julie,


The error is:

Traceback (most recent call last):

  File "series_by_lead.py", line 945, in <module>

    analysis_by_lead_time()

  File "series_by_lead.py", line 326, in analysis_by_lead_time

    vmin, vmax = get_netcdf_min_max(nc_var_list, cur_stat, p, logger)

  File "series_by_lead.py", line 605, in get_netcdf_min_max

    shell=True)

  File "/home/xinxia/anaconda2/lib/python2.7/subprocess.py", line 219,
in check_output

    raise CalledProcessError(retcode, cmd, output=output)

subprocess.CalledProcessError: Command '/usr/local/nco/bin/ncap2 -v -s
"min=min(series_cnt_TOTAL)"
/D2/xinxia/METplus/MET/out/series_analysis_lead/series_F042/series_F042_HGT_P500.nc
/D2/xinxia/METplus/MET/out/series_analysis_lead/series_F042/min.nc'
returned non-zero exit status 127


Thanks,


Xinxia

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Tuesday, February 28, 2017 9:18:55 AM
To: Xinxia_Song at outlook.com
Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
constants_pdef

Thank you, Xinxia.

Unfortunately, the "DEBUG" log level did not provide much information
for
this task:

2017-02-26 21:30:28,041 : INFO | [master_met_plus.py:main] | Running:
series_by_lead.py
2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] | Problem
executing: series_by_lead.py

Could you please try running series_by_lead.py in the ush directory?
Please let me know what the output is from that run - it may still be
contained in your log file.

Thanks!

Julie


On Mon, Feb 27, 2017 at 11:17 AM, Xinxia Song via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
>
> Hi Julie,
>
>
> I uploaded the constants_pdef.py and master_met_plus.20170226.log.
>
>
> Thanks,
>
>
> Xinxia
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, February 28, 2017 5:46:37 AM
> To: Xinxia_Song at outlook.com
> Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> constants_pdef
>
> Hi Xinxia.  Can you please upload the configuration file that you
used and
> the log file from that run to our ftp server so that we can take a
look?
>
> Thanks!
>
> Julie
>
> On Sun, Feb 26, 2017 at 2:35 PM, Xinxia Song via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79605 >
> >
> > Hi Julie,
> >
> >
> > I ran the mater_met_plus.py and in the end in the log file it gave
me an
> > error:
> >
> > 2017-02-26 21:30:28,212 : ERROR | [master_met_plus.py:main] |
Problem
> > executing: series_by_lead.py
> >
> >
> > Thanks,
> >
> > Xinxia
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Saturday, February 25, 2017 6:49:56 AM
> > To: Xinxia_Song at outlook.com
> > Subject: Re: [rt.rap.ucar.edu #79605] ImportError: No module named
> > constants_pdef
</