[Met_help] [rt.rap.ucar.edu #89500] History for MET 8.0 and Python

John Halley Gotway via RT met_help at ucar.edu
Fri Apr 5 08:47:05 MDT 2019


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

Hi:

I'm attempting to load some data into memory using python and run MET 8.0.
However, when I try to do this, I get the following error:

ImportError: No module named netCDF4

When I run my script on it's own (outside of MET) it has no issues finding
the netCDF4 module.  How do I go about fixing this so that I'm able to
import data?

Tina

-- 
*************************************************
Christina Kalb
Associate Scientist
National Center for Atmospheric Research
3450 Mitchell Lane
Boulder, CO 80301
kalb at ucar.edu
303-497-2819
*************************************************


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

Subject: MET 8.0 and Python
From: John Halley Gotway
Time: Mon Apr 01 13:55:20 2019

Tina,

Catching up on met-help issues.  Are you still having trouble
accessing the
NetCDF4 Python library when running via MET?

One possibility is that you're running a version of Python that
differs
from the one that MET was compiled against.  It may be possible to fix
this
by updating your PYTHON_PATH environment variable.  I could sit down
with
you and try to debug sometime.

John

On Wed, Mar 27, 2019 at 6:12 PM Christina Kalb via RT
<met_help at ucar.edu>
wrote:

>
> Wed Mar 27 18:11:38 2019: Request 89500 was acted upon.
> Transaction: Ticket created by kalb
>        Queue: met_help
>      Subject: MET 8.0 and Python
>        Owner: Nobody
>   Requestors: kalb at ucar.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89500 >
>
>
> Hi:
>
> I'm attempting to load some data into memory using python and run
MET 8.0.
> However, when I try to do this, I get the following error:
>
> ImportError: No module named netCDF4
>
> When I run my script on it's own (outside of MET) it has no issues
finding
> the netCDF4 module.  How do I go about fixing this so that I'm able
to
> import data?
>
> Tina
>
> --
> *************************************************
> Christina Kalb
> Associate Scientist
> National Center for Atmospheric Research
> 3450 Mitchell Lane
> Boulder, CO 80301
> kalb at ucar.edu
> 303-497-2819
> *************************************************
>
>

------------------------------------------------
Subject: MET 8.0 and Python
From: Christina Kalb
Time: Wed Apr 03 15:21:50 2019

Hi John:

It turns out that the version of python 2.x on that machine does not
have
the netCDF4 library installed.  It's frustratingly only installed on
python3.  I've been able to create a workaround by saving the numpy
array
from another Python script that loops through different forecasts, and
then
just using the python2 to restore it.

Tina

On Mon, Apr 1, 2019 at 1:55 PM John Halley Gotway via RT
<met_help at ucar.edu>
wrote:

> Tina,
>
> Catching up on met-help issues.  Are you still having trouble
accessing the
> NetCDF4 Python library when running via MET?
>
> One possibility is that you're running a version of Python that
differs
> from the one that MET was compiled against.  It may be possible to
fix this
> by updating your PYTHON_PATH environment variable.  I could sit down
with
> you and try to debug sometime.
>
> John
>
> On Wed, Mar 27, 2019 at 6:12 PM Christina Kalb via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Wed Mar 27 18:11:38 2019: Request 89500 was acted upon.
> > Transaction: Ticket created by kalb
> >        Queue: met_help
> >      Subject: MET 8.0 and Python
> >        Owner: Nobody
> >   Requestors: kalb at ucar.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89500 >
> >
> >
> > Hi:
> >
> > I'm attempting to load some data into memory using python and run
MET
> 8.0.
> > However, when I try to do this, I get the following error:
> >
> > ImportError: No module named netCDF4
> >
> > When I run my script on it's own (outside of MET) it has no issues
> finding
> > the netCDF4 module.  How do I go about fixing this so that I'm
able to
> > import data?
> >
> > Tina
> >
> > --
> > *************************************************
> > Christina Kalb
> > Associate Scientist
> > National Center for Atmospheric Research
> > 3450 Mitchell Lane
> > Boulder, CO 80301
> > kalb at ucar.edu
> > 303-497-2819
> > *************************************************
> >
> >
>
>

--
*************************************************
Christina Kalb
Associate Scientist
National Center for Atmospheric Research
3450 Mitchell Lane
Boulder, CO 80301
kalb at ucar.edu
303-497-2819
*************************************************

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


More information about the Met_help mailing list