[Met_help] [rt.rap.ucar.edu #89046] History for Trying to build MET 8.0 with Python support

Julie Prestopnik via RT met_help at ucar.edu
Tue Feb 26 09:17:25 MST 2019


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

I successfully built MET 8.0, but the user needs Python support. We use modules here. I noticed your build_script can use modules.

We use modules here too:

[ramos at predict met-8.0_bugfix]$ module list
Currently Loaded Modulefiles:
  1) python/anaconda-2.4.0
[ramos at predict met-8.0_bugfix]$ which python
/software/depot/anaconda-2.4.0/bin/python
[ramos at predict met-8.0_bugfix]$

I set the Python variable, but the build is not finding Python.h

[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7

Can you provide some help in building MET with Python support?


Greg Ramos


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

Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Fri Feb 22 17:33:44 2019

I got beyond the initial error, here is where I am stuck now:

/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
undefined reference to `PyErr_Occurred'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
undefined reference to `PyErr_PrintEx'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
undefined reference to `PySys_SetArgv'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
undefined reference to `PyImport_ImportModule'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
undefined reference to `PyImport_ReloadModule'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
undefined reference to `PyErr_Occurred'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
undefined reference to `PyErr_PrintEx'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
undefined reference to `PyModule_GetDict'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
undefined reference to `PyString_FromString'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
undefined reference to `PyDict_GetItem'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
undefined reference to `PyErr_PrintEx'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
undefined reference to `PyString_FromString'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
undefined reference to `PyDict_GetItem'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
undefined reference to `PyString_FromString'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
undefined reference to `PyDict_GetItem'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
undefined reference to `PyErr_PrintEx'
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o): In function `GlobalPython::initialize()':
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56: undefined
reference to `Py_Initialize'
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o): In function
`dataplane_from_numpy_array(_object*, _object*, DataPlane&, Grid&,
VarInfoPython&)':
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
undefined reference to `PyObject_GetAttrString'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
undefined reference to `PyTuple_Size'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
undefined reference to `PyObject_GetAttrString'
/software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
undefined reference to `PyObject_Type'
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o): In function `dataplane_from_xarray(_object*,
DataPlane&, Grid&, VarInfoPython&)':
dataplane_from_xarray.cc:(.text+0x44): undefined reference to
`PyObject_GetAttrString'
dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
`PyObject_GetAttrString'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dict_lookup_int(_object*, char const*)':
python_dict.cc:(.text+0x27): undefined reference to
`PyDict_GetItemString'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dict_lookup_double(_object*, char
const*)':
python_dict.cc:(.text+0x10a): undefined reference to
`PyDict_GetItemString'
python_dict.cc:(.text+0x167): undefined reference to `PyFloat_Type'
python_dict.cc:(.text+0x17b): undefined reference to `PyFloat_Type'
python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dict_lookup_string(_object*, char
const*)':
python_dict.cc:(.text+0x22c): undefined reference to
`PyDict_GetItemString'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dict_lookup_dict(_object*, char const*)':
python_dict.cc:(.text+0x35d): undefined reference to
`PyDict_GetItemString'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dump_dict(_object*, int)':
python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o): In function `dump_dict_value(_object*, int)':
python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
python_dict.cc:(.text+0x7dc): undefined reference to `PyInt_AsLong'
python_dict.cc:(.text+0x820): undefined reference to `PyFloat_Type'
python_dict.cc:(.text+0x834): undefined reference to `PyFloat_Type'
python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o): In function `get_tuple_int_values(_object*, int&,
int*)':
python_tuple.cc:(.text+0x1d): undefined reference to `PyTuple_Size'
python_tuple.cc:(.text+0xde): undefined reference to `PyTuple_GetItem'
python_tuple.cc:(.text+0x103): undefined reference to `PyInt_AsLong'
collect2: error: ld returned 1 exit status
make[5]: *** [ensemble_stat] Error 1
make[5]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
make: *** [all] Error 2
[ramos at predict met-8.0_bugfix]$

-----Original Message-----
From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
Sent: Friday, February 22, 2019 10:40 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0
with Python support

Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
	"Trying to build MET 8.0 with Python support",
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has
been assigned an ID of [rt.rap.ucar.edu #89046].

Please include the string:

         [rt.rap.ucar.edu #89046]

in the subject line of all future correspondence about this issue. To
do so, you may reply to this message.

For more information, please see:

MET Online Tutorial:
   https://www.dtcenter.org/met/users/support/online_tutorial/index.php

MET Users Guide:
   https://www.dtcenter.org/met/users/docs/overview.php

MET FAQs:
   https://www.dtcenter.org/met/users/support/faqs/index.php

MET-Help Email Archive:
   http://mailman.ucar.edu/pipermail/met_help

                        Thank you,
                        met_help at ucar.edu

-------------------------------------------------------------------------
I successfully built MET 8.0, but the user needs Python support. We
use modules here. I noticed your build_script can use modules.

We use modules here too:

[ramos at predict met-8.0_bugfix]$ module list
Currently Loaded Modulefiles:
  1) python/anaconda-2.4.0
[ramos at predict met-8.0_bugfix]$ which python
/software/depot/anaconda-2.4.0/bin/python
[ramos at predict met-8.0_bugfix]$

I set the Python variable, but the build is not finding Python.h

[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7

Can you provide some help in building MET with Python support?


Greg Ramos



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: John Halley Gotway
Time: Mon Feb 25 09:29:40 2019

Hi Gregory,

We received your email to met-help last Friday, but haven't had a
chance to
respond yet.

I see that you're trying to compile MET using this version of Python:
   /software/depot/anaconda-2.4.0/bin/python

Before running the configure script for MET, you should set the
MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
*export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
--cflags`*
*export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
--ldflags`*

And then rerun the MET configure command followed by:
 *  make clean install >& make.log*

If that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
John

On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I got beyond the initial error, here is where I am stuck now:
>
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> undefined reference to `PySys_SetArgv'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> undefined reference to `PyImport_ImportModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> undefined reference to `PyImport_ReloadModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> undefined reference to `PyModule_GetDict'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> undefined reference to `PyErr_PrintEx'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> In function `GlobalPython::initialize()':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> undefined reference to `Py_Initialize'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> Grid&, VarInfoPython&)':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> undefined reference to `PyTuple_Size'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> undefined reference to `PyObject_Type'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> VarInfoPython&)':
> dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> `PyObject_GetAttrString'
> dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> `PyObject_GetAttrString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_int(_object*, char const*)':
> python_dict.cc:(.text+0x27): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_double(_object*, char const*)':
> python_dict.cc:(.text+0x10a): undefined reference to
`PyDict_GetItemString'
> python_dict.cc:(.text+0x167): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x17b): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_string(_object*, char const*)':
> python_dict.cc:(.text+0x22c): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_dict(_object*, char const*)':
> python_dict.cc:(.text+0x35d): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict(_object*, int)':
> python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict_value(_object*, int)':
> python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> python_dict.cc:(.text+0x7dc): undefined reference to `PyInt_AsLong'
> python_dict.cc:(.text+0x820): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x834): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> In function `get_tuple_int_values(_object*, int&, int*)':
> python_tuple.cc:(.text+0x1d): undefined reference to `PyTuple_Size'
> python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> python_tuple.cc:(.text+0x103): undefined reference to `PyInt_AsLong'
> collect2: error: ld returned 1 exit status
> make[5]: *** [ensemble_stat] Error 1
> make[5]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> make: *** [all] Error 2
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> Sent: Friday, February 22, 2019 10:40 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0
with
> Python support
>
> Greetings,
>
> This message has been automatically generated in response to the
creation
> of a trouble ticket regarding:
>         "Trying to build MET 8.0 with Python support",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #89046].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #89046]
>
> in the subject line of all future correspondence about this issue.
To do
> so, you may reply to this message.
>
> For more information, please see:
>
> MET Online Tutorial:
>
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
>
> MET Users Guide:
>    https://www.dtcenter.org/met/users/docs/overview.php
>
> MET FAQs:
>    https://www.dtcenter.org/met/users/support/faqs/index.php
>
> MET-Help Email Archive:
>    http://mailman.ucar.edu/pipermail/met_help
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> I successfully built MET 8.0, but the user needs Python support. We
use
> modules here. I noticed your build_script can use modules.
>
> We use modules here too:
>
> [ramos at predict met-8.0_bugfix]$ module list
> Currently Loaded Modulefiles:
>   1) python/anaconda-2.4.0
> [ramos at predict met-8.0_bugfix]$ which python
> /software/depot/anaconda-2.4.0/bin/python
> [ramos at predict met-8.0_bugfix]$
>
> I set the Python variable, but the build is not finding Python.h
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
>
> Can you provide some help in building MET with Python support?
>
>
> Greg Ramos
>
>
>
>

------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 11:03:02 2019

This is the error I was running into yesterday:

[ramos at predict met-8.0_bugfix]$ ./configure
--prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
configure: error: in `/software/depot/met/met-8.0_bugfix':
configure: error: C++ compiler cannot create executables
See `config.log' for more details



-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 8:30 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Gregory,

We received your email to met-help last Friday, but haven't had a
chance to
respond yet.

I see that you're trying to compile MET using this version of Python:
   /software/depot/anaconda-2.4.0/bin/python

Before running the configure script for MET, you should set the
MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
*export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
--cflags`*
*export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
--ldflags`*

And then rerun the MET configure command followed by:
 *  make clean install >& make.log*

If that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
John

On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I got beyond the initial error, here is where I am stuck now:
>
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> undefined reference to `PySys_SetArgv'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> undefined reference to `PyImport_ImportModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> undefined reference to `PyImport_ReloadModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> undefined reference to `PyModule_GetDict'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> undefined reference to `PyErr_PrintEx'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> In function `GlobalPython::initialize()':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> undefined reference to `Py_Initialize'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> Grid&, VarInfoPython&)':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> undefined reference to `PyTuple_Size'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> undefined reference to `PyObject_Type'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> VarInfoPython&)':
> dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> `PyObject_GetAttrString'
> dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> `PyObject_GetAttrString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_int(_object*, char const*)':
> python_dict.cc:(.text+0x27): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_double(_object*, char const*)':
> python_dict.cc:(.text+0x10a): undefined reference to
`PyDict_GetItemString'
> python_dict.cc:(.text+0x167): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x17b): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_string(_object*, char const*)':
> python_dict.cc:(.text+0x22c): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_dict(_object*, char const*)':
> python_dict.cc:(.text+0x35d): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict(_object*, int)':
> python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict_value(_object*, int)':
> python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> python_dict.cc:(.text+0x7dc): undefined reference to `PyInt_AsLong'
> python_dict.cc:(.text+0x820): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x834): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> In function `get_tuple_int_values(_object*, int&, int*)':
> python_tuple.cc:(.text+0x1d): undefined reference to `PyTuple_Size'
> python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> python_tuple.cc:(.text+0x103): undefined reference to `PyInt_AsLong'
> collect2: error: ld returned 1 exit status
> make[5]: *** [ensemble_stat] Error 1
> make[5]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> make: *** [all] Error 2
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> Sent: Friday, February 22, 2019 10:40 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0
with
> Python support
>
> Greetings,
>
> This message has been automatically generated in response to the
creation
> of a trouble ticket regarding:
>         "Trying to build MET 8.0 with Python support",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #89046].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #89046]
>
> in the subject line of all future correspondence about this issue.
To do
> so, you may reply to this message.
>
> For more information, please see:
>
> MET Online Tutorial:
>
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
>
> MET Users Guide:
>    https://www.dtcenter.org/met/users/docs/overview.php
>
> MET FAQs:
>    https://www.dtcenter.org/met/users/support/faqs/index.php
>
> MET-Help Email Archive:
>    http://mailman.ucar.edu/pipermail/met_help
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> I successfully built MET 8.0, but the user needs Python support. We
use
> modules here. I noticed your build_script can use modules.
>
> We use modules here too:
>
> [ramos at predict met-8.0_bugfix]$ module list
> Currently Loaded Modulefiles:
>   1) python/anaconda-2.4.0
> [ramos at predict met-8.0_bugfix]$ which python
> /software/depot/anaconda-2.4.0/bin/python
> [ramos at predict met-8.0_bugfix]$
>
> I set the Python variable, but the build is not finding Python.h
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
>
> Can you provide some help in building MET with Python support?
>
>
> Greg Ramos
>
>
>
>


------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 11:24:50 2019

If I unset those two variables, configure completes, I know they are
required. This is what happens on the make with a good configure:

In file included from python_dict.h:27,
                 from python_dict.cc:23:
/usr/include/Python.h:105:24: error: enumobject.h: No such file or
directory
/usr/include/Python.h:106:23: error: setobject.h: No such file or
directory
/usr/include/Python.h:107:26: error: methodobject.h: No such file or
directory
/usr/include/Python.h:108:26: error: moduleobject.h: No such file or
directory
/usr/include/Python.h:109:24: error: funcobject.h: No such file or
directory
/usr/include/Python.h:110:25: error: classobject.h: No such file or
directory
/usr/include/Python.h:111:24: error: fileobject.h: No such file or
directory
/usr/include/Python.h:112:21: error: cobject.h: No such file or
directory
/usr/include/Python.h:113:23: error: pycapsule.h: No such file or
directory
/usr/include/Python.h:114:23: error: traceback.h: No such file or
directory
/usr/include/Python.h:115:25: error: sliceobject.h: No such file or
directory
/usr/include/Python.h:116:24: error: cellobject.h: No such file or
directory
/usr/include/Python.h:117:24: error: iterobject.h: No such file or
directory
/usr/include/Python.h:118:23: error: genobject.h: No such file or
directory
/usr/include/Python.h:119:25: error: descrobject.h: No such file or
directory
/usr/include/Python.h:120:22: error: warnings.h: No such file or
directory
/usr/include/Python.h:121:27: error: weakrefobject.h: No such file or
directory
/usr/include/Python.h:123:20: error: codecs.h: No such file or
directory
/usr/include/Python.h:124:22: error: pyerrors.h: No such file or
directory
/usr/include/Python.h:126:21: error: pystate.h: No such file or
directory
/usr/include/Python.h:128:21: error: pyarena.h: No such file or
directory
/usr/include/Python.h:129:24: error: modsupport.h: No such file or
directory
/usr/include/Python.h:130:23: error: pythonrun.h: No such file or
directory
/usr/include/Python.h:131:19: error: ceval.h: No such file or
directory
/usr/include/Python.h:132:23: error: sysmodule.h: No such file or
directory
/usr/include/Python.h:133:23: error: intrcheck.h: No such file or
directory
/usr/include/Python.h:134:20: error: import.h: No such file or
directory
/usr/include/Python.h:138:21: error: compile.h: No such file or
directory
/usr/include/Python.h:139:18: error: eval.h: No such file or directory
/usr/include/Python.h:141:21: error: pyctype.h: No such file or
directory
/usr/include/Python.h:142:22: error: pystrtod.h: No such file or
directory
/usr/include/Python.h:143:22: error: pystrcmp.h: No such file or
directory
/usr/include/Python.h:144:18: error: dtoa.h: No such file or directory
/usr/include/Python.h:159:19: error: pyfpe.h: No such file or
directory
make[4]: *** [libvx_python_utils_a-python_dict.o] Error 1
make[4]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/libcode/vx_python_utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/libcode'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
make: *** [all] Error 2
[ramos at predict met-8.0_bugfix]$ find /software/depot/met -name
enumobject.h
[ramos at predict met-8.0_bugfix]$

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 8:30 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Gregory,

We received your email to met-help last Friday, but haven't had a
chance to
respond yet.

I see that you're trying to compile MET using this version of Python:
   /software/depot/anaconda-2.4.0/bin/python

Before running the configure script for MET, you should set the
MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
*export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
--cflags`*
*export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
--ldflags`*

And then rerun the MET configure command followed by:
 *  make clean install >& make.log*

If that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
John

On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I got beyond the initial error, here is where I am stuck now:
>
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> undefined reference to `PySys_SetArgv'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> undefined reference to `PyImport_ImportModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> undefined reference to `PyImport_ReloadModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> undefined reference to `PyModule_GetDict'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> undefined reference to `PyErr_PrintEx'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> In function `GlobalPython::initialize()':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> undefined reference to `Py_Initialize'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> Grid&, VarInfoPython&)':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> undefined reference to `PyTuple_Size'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> undefined reference to `PyObject_Type'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> VarInfoPython&)':
> dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> `PyObject_GetAttrString'
> dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> `PyObject_GetAttrString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_int(_object*, char const*)':
> python_dict.cc:(.text+0x27): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_double(_object*, char const*)':
> python_dict.cc:(.text+0x10a): undefined reference to
`PyDict_GetItemString'
> python_dict.cc:(.text+0x167): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x17b): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_string(_object*, char const*)':
> python_dict.cc:(.text+0x22c): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_dict(_object*, char const*)':
> python_dict.cc:(.text+0x35d): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict(_object*, int)':
> python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict_value(_object*, int)':
> python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> python_dict.cc:(.text+0x7dc): undefined reference to `PyInt_AsLong'
> python_dict.cc:(.text+0x820): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x834): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> In function `get_tuple_int_values(_object*, int&, int*)':
> python_tuple.cc:(.text+0x1d): undefined reference to `PyTuple_Size'
> python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> python_tuple.cc:(.text+0x103): undefined reference to `PyInt_AsLong'
> collect2: error: ld returned 1 exit status
> make[5]: *** [ensemble_stat] Error 1
> make[5]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> make: *** [all] Error 2
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> Sent: Friday, February 22, 2019 10:40 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0
with
> Python support
>
> Greetings,
>
> This message has been automatically generated in response to the
creation
> of a trouble ticket regarding:
>         "Trying to build MET 8.0 with Python support",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #89046].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #89046]
>
> in the subject line of all future correspondence about this issue.
To do
> so, you may reply to this message.
>
> For more information, please see:
>
> MET Online Tutorial:
>
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
>
> MET Users Guide:
>    https://www.dtcenter.org/met/users/docs/overview.php
>
> MET FAQs:
>    https://www.dtcenter.org/met/users/support/faqs/index.php
>
> MET-Help Email Archive:
>    http://mailman.ucar.edu/pipermail/met_help
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> I successfully built MET 8.0, but the user needs Python support. We
use
> modules here. I noticed your build_script can use modules.
>
> We use modules here too:
>
> [ramos at predict met-8.0_bugfix]$ module list
> Currently Loaded Modulefiles:
>   1) python/anaconda-2.4.0
> [ramos at predict met-8.0_bugfix]$ which python
> /software/depot/anaconda-2.4.0/bin/python
> [ramos at predict met-8.0_bugfix]$
>
> I set the Python variable, but the build is not finding Python.h
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
>
> Can you provide some help in building MET with Python support?
>
>
> Greg Ramos
>
>
>
>



------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 11:47:24 2019

Here are my settings:

[ramos at predict met-8.0_bugfix]$ export
MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
[ramos at predict met-8.0_bugfix]$ export
MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
--ldflags`
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7
-I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
-lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
[ramos at predict met-8.0_bugfix]$

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 8:30 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Gregory,

We received your email to met-help last Friday, but haven't had a
chance to
respond yet.

I see that you're trying to compile MET using this version of Python:
   /software/depot/anaconda-2.4.0/bin/python

Before running the configure script for MET, you should set the
MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
*export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
--cflags`*
*export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
--ldflags`*

And then rerun the MET configure command followed by:
 *  make clean install >& make.log*

If that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
John

On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I got beyond the initial error, here is where I am stuck now:
>
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> undefined reference to `PySys_SetArgv'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> undefined reference to `PyImport_ImportModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> undefined reference to `PyImport_ReloadModule'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> undefined reference to `PyErr_Occurred'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> undefined reference to `PyModule_GetDict'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> undefined reference to `PyErr_PrintEx'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> undefined reference to `PyString_FromString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> undefined reference to `PyDict_GetItem'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> undefined reference to `PyErr_PrintEx'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> In function `GlobalPython::initialize()':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> undefined reference to `Py_Initialize'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> Grid&, VarInfoPython&)':
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> undefined reference to `PyTuple_Size'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> undefined reference to `PyObject_GetAttrString'
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> undefined reference to `PyObject_Type'
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> VarInfoPython&)':
> dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> `PyObject_GetAttrString'
> dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> `PyObject_GetAttrString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_int(_object*, char const*)':
> python_dict.cc:(.text+0x27): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_double(_object*, char const*)':
> python_dict.cc:(.text+0x10a): undefined reference to
`PyDict_GetItemString'
> python_dict.cc:(.text+0x167): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x17b): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_string(_object*, char const*)':
> python_dict.cc:(.text+0x22c): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dict_lookup_dict(_object*, char const*)':
> python_dict.cc:(.text+0x35d): undefined reference to
`PyDict_GetItemString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict(_object*, int)':
> python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> In function `dump_dict_value(_object*, int)':
> python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> python_dict.cc:(.text+0x7dc): undefined reference to `PyInt_AsLong'
> python_dict.cc:(.text+0x820): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x834): undefined reference to `PyFloat_Type'
> python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> In function `get_tuple_int_values(_object*, int&, int*)':
> python_tuple.cc:(.text+0x1d): undefined reference to `PyTuple_Size'
> python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> python_tuple.cc:(.text+0x103): undefined reference to `PyInt_AsLong'
> collect2: error: ld returned 1 exit status
> make[5]: *** [ensemble_stat] Error 1
> make[5]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools/core'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/software/depot/met/met-8.0_bugfix/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> make: *** [all] Error 2
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> Sent: Friday, February 22, 2019 10:40 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0
with
> Python support
>
> Greetings,
>
> This message has been automatically generated in response to the
creation
> of a trouble ticket regarding:
>         "Trying to build MET 8.0 with Python support",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #89046].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #89046]
>
> in the subject line of all future correspondence about this issue.
To do
> so, you may reply to this message.
>
> For more information, please see:
>
> MET Online Tutorial:
>
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
>
> MET Users Guide:
>    https://www.dtcenter.org/met/users/docs/overview.php
>
> MET FAQs:
>    https://www.dtcenter.org/met/users/support/faqs/index.php
>
> MET-Help Email Archive:
>    http://mailman.ucar.edu/pipermail/met_help
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> I successfully built MET 8.0, but the user needs Python support. We
use
> modules here. I noticed your build_script can use modules.
>
> We use modules here too:
>
> [ramos at predict met-8.0_bugfix]$ module list
> Currently Loaded Modulefiles:
>   1) python/anaconda-2.4.0
> [ramos at predict met-8.0_bugfix]$ which python
> /software/depot/anaconda-2.4.0/bin/python
> [ramos at predict met-8.0_bugfix]$
>
> I set the Python variable, but the build is not finding Python.h
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
>
> Can you provide some help in building MET with Python support?
>
>
> Greg Ramos
>
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 12:21:06 2019

Hi Greg.  Thank you for attaching your config.log file.

>From your config.log file:

> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
>

and from the value of  MET_PYTHON_LD that you provided, I can see that
MET_PYTHON_LD does not contain all of the information that it needs.
In
some cases, running "python-config --ldflags" is enough, but in this
case,
it is not.  In order to proceed, we need to find the location of the
libpython.a file or the libpython.so file.  Based on the information
from
the output from running "python-config --cflags", I am going to guess
that
the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
/software/depot/anaconda-2.4.0/lib/python2.7.  Could you please check
those
directories and see if you can find a libpython.a file or libpython.so
file?

If you find it at /software/depot/anaconda-2.4.0/lib, then please set
MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
set MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

The value for MET_PYTHON_CC should be fine.

Please try resetting MET_PYTHON_LD as described above and then
reconfiguring and reinstalling MET.  Please let us know how it goes.
If
that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
Julie

On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Here are my settings:
>
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
--ldflags`
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 8:30 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Gregory,
>
> We received your email to met-help last Friday, but haven't had a
chance to
> respond yet.
>
> I see that you're trying to compile MET using this version of
Python:
>    /software/depot/anaconda-2.4.0/bin/python
>
> Before running the configure script for MET, you should set the
> MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> --cflags`*
> *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> --ldflags`*
>
> And then rerun the MET configure command followed by:
>  *  make clean install >& make.log*
>
> If that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> from the top-level MET directory.
>
> Thanks,
> John
>
> On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I got beyond the initial error, here is where I am stuck now:
> >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > undefined reference to `PySys_SetArgv'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > undefined reference to `PyImport_ImportModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > undefined reference to `PyImport_ReloadModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > undefined reference to `PyModule_GetDict'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > undefined reference to `PyErr_PrintEx'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > In function `GlobalPython::initialize()':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > undefined reference to `Py_Initialize'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > Grid&, VarInfoPython&)':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > undefined reference to `PyTuple_Size'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > undefined reference to `PyObject_Type'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > VarInfoPython&)':
> > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > `PyObject_GetAttrString'
> > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > `PyObject_GetAttrString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_int(_object*, char const*)':
> > python_dict.cc:(.text+0x27): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_double(_object*, char const*)':
> > python_dict.cc:(.text+0x10a): undefined reference to
> `PyDict_GetItemString'
> > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_string(_object*, char const*)':
> > python_dict.cc:(.text+0x22c): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_dict(_object*, char const*)':
> > python_dict.cc:(.text+0x35d): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict(_object*, int)':
> > python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> > python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> > python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict_value(_object*, int)':
> > python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > In function `get_tuple_int_values(_object*, int&, int*)':
> > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > collect2: error: ld returned 1 exit status
> > make[5]: *** [ensemble_stat] Error 1
> > make[5]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > make: *** [all] Error 2
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > Sent: Friday, February 22, 2019 10:40 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with
> > Python support
> >
> > Greetings,
> >
> > This message has been automatically generated in response to the
creation
> > of a trouble ticket regarding:
> >         "Trying to build MET 8.0 with Python support",
> > a summary of which appears below.
> >
> > There is no need to reply to this message right now.  Your ticket
has
> been
> > assigned an ID of [rt.rap.ucar.edu #89046].
> >
> > Please include the string:
> >
> >          [rt.rap.ucar.edu #89046]
> >
> > in the subject line of all future correspondence about this issue.
To do
> > so, you may reply to this message.
> >
> > For more information, please see:
> >
> > MET Online Tutorial:
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> >
> > MET Users Guide:
> >    https://www.dtcenter.org/met/users/docs/overview.php
> >
> > MET FAQs:
> >    https://www.dtcenter.org/met/users/support/faqs/index.php
> >
> > MET-Help Email Archive:
> >    http://mailman.ucar.edu/pipermail/met_help
> >
> >                         Thank you,
> >                         met_help at ucar.edu
> >
> >
-------------------------------------------------------------------------
> > I successfully built MET 8.0, but the user needs Python support.
We use
> > modules here. I noticed your build_script can use modules.
> >
> > We use modules here too:
> >
> > [ramos at predict met-8.0_bugfix]$ module list
> > Currently Loaded Modulefiles:
> >   1) python/anaconda-2.4.0
> > [ramos at predict met-8.0_bugfix]$ which python
> > /software/depot/anaconda-2.4.0/bin/python
> > [ramos at predict met-8.0_bugfix]$
> >
> > I set the Python variable, but the build is not finding Python.h
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> >
> > Can you provide some help in building MET with Python support?
> >
> >
> > Greg Ramos
> >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 12:23:52 2019

Your colleague replied earlier today. I received the same info. If I
set those two variable, the ./configure says I don't have a good CC
compiler.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 11:21 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Thank you for attaching your config.log file.

>From your config.log file:

> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
>

and from the value of  MET_PYTHON_LD that you provided, I can see that
MET_PYTHON_LD does not contain all of the information that it needs.
In
some cases, running "python-config --ldflags" is enough, but in this
case,
it is not.  In order to proceed, we need to find the location of the
libpython.a file or the libpython.so file.  Based on the information
from
the output from running "python-config --cflags", I am going to guess
that
the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
/software/depot/anaconda-2.4.0/lib/python2.7.  Could you please check
those
directories and see if you can find a libpython.a file or libpython.so
file?

If you find it at /software/depot/anaconda-2.4.0/lib, then please set
MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
set MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

The value for MET_PYTHON_CC should be fine.

Please try resetting MET_PYTHON_LD as described above and then
reconfiguring and reinstalling MET.  Please let us know how it goes.
If
that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
Julie

On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Here are my settings:
>
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
--ldflags`
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 8:30 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Gregory,
>
> We received your email to met-help last Friday, but haven't had a
chance to
> respond yet.
>
> I see that you're trying to compile MET using this version of
Python:
>    /software/depot/anaconda-2.4.0/bin/python
>
> Before running the configure script for MET, you should set the
> MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> --cflags`*
> *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> --ldflags`*
>
> And then rerun the MET configure command followed by:
>  *  make clean install >& make.log*
>
> If that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> from the top-level MET directory.
>
> Thanks,
> John
>
> On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I got beyond the initial error, here is where I am stuck now:
> >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > undefined reference to `PySys_SetArgv'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > undefined reference to `PyImport_ImportModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > undefined reference to `PyImport_ReloadModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > undefined reference to `PyModule_GetDict'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > undefined reference to `PyErr_PrintEx'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > In function `GlobalPython::initialize()':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > undefined reference to `Py_Initialize'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > Grid&, VarInfoPython&)':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > undefined reference to `PyTuple_Size'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > undefined reference to `PyObject_Type'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > VarInfoPython&)':
> > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > `PyObject_GetAttrString'
> > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > `PyObject_GetAttrString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_int(_object*, char const*)':
> > python_dict.cc:(.text+0x27): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_double(_object*, char const*)':
> > python_dict.cc:(.text+0x10a): undefined reference to
> `PyDict_GetItemString'
> > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_string(_object*, char const*)':
> > python_dict.cc:(.text+0x22c): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_dict(_object*, char const*)':
> > python_dict.cc:(.text+0x35d): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict(_object*, int)':
> > python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> > python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> > python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict_value(_object*, int)':
> > python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > In function `get_tuple_int_values(_object*, int&, int*)':
> > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > collect2: error: ld returned 1 exit status
> > make[5]: *** [ensemble_stat] Error 1
> > make[5]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > make: *** [all] Error 2
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > Sent: Friday, February 22, 2019 10:40 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with
> > Python support
> >
> > Greetings,
> >
> > This message has been automatically generated in response to the
creation
> > of a trouble ticket regarding:
> >         "Trying to build MET 8.0 with Python support",
> > a summary of which appears below.
> >
> > There is no need to reply to this message right now.  Your ticket
has
> been
> > assigned an ID of [rt.rap.ucar.edu #89046].
> >
> > Please include the string:
> >
> >          [rt.rap.ucar.edu #89046]
> >
> > in the subject line of all future correspondence about this issue.
To do
> > so, you may reply to this message.
> >
> > For more information, please see:
> >
> > MET Online Tutorial:
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> >
> > MET Users Guide:
> >    https://www.dtcenter.org/met/users/docs/overview.php
> >
> > MET FAQs:
> >    https://www.dtcenter.org/met/users/support/faqs/index.php
> >
> > MET-Help Email Archive:
> >    http://mailman.ucar.edu/pipermail/met_help
> >
> >                         Thank you,
> >                         met_help at ucar.edu
> >
> >
-------------------------------------------------------------------------
> > I successfully built MET 8.0, but the user needs Python support.
We use
> > modules here. I noticed your build_script can use modules.
> >
> > We use modules here too:
> >
> > [ramos at predict met-8.0_bugfix]$ module list
> > Currently Loaded Modulefiles:
> >   1) python/anaconda-2.4.0
> > [ramos at predict met-8.0_bugfix]$ which python
> > /software/depot/anaconda-2.4.0/bin/python
> > [ramos at predict met-8.0_bugfix]$
> >
> > I set the Python variable, but the build is not finding Python.h
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> >
> > Can you provide some help in building MET with Python support?
> >
> >
> > Greg Ramos
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 12:26:39 2019

Sorry, I thought you were replying to the original email I sent. I
will set the new values. Thanks.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 11:21 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Thank you for attaching your config.log file.

>From your config.log file:

> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
>

and from the value of  MET_PYTHON_LD that you provided, I can see that
MET_PYTHON_LD does not contain all of the information that it needs.
In
some cases, running "python-config --ldflags" is enough, but in this
case,
it is not.  In order to proceed, we need to find the location of the
libpython.a file or the libpython.so file.  Based on the information
from
the output from running "python-config --cflags", I am going to guess
that
the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
/software/depot/anaconda-2.4.0/lib/python2.7.  Could you please check
those
directories and see if you can find a libpython.a file or libpython.so
file?

If you find it at /software/depot/anaconda-2.4.0/lib, then please set
MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
set MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

The value for MET_PYTHON_CC should be fine.

Please try resetting MET_PYTHON_LD as described above and then
reconfiguring and reinstalling MET.  Please let us know how it goes.
If
that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
Julie

On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Here are my settings:
>
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
--ldflags`
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 8:30 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Gregory,
>
> We received your email to met-help last Friday, but haven't had a
chance to
> respond yet.
>
> I see that you're trying to compile MET using this version of
Python:
>    /software/depot/anaconda-2.4.0/bin/python
>
> Before running the configure script for MET, you should set the
> MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> --cflags`*
> *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> --ldflags`*
>
> And then rerun the MET configure command followed by:
>  *  make clean install >& make.log*
>
> If that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> from the top-level MET directory.
>
> Thanks,
> John
>
> On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I got beyond the initial error, here is where I am stuck now:
> >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > undefined reference to `PySys_SetArgv'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > undefined reference to `PyImport_ImportModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > undefined reference to `PyImport_ReloadModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > undefined reference to `PyModule_GetDict'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > undefined reference to `PyErr_PrintEx'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > In function `GlobalPython::initialize()':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > undefined reference to `Py_Initialize'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > Grid&, VarInfoPython&)':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > undefined reference to `PyTuple_Size'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > undefined reference to `PyObject_Type'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > VarInfoPython&)':
> > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > `PyObject_GetAttrString'
> > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > `PyObject_GetAttrString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_int(_object*, char const*)':
> > python_dict.cc:(.text+0x27): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_double(_object*, char const*)':
> > python_dict.cc:(.text+0x10a): undefined reference to
> `PyDict_GetItemString'
> > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_string(_object*, char const*)':
> > python_dict.cc:(.text+0x22c): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_dict(_object*, char const*)':
> > python_dict.cc:(.text+0x35d): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict(_object*, int)':
> > python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> > python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> > python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict_value(_object*, int)':
> > python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > In function `get_tuple_int_values(_object*, int&, int*)':
> > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > collect2: error: ld returned 1 exit status
> > make[5]: *** [ensemble_stat] Error 1
> > make[5]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > make: *** [all] Error 2
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > Sent: Friday, February 22, 2019 10:40 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with
> > Python support
> >
> > Greetings,
> >
> > This message has been automatically generated in response to the
creation
> > of a trouble ticket regarding:
> >         "Trying to build MET 8.0 with Python support",
> > a summary of which appears below.
> >
> > There is no need to reply to this message right now.  Your ticket
has
> been
> > assigned an ID of [rt.rap.ucar.edu #89046].
> >
> > Please include the string:
> >
> >          [rt.rap.ucar.edu #89046]
> >
> > in the subject line of all future correspondence about this issue.
To do
> > so, you may reply to this message.
> >
> > For more information, please see:
> >
> > MET Online Tutorial:
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> >
> > MET Users Guide:
> >    https://www.dtcenter.org/met/users/docs/overview.php
> >
> > MET FAQs:
> >    https://www.dtcenter.org/met/users/support/faqs/index.php
> >
> > MET-Help Email Archive:
> >    http://mailman.ucar.edu/pipermail/met_help
> >
> >                         Thank you,
> >                         met_help at ucar.edu
> >
> >
-------------------------------------------------------------------------
> > I successfully built MET 8.0, but the user needs Python support.
We use
> > modules here. I noticed your build_script can use modules.
> >
> > We use modules here too:
> >
> > [ramos at predict met-8.0_bugfix]$ module list
> > Currently Loaded Modulefiles:
> >   1) python/anaconda-2.4.0
> > [ramos at predict met-8.0_bugfix]$ which python
> > /software/depot/anaconda-2.4.0/bin/python
> > [ramos at predict met-8.0_bugfix]$
> >
> > I set the Python variable, but the build is not finding Python.h
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> >
> > Can you provide some help in building MET with Python support?
> >
> >
> > Greg Ramos
> >
> >
> >
> >
>
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 12:44:07 2019

Still doesn't complete config:

[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7
-I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
-L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\ -lpthread\
-ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
[ramos at predict met-8.0_bugfix]$



-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 11:21 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Thank you for attaching your config.log file.

>From your config.log file:

> /usr/bin/ld: cannot find -lpython2.7
> collect2: ld returned 1 exit status
>

and from the value of  MET_PYTHON_LD that you provided, I can see that
MET_PYTHON_LD does not contain all of the information that it needs.
In
some cases, running "python-config --ldflags" is enough, but in this
case,
it is not.  In order to proceed, we need to find the location of the
libpython.a file or the libpython.so file.  Based on the information
from
the output from running "python-config --cflags", I am going to guess
that
the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
/software/depot/anaconda-2.4.0/lib/python2.7.  Could you please check
those
directories and see if you can find a libpython.a file or libpython.so
file?

If you find it at /software/depot/anaconda-2.4.0/lib, then please set
MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
set MET_PYTHON_LD in this way (you can copy and paste):
export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"

The value for MET_PYTHON_CC should be fine.

Please try resetting MET_PYTHON_LD as described above and then
reconfiguring and reinstalling MET.  Please let us know how it goes.
If
that doesn't fix it, please send us the *config.log *and *make.log*
files
from the top-level MET directory.

Thanks,
Julie

On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Here are my settings:
>
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> [ramos at predict met-8.0_bugfix]$ export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
--ldflags`
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 8:30 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Gregory,
>
> We received your email to met-help last Friday, but haven't had a
chance to
> respond yet.
>
> I see that you're trying to compile MET using this version of
Python:
>    /software/depot/anaconda-2.4.0/bin/python
>
> Before running the configure script for MET, you should set the
> MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> --cflags`*
> *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> --ldflags`*
>
> And then rerun the MET configure command followed by:
>  *  make clean install >& make.log*
>
> If that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> from the top-level MET directory.
>
> Thanks,
> John
>
> On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I got beyond the initial error, here is where I am stuck now:
> >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > undefined reference to `PySys_SetArgv'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > undefined reference to `PyImport_ImportModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > undefined reference to `PyImport_ReloadModule'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > undefined reference to `PyErr_Occurred'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > undefined reference to `PyModule_GetDict'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > undefined reference to `PyErr_PrintEx'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > undefined reference to `PyString_FromString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > undefined reference to `PyDict_GetItem'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > undefined reference to `PyErr_PrintEx'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > In function `GlobalPython::initialize()':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > undefined reference to `Py_Initialize'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > Grid&, VarInfoPython&)':
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > undefined reference to `PyTuple_Size'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > undefined reference to `PyObject_GetAttrString'
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > undefined reference to `PyObject_Type'
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > VarInfoPython&)':
> > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > `PyObject_GetAttrString'
> > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > `PyObject_GetAttrString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_int(_object*, char const*)':
> > python_dict.cc:(.text+0x27): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_double(_object*, char const*)':
> > python_dict.cc:(.text+0x10a): undefined reference to
> `PyDict_GetItemString'
> > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_string(_object*, char const*)':
> > python_dict.cc:(.text+0x22c): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dict_lookup_dict(_object*, char const*)':
> > python_dict.cc:(.text+0x35d): undefined reference to
> `PyDict_GetItemString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict(_object*, int)':
> > python_dict.cc:(.text+0x4d7): undefined reference to `PyDict_Size'
> > python_dict.cc:(.text+0x558): undefined reference to `PyDict_Next'
> > python_dict.cc:(.text+0x649): undefined reference to
`PyString_AsString'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > In function `dump_dict_value(_object*, int)':
> > python_dict.cc:(.text+0x765): undefined reference to
`PyString_AsString'
> > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > In function `get_tuple_int_values(_object*, int&, int*)':
> > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > collect2: error: ld returned 1 exit status
> > make[5]: *** [ensemble_stat] Error 1
> > make[5]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src/tools'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > make: *** [all] Error 2
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > Sent: Friday, February 22, 2019 10:40 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with
> > Python support
> >
> > Greetings,
> >
> > This message has been automatically generated in response to the
creation
> > of a trouble ticket regarding:
> >         "Trying to build MET 8.0 with Python support",
> > a summary of which appears below.
> >
> > There is no need to reply to this message right now.  Your ticket
has
> been
> > assigned an ID of [rt.rap.ucar.edu #89046].
> >
> > Please include the string:
> >
> >          [rt.rap.ucar.edu #89046]
> >
> > in the subject line of all future correspondence about this issue.
To do
> > so, you may reply to this message.
> >
> > For more information, please see:
> >
> > MET Online Tutorial:
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> >
> > MET Users Guide:
> >    https://www.dtcenter.org/met/users/docs/overview.php
> >
> > MET FAQs:
> >    https://www.dtcenter.org/met/users/support/faqs/index.php
> >
> > MET-Help Email Archive:
> >    http://mailman.ucar.edu/pipermail/met_help
> >
> >                         Thank you,
> >                         met_help at ucar.edu
> >
> >
-------------------------------------------------------------------------
> > I successfully built MET 8.0, but the user needs Python support.
We use
> > modules here. I noticed your build_script can use modules.
> >
> > We use modules here too:
> >
> > [ramos at predict met-8.0_bugfix]$ module list
> > Currently Loaded Modulefiles:
> >   1) python/anaconda-2.4.0
> > [ramos at predict met-8.0_bugfix]$ which python
> > /software/depot/anaconda-2.4.0/bin/python
> > [ramos at predict met-8.0_bugfix]$
> >
> > I set the Python variable, but the build is not finding Python.h
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> >
> > Can you provide some help in building MET with Python support?
> >
> >
> > Greg Ramos
> >
> >
> >
> >
>
>
>
>


------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 12:46:58 2019

Hi Greg.  Thanks for attaching your config.log file.  I see the value
of
MET_PYTHON_LD is:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

but it needs a backslash and a space before the "-lpython2.7".  It
should
be:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give it another try with that value.

Julie


On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Still doesn't complete config:
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
>
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 11:21 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Thank you for attaching your config.log file.
>
> From your config.log file:
>
> > /usr/bin/ld: cannot find -lpython2.7
> > collect2: ld returned 1 exit status
> >
>
> and from the value of  MET_PYTHON_LD that you provided, I can see
that
> MET_PYTHON_LD does not contain all of the information that it needs.
In
> some cases, running "python-config --ldflags" is enough, but in this
case,
> it is not.  In order to proceed, we need to find the location of the
> libpython.a file or the libpython.so file.  Based on the information
from
> the output from running "python-config --cflags", I am going to
guess that
> the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
> /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check those
> directories and see if you can find a libpython.a file or
libpython.so
> file?
>
> If you find it at /software/depot/anaconda-2.4.0/lib, then please
set
> MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
>
> If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
> set MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
>
> The value for MET_PYTHON_CC should be fine.
>
> Please try resetting MET_PYTHON_LD as described above and then
> reconfiguring and reinstalling MET.  Please let us know how it goes.
If
> that doesn't fix it, please send us the *config.log *and *make.log*
files
> from the top-level MET directory.
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1 via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Here are my settings:
> >
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> --ldflags`
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 8:30 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Gregory,
> >
> > We received your email to met-help last Friday, but haven't had a
chance
> to
> > respond yet.
> >
> > I see that you're trying to compile MET using this version of
Python:
> >    /software/depot/anaconda-2.4.0/bin/python
> >
> > Before running the configure script for MET, you should set the
> > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`*
> > *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --ldflags`*
> >
> > And then rerun the MET configure command followed by:
> >  *  make clean install >& make.log*
> >
> > If that doesn't fix it, please send us the *config.log *and
*make.log*
> > files
> > from the top-level MET directory.
> >
> > Thanks,
> > John
> >
> > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I got beyond the initial error, here is where I am stuck now:
> > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > undefined reference to `PySys_SetArgv'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > undefined reference to `PyImport_ImportModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > undefined reference to `PyImport_ReloadModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > undefined reference to `PyModule_GetDict'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > In function `GlobalPython::initialize()':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > undefined reference to `Py_Initialize'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > > Grid&, VarInfoPython&)':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > undefined reference to `PyTuple_Size'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > undefined reference to `PyObject_Type'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > > VarInfoPython&)':
> > > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > > `PyObject_GetAttrString'
> > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > > `PyObject_GetAttrString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_int(_object*, char const*)':
> > > python_dict.cc:(.text+0x27): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_double(_object*, char const*)':
> > > python_dict.cc:(.text+0x10a): undefined reference to
> > `PyDict_GetItemString'
> > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_string(_object*, char const*)':
> > > python_dict.cc:(.text+0x22c): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_dict(_object*, char const*)':
> > > python_dict.cc:(.text+0x35d): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict(_object*, int)':
> > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > python_dict.cc:(.text+0x649): undefined reference to
> `PyString_AsString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict_value(_object*, int)':
> > > python_dict.cc:(.text+0x765): undefined reference to
> `PyString_AsString'
> > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > > collect2: error: ld returned 1 exit status
> > > make[5]: *** [ensemble_stat] Error 1
> > > make[5]: Leaving directory
> > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > make[4]: *** [all-recursive] Error 1
> > > make[4]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > make[3]: *** [all-recursive] Error 1
> > > make[3]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > > make: *** [all] Error 2
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > Sent: Friday, February 22, 2019 10:40 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> > with
> > > Python support
> > >
> > > Greetings,
> > >
> > > This message has been automatically generated in response to the
> creation
> > > of a trouble ticket regarding:
> > >         "Trying to build MET 8.0 with Python support",
> > > a summary of which appears below.
> > >
> > > There is no need to reply to this message right now.  Your
ticket has
> > been
> > > assigned an ID of [rt.rap.ucar.edu #89046].
> > >
> > > Please include the string:
> > >
> > >          [rt.rap.ucar.edu #89046]
> > >
> > > in the subject line of all future correspondence about this
issue. To
> do
> > > so, you may reply to this message.
> > >
> > > For more information, please see:
> > >
> > > MET Online Tutorial:
> > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > >
> > > MET Users Guide:
> > >    https://www.dtcenter.org/met/users/docs/overview.php
> > >
> > > MET FAQs:
> > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > >
> > > MET-Help Email Archive:
> > >    http://mailman.ucar.edu/pipermail/met_help
> > >
> > >                         Thank you,
> > >                         met_help at ucar.edu
> > >
> > >
>
-------------------------------------------------------------------------
> > > I successfully built MET 8.0, but the user needs Python support.
We use
> > > modules here. I noticed your build_script can use modules.
> > >
> > > We use modules here too:
> > >
> > > [ramos at predict met-8.0_bugfix]$ module list
> > > Currently Loaded Modulefiles:
> > >   1) python/anaconda-2.4.0
> > > [ramos at predict met-8.0_bugfix]$ which python
> > > /software/depot/anaconda-2.4.0/bin/python
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > I set the Python variable, but the build is not finding Python.h
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > >
> > > Can you provide some help in building MET with Python support?
> > >
> > >
> > > Greg Ramos
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 12:55:49 2019

Same result:

[ramos at predict met-8.0_bugfix]$ !1073
./configure --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2
--enable-modis --enable-mode_graphics --enable-lidar2nc  --enable-
python > configure.log
configure: error: in `/software/depot/met/met-8.0_bugfix':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
[ramos at predict met-8.0_bugfix]$ !echo
echo $MET_PYTHON_LD
-L/software/depot/anaconda-2.4.0/lib/python2.7\ -lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7
-I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
[ramos at predict met-8.0_bugfix]$

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 11:47 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Thanks for attaching your config.log file.  I see the value
of
MET_PYTHON_LD is:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

but it needs a backslash and a space before the "-lpython2.7".  It
should
be:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give it another try with that value.

Julie


On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Still doesn't complete config:
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
>
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 11:21 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Thank you for attaching your config.log file.
>
> From your config.log file:
>
> > /usr/bin/ld: cannot find -lpython2.7
> > collect2: ld returned 1 exit status
> >
>
> and from the value of  MET_PYTHON_LD that you provided, I can see
that
> MET_PYTHON_LD does not contain all of the information that it needs.
In
> some cases, running "python-config --ldflags" is enough, but in this
case,
> it is not.  In order to proceed, we need to find the location of the
> libpython.a file or the libpython.so file.  Based on the information
from
> the output from running "python-config --cflags", I am going to
guess that
> the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
> /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check those
> directories and see if you can find a libpython.a file or
libpython.so
> file?
>
> If you find it at /software/depot/anaconda-2.4.0/lib, then please
set
> MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
>
> If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
> set MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
>
> The value for MET_PYTHON_CC should be fine.
>
> Please try resetting MET_PYTHON_LD as described above and then
> reconfiguring and reinstalling MET.  Please let us know how it goes.
If
> that doesn't fix it, please send us the *config.log *and *make.log*
files
> from the top-level MET directory.
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1 via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Here are my settings:
> >
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> --ldflags`
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 8:30 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Gregory,
> >
> > We received your email to met-help last Friday, but haven't had a
chance
> to
> > respond yet.
> >
> > I see that you're trying to compile MET using this version of
Python:
> >    /software/depot/anaconda-2.4.0/bin/python
> >
> > Before running the configure script for MET, you should set the
> > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`*
> > *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --ldflags`*
> >
> > And then rerun the MET configure command followed by:
> >  *  make clean install >& make.log*
> >
> > If that doesn't fix it, please send us the *config.log *and
*make.log*
> > files
> > from the top-level MET directory.
> >
> > Thanks,
> > John
> >
> > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I got beyond the initial error, here is where I am stuck now:
> > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > undefined reference to `PySys_SetArgv'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > undefined reference to `PyImport_ImportModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > undefined reference to `PyImport_ReloadModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > undefined reference to `PyModule_GetDict'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > In function `GlobalPython::initialize()':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > undefined reference to `Py_Initialize'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > > Grid&, VarInfoPython&)':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > undefined reference to `PyTuple_Size'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > undefined reference to `PyObject_Type'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > > VarInfoPython&)':
> > > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > > `PyObject_GetAttrString'
> > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > > `PyObject_GetAttrString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_int(_object*, char const*)':
> > > python_dict.cc:(.text+0x27): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_double(_object*, char const*)':
> > > python_dict.cc:(.text+0x10a): undefined reference to
> > `PyDict_GetItemString'
> > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_string(_object*, char const*)':
> > > python_dict.cc:(.text+0x22c): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_dict(_object*, char const*)':
> > > python_dict.cc:(.text+0x35d): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict(_object*, int)':
> > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > python_dict.cc:(.text+0x649): undefined reference to
> `PyString_AsString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict_value(_object*, int)':
> > > python_dict.cc:(.text+0x765): undefined reference to
> `PyString_AsString'
> > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > > collect2: error: ld returned 1 exit status
> > > make[5]: *** [ensemble_stat] Error 1
> > > make[5]: Leaving directory
> > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > make[4]: *** [all-recursive] Error 1
> > > make[4]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > make[3]: *** [all-recursive] Error 1
> > > make[3]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > > make: *** [all] Error 2
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > Sent: Friday, February 22, 2019 10:40 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> > with
> > > Python support
> > >
> > > Greetings,
> > >
> > > This message has been automatically generated in response to the
> creation
> > > of a trouble ticket regarding:
> > >         "Trying to build MET 8.0 with Python support",
> > > a summary of which appears below.
> > >
> > > There is no need to reply to this message right now.  Your
ticket has
> > been
> > > assigned an ID of [rt.rap.ucar.edu #89046].
> > >
> > > Please include the string:
> > >
> > >          [rt.rap.ucar.edu #89046]
> > >
> > > in the subject line of all future correspondence about this
issue. To
> do
> > > so, you may reply to this message.
> > >
> > > For more information, please see:
> > >
> > > MET Online Tutorial:
> > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > >
> > > MET Users Guide:
> > >    https://www.dtcenter.org/met/users/docs/overview.php
> > >
> > > MET FAQs:
> > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > >
> > > MET-Help Email Archive:
> > >    http://mailman.ucar.edu/pipermail/met_help
> > >
> > >                         Thank you,
> > >                         met_help at ucar.edu
> > >
> > >
>
-------------------------------------------------------------------------
> > > I successfully built MET 8.0, but the user needs Python support.
We use
> > > modules here. I noticed your build_script can use modules.
> > >
> > > We use modules here too:
> > >
> > > [ramos at predict met-8.0_bugfix]$ module list
> > > Currently Loaded Modulefiles:
> > >   1) python/anaconda-2.4.0
> > > [ramos at predict met-8.0_bugfix]$ which python
> > > /software/depot/anaconda-2.4.0/bin/python
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > I set the Python variable, but the build is not finding Python.h
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > >
> > > Can you provide some help in building MET with Python support?
> > >
> > >
> > > Greg Ramos
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 14:05:07 2019

Is that what you were looking for?


Gre

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 11:47 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Thanks for attaching your config.log file.  I see the value
of
MET_PYTHON_LD is:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

but it needs a backslash and a space before the "-lpython2.7".  It
should
be:

MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give it another try with that value.

Julie


On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor, Code
7501.1 via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Still doesn't complete config:
>
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> [ramos at predict met-8.0_bugfix]$
>
>
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 11:21 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Thank you for attaching your config.log file.
>
> From your config.log file:
>
> > /usr/bin/ld: cannot find -lpython2.7
> > collect2: ld returned 1 exit status
> >
>
> and from the value of  MET_PYTHON_LD that you provided, I can see
that
> MET_PYTHON_LD does not contain all of the information that it needs.
In
> some cases, running "python-config --ldflags" is enough, but in this
case,
> it is not.  In order to proceed, we need to find the location of the
> libpython.a file or the libpython.so file.  Based on the information
from
> the output from running "python-config --cflags", I am going to
guess that
> the libpython file lives in /software/depot/anaconda-2.4.0/lib or in
> /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check those
> directories and see if you can find a libpython.a file or
libpython.so
> file?
>
> If you find it at /software/depot/anaconda-2.4.0/lib, then please
set
> MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
>
> If you find it at /software/depot/anaconda-2.4.0/lib/python2.7, then
please
> set MET_PYTHON_LD in this way (you can copy and paste):
> export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
>
> The value for MET_PYTHON_CC should be fine.
>
> Please try resetting MET_PYTHON_LD as described above and then
> reconfiguring and reinstalling MET.  Please let us know how it goes.
If
> that doesn't fix it, please send us the *config.log *and *make.log*
files
> from the top-level MET directory.
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1 via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Here are my settings:
> >
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
--cflags`
> > [ramos at predict met-8.0_bugfix]$ export
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> --ldflags`
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 8:30 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Gregory,
> >
> > We received your email to met-help last Friday, but haven't had a
chance
> to
> > respond yet.
> >
> > I see that you're trying to compile MET using this version of
Python:
> >    /software/depot/anaconda-2.4.0/bin/python
> >
> > Before running the configure script for MET, you should set the
> > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > *export MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`*
> > *export MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --ldflags`*
> >
> > And then rerun the MET configure command followed by:
> >  *  make clean install >& make.log*
> >
> > If that doesn't fix it, please send us the *config.log *and
*make.log*
> > files
> > from the top-level MET directory.
> >
> > Thanks,
> > John
> >
> > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I got beyond the initial error, here is where I am stuck now:
> > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > undefined reference to `PySys_SetArgv'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > undefined reference to `PyImport_ImportModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > undefined reference to `PyImport_ReloadModule'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > undefined reference to `PyErr_Occurred'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > undefined reference to `PyModule_GetDict'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > undefined reference to `PyString_FromString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > undefined reference to `PyDict_GetItem'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > undefined reference to `PyErr_PrintEx'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > In function `GlobalPython::initialize()':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > undefined reference to `Py_Initialize'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > In function `dataplane_from_numpy_array(_object*, _object*,
DataPlane&,
> > > Grid&, VarInfoPython&)':
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > undefined reference to `PyTuple_Size'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > undefined reference to `PyObject_GetAttrString'
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > undefined reference to `PyObject_Type'
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > In function `dataplane_from_xarray(_object*, DataPlane&, Grid&,
> > > VarInfoPython&)':
> > > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > > `PyObject_GetAttrString'
> > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > > `PyObject_GetAttrString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_int(_object*, char const*)':
> > > python_dict.cc:(.text+0x27): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_double(_object*, char const*)':
> > > python_dict.cc:(.text+0x10a): undefined reference to
> > `PyDict_GetItemString'
> > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x186): undefined reference to
`PyType_IsSubtype'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_string(_object*, char const*)':
> > > python_dict.cc:(.text+0x22c): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dict_lookup_dict(_object*, char const*)':
> > > python_dict.cc:(.text+0x35d): undefined reference to
> > `PyDict_GetItemString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict(_object*, int)':
> > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > python_dict.cc:(.text+0x649): undefined reference to
> `PyString_AsString'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > In function `dump_dict_value(_object*, int)':
> > > python_dict.cc:(.text+0x765): undefined reference to
> `PyString_AsString'
> > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > python_dict.cc:(.text+0x83f): undefined reference to
`PyType_IsSubtype'
> > > python_dict.cc:(.text+0x85f): undefined reference to
`PyFloat_AsDouble'
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > python_tuple.cc:(.text+0xde): undefined reference to
`PyTuple_GetItem'
> > > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > > collect2: error: ld returned 1 exit status
> > > make[5]: *** [ensemble_stat] Error 1
> > > make[5]: Leaving directory
> > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > make[4]: *** [all-recursive] Error 1
> > > make[4]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > make[3]: *** [all-recursive] Error 1
> > > make[3]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src/tools'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory `/software/depot/met/met-8.0_bugfix'
> > > make: *** [all] Error 2
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > Sent: Friday, February 22, 2019 10:40 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> > with
> > > Python support
> > >
> > > Greetings,
> > >
> > > This message has been automatically generated in response to the
> creation
> > > of a trouble ticket regarding:
> > >         "Trying to build MET 8.0 with Python support",
> > > a summary of which appears below.
> > >
> > > There is no need to reply to this message right now.  Your
ticket has
> > been
> > > assigned an ID of [rt.rap.ucar.edu #89046].
> > >
> > > Please include the string:
> > >
> > >          [rt.rap.ucar.edu #89046]
> > >
> > > in the subject line of all future correspondence about this
issue. To
> do
> > > so, you may reply to this message.
> > >
> > > For more information, please see:
> > >
> > > MET Online Tutorial:
> > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > >
> > > MET Users Guide:
> > >    https://www.dtcenter.org/met/users/docs/overview.php
> > >
> > > MET FAQs:
> > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > >
> > > MET-Help Email Archive:
> > >    http://mailman.ucar.edu/pipermail/met_help
> > >
> > >                         Thank you,
> > >                         met_help at ucar.edu
> > >
> > >
>
-------------------------------------------------------------------------
> > > I successfully built MET 8.0, but the user needs Python support.
We use
> > > modules here. I noticed your build_script can use modules.
> > >
> > > We use modules here too:
> > >
> > > [ramos at predict met-8.0_bugfix]$ module list
> > > Currently Loaded Modulefiles:
> > >   1) python/anaconda-2.4.0
> > > [ramos at predict met-8.0_bugfix]$ which python
> > > /software/depot/anaconda-2.4.0/bin/python
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > I set the Python variable, but the build is not finding Python.h
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > >
> > > Can you provide some help in building MET with Python support?
> > >
> > >
> > > Greg Ramos
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 14:20:12 2019

Hi Greg.  Can you please run

"ls /software/depot/anaconda-2.4.0/lib/python2.7" and

"ls /software/depot/anaconda-2.4.0/lib" and

send me the output of those commands?

Thanks,
Julie


On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Is that what you were looking for?
>
>
> Gre
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 11:47 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Thanks for attaching your config.log file.  I see the
value of
> MET_PYTHON_LD is:
>
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> but it needs a backslash and a space before the "-lpython2.7".  It
should
> be:
>
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> Please give it another try with that value.
>
> Julie
>
>
> On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1 via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Still doesn't complete config:
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > [ramos at predict met-8.0_bugfix]$
> >
> >
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 11:21 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Thank you for attaching your config.log file.
> >
> > From your config.log file:
> >
> > > /usr/bin/ld: cannot find -lpython2.7
> > > collect2: ld returned 1 exit status
> > >
> >
> > and from the value of  MET_PYTHON_LD that you provided, I can see
that
> > MET_PYTHON_LD does not contain all of the information that it
needs.  In
> > some cases, running "python-config --ldflags" is enough, but in
this
> case,
> > it is not.  In order to proceed, we need to find the location of
the
> > libpython.a file or the libpython.so file.  Based on the
information from
> > the output from running "python-config --cflags", I am going to
guess
> that
> > the libpython file lives in /software/depot/anaconda-2.4.0/lib or
in
> > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check
> those
> > directories and see if you can find a libpython.a file or
libpython.so
> > file?
> >
> > If you find it at /software/depot/anaconda-2.4.0/lib, then please
set
> > MET_PYTHON_LD in this way (you can copy and paste):
> > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> >
> > If you find it at /software/depot/anaconda-2.4.0/lib/python2.7,
then
> please
> > set MET_PYTHON_LD in this way (you can copy and paste):
> > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> >
> > The value for MET_PYTHON_CC should be fine.
> >
> > Please try resetting MET_PYTHON_LD as described above and then
> > reconfiguring and reinstalling MET.  Please let us know how it
goes.  If
> > that doesn't fix it, please send us the *config.log *and
*make.log* files
> > from the top-level MET directory.
> >
> > Thanks,
> > Julie
> >
> > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1 via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Here are my settings:
> > >
> > > [ramos at predict met-8.0_bugfix]$ export
> > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> --cflags`
> > > [ramos at predict met-8.0_bugfix]$ export
> > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > --ldflags`
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 8:30 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Gregory,
> > >
> > > We received your email to met-help last Friday, but haven't had
a
> chance
> > to
> > > respond yet.
> > >
> > > I see that you're trying to compile MET using this version of
Python:
> > >    /software/depot/anaconda-2.4.0/bin/python
> > >
> > > Before running the configure script for MET, you should set the
> > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > *export MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > --cflags`*
> > > *export MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > --ldflags`*
> > >
> > > And then rerun the MET configure command followed by:
> > >  *  make clean install >& make.log*
> > >
> > > If that doesn't fix it, please send us the *config.log *and
*make.log*
> > > files
> > > from the top-level MET directory.
> > >
> > > Thanks,
> > > John
> > >
> > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > I got beyond the initial error, here is where I am stuck now:
> > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > undefined reference to `PyErr_Occurred'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > undefined reference to `PySys_SetArgv'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > undefined reference to `PyImport_ImportModule'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > undefined reference to `PyImport_ReloadModule'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > undefined reference to `PyErr_Occurred'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > undefined reference to `PyModule_GetDict'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > In function `GlobalPython::initialize()':
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > undefined reference to `Py_Initialize'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > In function `dataplane_from_numpy_array(_object*, _object*,
> DataPlane&,
> > > > Grid&, VarInfoPython&)':
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > undefined reference to `PyObject_GetAttrString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > undefined reference to `PyTuple_Size'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > undefined reference to `PyObject_GetAttrString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > undefined reference to `PyObject_Type'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > VarInfoPython&)':
> > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > > > `PyObject_GetAttrString'
> > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > > > `PyObject_GetAttrString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_int(_object*, char const*)':
> > > > python_dict.cc:(.text+0x27): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_double(_object*, char const*)':
> > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > `PyDict_GetItemString'
> > > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x186): undefined reference to
> `PyType_IsSubtype'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_string(_object*, char const*)':
> > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dump_dict(_object*, int)':
> > > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > > python_dict.cc:(.text+0x649): undefined reference to
> > `PyString_AsString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dump_dict_value(_object*, int)':
> > > > python_dict.cc:(.text+0x765): undefined reference to
> > `PyString_AsString'
> > > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x83f): undefined reference to
> `PyType_IsSubtype'
> > > > python_dict.cc:(.text+0x85f): undefined reference to
> `PyFloat_AsDouble'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > > python_tuple.cc:(.text+0xde): undefined reference to
> `PyTuple_GetItem'
> > > > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > > > collect2: error: ld returned 1 exit status
> > > > make[5]: *** [ensemble_stat] Error 1
> > > > make[5]: Leaving directory
> > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > make[4]: *** [all-recursive] Error 1
> > > > make[4]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > make[3]: *** [all-recursive] Error 1
> > > > make[3]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > make[2]: *** [all-recursive] Error 1
> > > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > make: *** [all] Error 2
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > -----Original Message-----
> > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > > with
> > > > Python support
> > > >
> > > > Greetings,
> > > >
> > > > This message has been automatically generated in response to
the
> > creation
> > > > of a trouble ticket regarding:
> > > >         "Trying to build MET 8.0 with Python support",
> > > > a summary of which appears below.
> > > >
> > > > There is no need to reply to this message right now.  Your
ticket has
> > > been
> > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > >
> > > > Please include the string:
> > > >
> > > >          [rt.rap.ucar.edu #89046]
> > > >
> > > > in the subject line of all future correspondence about this
issue. To
> > do
> > > > so, you may reply to this message.
> > > >
> > > > For more information, please see:
> > > >
> > > > MET Online Tutorial:
> > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > >
> > > > MET Users Guide:
> > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > >
> > > > MET FAQs:
> > > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > > >
> > > > MET-Help Email Archive:
> > > >    http://mailman.ucar.edu/pipermail/met_help
> > > >
> > > >                         Thank you,
> > > >                         met_help at ucar.edu
> > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > I successfully built MET 8.0, but the user needs Python
support. We
> use
> > > > modules here. I noticed your build_script can use modules.
> > > >
> > > > We use modules here too:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > Currently Loaded Modulefiles:
> > > >   1) python/anaconda-2.4.0
> > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > /software/depot/anaconda-2.4.0/bin/python
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > I set the Python variable, but the build is not finding
Python.h
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > >
> > > > Can you provide some help in building MET with Python support?
> > > >
> > > >
> > > > Greg Ramos
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 14:28:27 2019

[ramos at maury2 ~]$ cd /ftp/receive/ramos
[ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib/python2.7
> output-1
[ramos at maury2 ramos]$ unix2dos output-1
unix2dos: converting file output-1 to DOS format ...
[ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib > output-2
[ramos at maury2 ramos]$ unix2dos output-2
unix2dos: converting file output-2 to DOS format ...
[ramos at maury2 ramos]$

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 1:20 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  Can you please run

"ls /software/depot/anaconda-2.4.0/lib/python2.7" and

"ls /software/depot/anaconda-2.4.0/lib" and

send me the output of those commands?

Thanks,
Julie


On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Is that what you were looking for?
>
>
> Gre
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 11:47 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Thanks for attaching your config.log file.  I see the
value of
> MET_PYTHON_LD is:
>
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> but it needs a backslash and a space before the "-lpython2.7".  It
should
> be:
>
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> Please give it another try with that value.
>
> Julie
>
>
> On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1 via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Still doesn't complete config:
> >
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > [ramos at predict met-8.0_bugfix]$
> >
> >
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 11:21 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Thank you for attaching your config.log file.
> >
> > From your config.log file:
> >
> > > /usr/bin/ld: cannot find -lpython2.7
> > > collect2: ld returned 1 exit status
> > >
> >
> > and from the value of  MET_PYTHON_LD that you provided, I can see
that
> > MET_PYTHON_LD does not contain all of the information that it
needs.  In
> > some cases, running "python-config --ldflags" is enough, but in
this
> case,
> > it is not.  In order to proceed, we need to find the location of
the
> > libpython.a file or the libpython.so file.  Based on the
information from
> > the output from running "python-config --cflags", I am going to
guess
> that
> > the libpython file lives in /software/depot/anaconda-2.4.0/lib or
in
> > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check
> those
> > directories and see if you can find a libpython.a file or
libpython.so
> > file?
> >
> > If you find it at /software/depot/anaconda-2.4.0/lib, then please
set
> > MET_PYTHON_LD in this way (you can copy and paste):
> > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> >
> > If you find it at /software/depot/anaconda-2.4.0/lib/python2.7,
then
> please
> > set MET_PYTHON_LD in this way (you can copy and paste):
> > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> >
> > The value for MET_PYTHON_CC should be fine.
> >
> > Please try resetting MET_PYTHON_LD as described above and then
> > reconfiguring and reinstalling MET.  Please let us know how it
goes.  If
> > that doesn't fix it, please send us the *config.log *and
*make.log* files
> > from the top-level MET directory.
> >
> > Thanks,
> > Julie
> >
> > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1 via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Here are my settings:
> > >
> > > [ramos at predict met-8.0_bugfix]$ export
> > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> --cflags`
> > > [ramos at predict met-8.0_bugfix]$ export
> > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > --ldflags`
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 8:30 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Gregory,
> > >
> > > We received your email to met-help last Friday, but haven't had
a
> chance
> > to
> > > respond yet.
> > >
> > > I see that you're trying to compile MET using this version of
Python:
> > >    /software/depot/anaconda-2.4.0/bin/python
> > >
> > > Before running the configure script for MET, you should set the
> > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > *export MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > --cflags`*
> > > *export MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > --ldflags`*
> > >
> > > And then rerun the MET configure command followed by:
> > >  *  make clean install >& make.log*
> > >
> > > If that doesn't fix it, please send us the *config.log *and
*make.log*
> > > files
> > > from the top-level MET directory.
> > >
> > > Thanks,
> > > John
> > >
> > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > I got beyond the initial error, here is where I am stuck now:
> > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > undefined reference to `PyErr_Occurred'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > undefined reference to `PySys_SetArgv'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > undefined reference to `PyImport_ImportModule'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > undefined reference to `PyImport_ReloadModule'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > undefined reference to `PyErr_Occurred'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > undefined reference to `PyModule_GetDict'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > undefined reference to `PyString_FromString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > undefined reference to `PyDict_GetItem'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > undefined reference to `PyErr_PrintEx'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > In function `GlobalPython::initialize()':
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > undefined reference to `Py_Initialize'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > In function `dataplane_from_numpy_array(_object*, _object*,
> DataPlane&,
> > > > Grid&, VarInfoPython&)':
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > undefined reference to `PyObject_GetAttrString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > undefined reference to `PyTuple_Size'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > undefined reference to `PyObject_GetAttrString'
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > undefined reference to `PyObject_Type'
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > VarInfoPython&)':
> > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference to
> > > > `PyObject_GetAttrString'
> > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference to
> > > > `PyObject_GetAttrString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_int(_object*, char const*)':
> > > > python_dict.cc:(.text+0x27): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_double(_object*, char const*)':
> > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > `PyDict_GetItemString'
> > > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x186): undefined reference to
> `PyType_IsSubtype'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_string(_object*, char const*)':
> > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > `PyDict_GetItemString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dump_dict(_object*, int)':
> > > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > > python_dict.cc:(.text+0x649): undefined reference to
> > `PyString_AsString'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > In function `dump_dict_value(_object*, int)':
> > > > python_dict.cc:(.text+0x765): undefined reference to
> > `PyString_AsString'
> > > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > > python_dict.cc:(.text+0x83f): undefined reference to
> `PyType_IsSubtype'
> > > > python_dict.cc:(.text+0x85f): undefined reference to
> `PyFloat_AsDouble'
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > > python_tuple.cc:(.text+0xde): undefined reference to
> `PyTuple_GetItem'
> > > > python_tuple.cc:(.text+0x103): undefined reference to
`PyInt_AsLong'
> > > > collect2: error: ld returned 1 exit status
> > > > make[5]: *** [ensemble_stat] Error 1
> > > > make[5]: Leaving directory
> > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > make[4]: *** [all-recursive] Error 1
> > > > make[4]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > make[3]: *** [all-recursive] Error 1
> > > > make[3]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > make[2]: *** [all-recursive] Error 1
> > > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > make: *** [all] Error 2
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > -----Original Message-----
> > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > > with
> > > > Python support
> > > >
> > > > Greetings,
> > > >
> > > > This message has been automatically generated in response to
the
> > creation
> > > > of a trouble ticket regarding:
> > > >         "Trying to build MET 8.0 with Python support",
> > > > a summary of which appears below.
> > > >
> > > > There is no need to reply to this message right now.  Your
ticket has
> > > been
> > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > >
> > > > Please include the string:
> > > >
> > > >          [rt.rap.ucar.edu #89046]
> > > >
> > > > in the subject line of all future correspondence about this
issue. To
> > do
> > > > so, you may reply to this message.
> > > >
> > > > For more information, please see:
> > > >
> > > > MET Online Tutorial:
> > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > >
> > > > MET Users Guide:
> > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > >
> > > > MET FAQs:
> > > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > > >
> > > > MET-Help Email Archive:
> > > >    http://mailman.ucar.edu/pipermail/met_help
> > > >
> > > >                         Thank you,
> > > >                         met_help at ucar.edu
> > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > I successfully built MET 8.0, but the user needs Python
support. We
> use
> > > > modules here. I noticed your build_script can use modules.
> > > >
> > > > We use modules here too:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > Currently Loaded Modulefiles:
> > > >   1) python/anaconda-2.4.0
> > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > /software/depot/anaconda-2.4.0/bin/python
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > I set the Python variable, but the build is not finding
Python.h
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > >
> > > > Can you provide some help in building MET with Python support?
> > > >
> > > >
> > > > Greg Ramos
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 14:32:45 2019

Thank you, Greg.  It looks like the libpython2.7.so exists at
/software/depot/anaconda-2.4.0/lib and not at
/software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
MET_PYTHON_LD in the following way:

export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give that a try and reconfigure and reinstall MET.  Please let
us
know how it goes.

Thanks,
Julie

On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> [ramos at maury2 ~]$ cd /ftp/receive/ramos
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7 >
> output-1
> [ramos at maury2 ramos]$ unix2dos output-1
> unix2dos: converting file output-1 to DOS format ...
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> [ramos at maury2 ramos]$ unix2dos output-2
> unix2dos: converting file output-2 to DOS format ...
> [ramos at maury2 ramos]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 1:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Can you please run
>
> "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
>
> "ls /software/depot/anaconda-2.4.0/lib" and
>
> send me the output of those commands?
>
> Thanks,
> Julie
>
>
> On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Is that what you were looking for?
> >
> >
> > Gre
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 11:47 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Thanks for attaching your config.log file.  I see the
value of
> > MET_PYTHON_LD is:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > but it needs a backslash and a space before the "-lpython2.7".  It
should
> > be:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> -lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give it another try with that value.
> >
> > Julie
> >
> >
> > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1 via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Still doesn't complete config:
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 11:21 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Thank you for attaching your config.log file.
> > >
> > > From your config.log file:
> > >
> > > > /usr/bin/ld: cannot find -lpython2.7
> > > > collect2: ld returned 1 exit status
> > > >
> > >
> > > and from the value of  MET_PYTHON_LD that you provided, I can
see that
> > > MET_PYTHON_LD does not contain all of the information that it
needs.
> In
> > > some cases, running "python-config --ldflags" is enough, but in
this
> > case,
> > > it is not.  In order to proceed, we need to find the location of
the
> > > libpython.a file or the libpython.so file.  Based on the
information
> from
> > > the output from running "python-config --cflags", I am going to
guess
> > that
> > > the libpython file lives in /software/depot/anaconda-2.4.0/lib
or in
> > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check
> > those
> > > directories and see if you can find a libpython.a file or
libpython.so
> > > file?
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please set
> > > MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib/python2.7,
then
> > please
> > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > >
> > > The value for MET_PYTHON_CC should be fine.
> > >
> > > Please try resetting MET_PYTHON_LD as described above and then
> > > reconfiguring and reinstalling MET.  Please let us know how it
goes.
> If
> > > that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> > > from the top-level MET directory.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Here are my settings:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > --ldflags`
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> -fno-strict-aliasing
> > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Gregory,
> > > >
> > > > We received your email to met-help last Friday, but haven't
had a
> > chance
> > > to
> > > > respond yet.
> > > >
> > > > I see that you're trying to compile MET using this version of
Python:
> > > >    /software/depot/anaconda-2.4.0/bin/python
> > > >
> > > > Before running the configure script for MET, you should set
the
> > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > > *export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --cflags`*
> > > > *export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --ldflags`*
> > > >
> > > > And then rerun the MET configure command followed by:
> > > >  *  make clean install >& make.log*
> > > >
> > > > If that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > from the top-level MET directory.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > undefined reference to `PySys_SetArgv'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > undefined reference to `PyImport_ImportModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > undefined reference to `PyImport_ReloadModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > undefined reference to `PyModule_GetDict'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > In function `GlobalPython::initialize()':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > undefined reference to `Py_Initialize'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > In function `dataplane_from_numpy_array(_object*, _object*,
> > DataPlane&,
> > > > > Grid&, VarInfoPython&)':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > undefined reference to `PyTuple_Size'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > undefined reference to `PyObject_Type'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > VarInfoPython&)':
> > > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > `PyDict_GetItemString'
> > > > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x186): undefined reference to
> > `PyType_IsSubtype'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict(_object*, int)':
> > > > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > `PyString_AsString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict_value(_object*, int)':
> > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > `PyString_AsString'
> > > > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > `PyType_IsSubtype'
> > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > `PyFloat_AsDouble'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > `PyTuple_GetItem'
> > > > > python_tuple.cc:(.text+0x103): undefined reference to
> `PyInt_AsLong'
> > > > > collect2: error: ld returned 1 exit status
> > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > make[5]: Leaving directory
> > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > make[4]: *** [all-recursive] Error 1
> > > > > make[4]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > make[3]: *** [all-recursive] Error 1
> > > > > make[3]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > make[2]: *** [all-recursive] Error 1
> > > > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > > > make[1]: *** [all-recursive] Error 1
> > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > make: *** [all] Error 2
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > > with
> > > > > Python support
> > > > >
> > > > > Greetings,
> > > > >
> > > > > This message has been automatically generated in response to
the
> > > creation
> > > > > of a trouble ticket regarding:
> > > > >         "Trying to build MET 8.0 with Python support",
> > > > > a summary of which appears below.
> > > > >
> > > > > There is no need to reply to this message right now.  Your
ticket
> has
> > > > been
> > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > >
> > > > > Please include the string:
> > > > >
> > > > >          [rt.rap.ucar.edu #89046]
> > > > >
> > > > > in the subject line of all future correspondence about this
issue.
> To
> > > do
> > > > > so, you may reply to this message.
> > > > >
> > > > > For more information, please see:
> > > > >
> > > > > MET Online Tutorial:
> > > > >
> > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > >
> > > > > MET Users Guide:
> > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > >
> > > > > MET FAQs:
> > > > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > >
> > > > > MET-Help Email Archive:
> > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > >
> > > > >                         Thank you,
> > > > >                         met_help at ucar.edu
> > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > I successfully built MET 8.0, but the user needs Python
support. We
> > use
> > > > > modules here. I noticed your build_script can use modules.
> > > > >
> > > > > We use modules here too:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > Currently Loaded Modulefiles:
> > > > >   1) python/anaconda-2.4.0
> > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > I set the Python variable, but the build is not finding
Python.h
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > >
> > > > > Can you provide some help in building MET with Python
support?
> > > > >
> > > > >
> > > > > Greg Ramos
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 14:37:32 2019

Back to the bad compiler:

[ramos at predict met-8.0_bugfix]$ ./configure
--prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
configure: error: in `/software/depot/met/met-8.0_bugfix':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
[ramos at predict met-8.0_bugfix]$ !ech
echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7
-I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
-L/software/depot/anaconda-2.4.0/lib\ -lpython2.7\ -lpthread\ -ldl\
-lutil\ -lm\ -Xlinker\ -export-dynamic
[ramos at predict met-8.0_bugfix]$




-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 1:33 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Thank you, Greg.  It looks like the libpython2.7.so exists at
/software/depot/anaconda-2.4.0/lib and not at
/software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
MET_PYTHON_LD in the following way:

export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give that a try and reconfigure and reinstall MET.  Please let
us
know how it goes.

Thanks,
Julie

On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> [ramos at maury2 ~]$ cd /ftp/receive/ramos
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7 >
> output-1
> [ramos at maury2 ramos]$ unix2dos output-1
> unix2dos: converting file output-1 to DOS format ...
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> [ramos at maury2 ramos]$ unix2dos output-2
> unix2dos: converting file output-2 to DOS format ...
> [ramos at maury2 ramos]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 1:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Can you please run
>
> "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
>
> "ls /software/depot/anaconda-2.4.0/lib" and
>
> send me the output of those commands?
>
> Thanks,
> Julie
>
>
> On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Is that what you were looking for?
> >
> >
> > Gre
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 11:47 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Thanks for attaching your config.log file.  I see the
value of
> > MET_PYTHON_LD is:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > but it needs a backslash and a space before the "-lpython2.7".  It
should
> > be:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> -lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give it another try with that value.
> >
> > Julie
> >
> >
> > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1 via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Still doesn't complete config:
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 11:21 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Thank you for attaching your config.log file.
> > >
> > > From your config.log file:
> > >
> > > > /usr/bin/ld: cannot find -lpython2.7
> > > > collect2: ld returned 1 exit status
> > > >
> > >
> > > and from the value of  MET_PYTHON_LD that you provided, I can
see that
> > > MET_PYTHON_LD does not contain all of the information that it
needs.
> In
> > > some cases, running "python-config --ldflags" is enough, but in
this
> > case,
> > > it is not.  In order to proceed, we need to find the location of
the
> > > libpython.a file or the libpython.so file.  Based on the
information
> from
> > > the output from running "python-config --cflags", I am going to
guess
> > that
> > > the libpython file lives in /software/depot/anaconda-2.4.0/lib
or in
> > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check
> > those
> > > directories and see if you can find a libpython.a file or
libpython.so
> > > file?
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please set
> > > MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib/python2.7,
then
> > please
> > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > >
> > > The value for MET_PYTHON_CC should be fine.
> > >
> > > Please try resetting MET_PYTHON_LD as described above and then
> > > reconfiguring and reinstalling MET.  Please let us know how it
goes.
> If
> > > that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> > > from the top-level MET directory.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Here are my settings:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > --ldflags`
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> -fno-strict-aliasing
> > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Gregory,
> > > >
> > > > We received your email to met-help last Friday, but haven't
had a
> > chance
> > > to
> > > > respond yet.
> > > >
> > > > I see that you're trying to compile MET using this version of
Python:
> > > >    /software/depot/anaconda-2.4.0/bin/python
> > > >
> > > > Before running the configure script for MET, you should set
the
> > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > > *export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --cflags`*
> > > > *export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --ldflags`*
> > > >
> > > > And then rerun the MET configure command followed by:
> > > >  *  make clean install >& make.log*
> > > >
> > > > If that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > from the top-level MET directory.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > undefined reference to `PySys_SetArgv'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > undefined reference to `PyImport_ImportModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > undefined reference to `PyImport_ReloadModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > undefined reference to `PyModule_GetDict'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > In function `GlobalPython::initialize()':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > undefined reference to `Py_Initialize'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > In function `dataplane_from_numpy_array(_object*, _object*,
> > DataPlane&,
> > > > > Grid&, VarInfoPython&)':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > undefined reference to `PyTuple_Size'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > undefined reference to `PyObject_Type'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > VarInfoPython&)':
> > > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > `PyDict_GetItemString'
> > > > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x186): undefined reference to
> > `PyType_IsSubtype'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict(_object*, int)':
> > > > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > `PyString_AsString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict_value(_object*, int)':
> > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > `PyString_AsString'
> > > > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > `PyType_IsSubtype'
> > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > `PyFloat_AsDouble'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > `PyTuple_GetItem'
> > > > > python_tuple.cc:(.text+0x103): undefined reference to
> `PyInt_AsLong'
> > > > > collect2: error: ld returned 1 exit status
> > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > make[5]: Leaving directory
> > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > make[4]: *** [all-recursive] Error 1
> > > > > make[4]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > make[3]: *** [all-recursive] Error 1
> > > > > make[3]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > make[2]: *** [all-recursive] Error 1
> > > > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > > > make[1]: *** [all-recursive] Error 1
> > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > make: *** [all] Error 2
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > > with
> > > > > Python support
> > > > >
> > > > > Greetings,
> > > > >
> > > > > This message has been automatically generated in response to
the
> > > creation
> > > > > of a trouble ticket regarding:
> > > > >         "Trying to build MET 8.0 with Python support",
> > > > > a summary of which appears below.
> > > > >
> > > > > There is no need to reply to this message right now.  Your
ticket
> has
> > > > been
> > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > >
> > > > > Please include the string:
> > > > >
> > > > >          [rt.rap.ucar.edu #89046]
> > > > >
> > > > > in the subject line of all future correspondence about this
issue.
> To
> > > do
> > > > > so, you may reply to this message.
> > > > >
> > > > > For more information, please see:
> > > > >
> > > > > MET Online Tutorial:
> > > > >
> > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > >
> > > > > MET Users Guide:
> > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > >
> > > > > MET FAQs:
> > > > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > >
> > > > > MET-Help Email Archive:
> > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > >
> > > > >                         Thank you,
> > > > >                         met_help at ucar.edu
> > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > I successfully built MET 8.0, but the user needs Python
support. We
> > use
> > > > > modules here. I noticed your build_script can use modules.
> > > > >
> > > > > We use modules here too:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > Currently Loaded Modulefiles:
> > > > >   1) python/anaconda-2.4.0
> > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > I set the Python variable, but the build is not finding
Python.h
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > >
> > > > > Can you provide some help in building MET with Python
support?
> > > > >
> > > > >
> > > > > Greg Ramos
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 14:52:33 2019

I hope this ends up helping others. I have installed MET since 5.0,
but this is the first time someone has asked for Python support.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 1:33 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Thank you, Greg.  It looks like the libpython2.7.so exists at
/software/depot/anaconda-2.4.0/lib and not at
/software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
MET_PYTHON_LD in the following way:

export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'

Please give that a try and reconfigure and reinstall MET.  Please let
us
know how it goes.

Thanks,
Julie

On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> [ramos at maury2 ~]$ cd /ftp/receive/ramos
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7 >
> output-1
> [ramos at maury2 ramos]$ unix2dos output-1
> unix2dos: converting file output-1 to DOS format ...
> [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> [ramos at maury2 ramos]$ unix2dos output-2
> unix2dos: converting file output-2 to DOS format ...
> [ramos at maury2 ramos]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 1:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  Can you please run
>
> "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
>
> "ls /software/depot/anaconda-2.4.0/lib" and
>
> send me the output of those commands?
>
> Thanks,
> Julie
>
>
> On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Is that what you were looking for?
> >
> >
> > Gre
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 11:47 AM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Thanks for attaching your config.log file.  I see the
value of
> > MET_PYTHON_LD is:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > but it needs a backslash and a space before the "-lpython2.7".  It
should
> > be:
> >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> -lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give it another try with that value.
> >
> > Julie
> >
> >
> > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1 via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Still doesn't complete config:
> > >
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 11:21 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Thank you for attaching your config.log file.
> > >
> > > From your config.log file:
> > >
> > > > /usr/bin/ld: cannot find -lpython2.7
> > > > collect2: ld returned 1 exit status
> > > >
> > >
> > > and from the value of  MET_PYTHON_LD that you provided, I can
see that
> > > MET_PYTHON_LD does not contain all of the information that it
needs.
> In
> > > some cases, running "python-config --ldflags" is enough, but in
this
> > case,
> > > it is not.  In order to proceed, we need to find the location of
the
> > > libpython.a file or the libpython.so file.  Based on the
information
> from
> > > the output from running "python-config --cflags", I am going to
guess
> > that
> > > the libpython file lives in /software/depot/anaconda-2.4.0/lib
or in
> > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you please
check
> > those
> > > directories and see if you can find a libpython.a file or
libpython.so
> > > file?
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please set
> > > MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > >
> > > If you find it at /software/depot/anaconda-2.4.0/lib/python2.7,
then
> > please
> > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > >
> > > The value for MET_PYTHON_CC should be fine.
> > >
> > > Please try resetting MET_PYTHON_LD as described above and then
> > > reconfiguring and reinstalling MET.  Please let us know how it
goes.
> If
> > > that doesn't fix it, please send us the *config.log *and
*make.log*
> files
> > > from the top-level MET directory.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory, Contractor,
Code
> > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Here are my settings:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > --cflags`
> > > > [ramos at predict met-8.0_bugfix]$ export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > --ldflags`
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> -fno-strict-aliasing
> > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Gregory,
> > > >
> > > > We received your email to met-help last Friday, but haven't
had a
> > chance
> > > to
> > > > respond yet.
> > > >
> > > > I see that you're trying to compile MET using this version of
Python:
> > > >    /software/depot/anaconda-2.4.0/bin/python
> > > >
> > > > Before running the configure script for MET, you should set
the
> > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > > *export
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --cflags`*
> > > > *export
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > --ldflags`*
> > > >
> > > > And then rerun the MET configure command followed by:
> > > >  *  make clean install >& make.log*
> > > >
> > > > If that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > from the top-level MET directory.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > undefined reference to `PySys_SetArgv'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > undefined reference to `PyImport_ImportModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > undefined reference to `PyImport_ReloadModule'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > undefined reference to `PyErr_Occurred'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > undefined reference to `PyModule_GetDict'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > undefined reference to `PyString_FromString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > undefined reference to `PyDict_GetItem'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > undefined reference to `PyErr_PrintEx'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > In function `GlobalPython::initialize()':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > undefined reference to `Py_Initialize'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > In function `dataplane_from_numpy_array(_object*, _object*,
> > DataPlane&,
> > > > > Grid&, VarInfoPython&)':
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > undefined reference to `PyTuple_Size'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > undefined reference to `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > undefined reference to `PyObject_Type'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > VarInfoPython&)':
> > > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference
to
> > > > > `PyObject_GetAttrString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > `PyDict_GetItemString'
> > > > > python_dict.cc:(.text+0x167): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x17b): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x186): undefined reference to
> > `PyType_IsSubtype'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > `PyDict_GetItemString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict(_object*, int)':
> > > > > python_dict.cc:(.text+0x4d7): undefined reference to
`PyDict_Size'
> > > > > python_dict.cc:(.text+0x558): undefined reference to
`PyDict_Next'
> > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > `PyString_AsString'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > In function `dump_dict_value(_object*, int)':
> > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > `PyString_AsString'
> > > > > python_dict.cc:(.text+0x7dc): undefined reference to
`PyInt_AsLong'
> > > > > python_dict.cc:(.text+0x820): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x834): undefined reference to
`PyFloat_Type'
> > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > `PyType_IsSubtype'
> > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > `PyFloat_AsDouble'
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > > python_tuple.cc:(.text+0x1d): undefined reference to
`PyTuple_Size'
> > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > `PyTuple_GetItem'
> > > > > python_tuple.cc:(.text+0x103): undefined reference to
> `PyInt_AsLong'
> > > > > collect2: error: ld returned 1 exit status
> > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > make[5]: Leaving directory
> > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > make[4]: *** [all-recursive] Error 1
> > > > > make[4]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > make[3]: *** [all-recursive] Error 1
> > > > > make[3]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > make[2]: *** [all-recursive] Error 1
> > > > > make[2]: Leaving directory `/software/depot/met/met-
8.0_bugfix/src'
> > > > > make[1]: *** [all-recursive] Error 1
> > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > make: *** [all] Error 2
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > > with
> > > > > Python support
> > > > >
> > > > > Greetings,
> > > > >
> > > > > This message has been automatically generated in response to
the
> > > creation
> > > > > of a trouble ticket regarding:
> > > > >         "Trying to build MET 8.0 with Python support",
> > > > > a summary of which appears below.
> > > > >
> > > > > There is no need to reply to this message right now.  Your
ticket
> has
> > > > been
> > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > >
> > > > > Please include the string:
> > > > >
> > > > >          [rt.rap.ucar.edu #89046]
> > > > >
> > > > > in the subject line of all future correspondence about this
issue.
> To
> > > do
> > > > > so, you may reply to this message.
> > > > >
> > > > > For more information, please see:
> > > > >
> > > > > MET Online Tutorial:
> > > > >
> > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > >
> > > > > MET Users Guide:
> > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > >
> > > > > MET FAQs:
> > > > >    https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > >
> > > > > MET-Help Email Archive:
> > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > >
> > > > >                         Thank you,
> > > > >                         met_help at ucar.edu
> > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > I successfully built MET 8.0, but the user needs Python
support. We
> > use
> > > > > modules here. I noticed your build_script can use modules.
> > > > >
> > > > > We use modules here too:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > Currently Loaded Modulefiles:
> > > > >   1) python/anaconda-2.4.0
> > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > I set the Python variable, but the build is not finding
Python.h
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > >
> > > > > Can you provide some help in building MET with Python
support?
> > > > >
> > > > >
> > > > > Greg Ramos
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 15:20:14 2019

Hi Greg.

This error:

> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: C++ compiler cannot create executables
> See `config.log' for more details

is not indicative of the problem.  Could you please attach the
config.log
file?

Thanks!

Julie

On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I hope this ends up helping others. I have installed MET since 5.0,
but
> this is the first time someone has asked for Python support.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 1:33 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Thank you, Greg.  It looks like the libpython2.7.so exists at
> /software/depot/anaconda-2.4.0/lib and not at
> /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> MET_PYTHON_LD in the following way:
>
> export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> Please give that a try and reconfigure and reinstall MET.  Please
let us
> know how it goes.
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7 >
> > output-1
> > [ramos at maury2 ramos]$ unix2dos output-1
> > unix2dos: converting file output-1 to DOS format ...
> > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> > [ramos at maury2 ramos]$ unix2dos output-2
> > unix2dos: converting file output-2 to DOS format ...
> > [ramos at maury2 ramos]$
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 1:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Can you please run
> >
> > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> >
> > "ls /software/depot/anaconda-2.4.0/lib" and
> >
> > send me the output of those commands?
> >
> > Thanks,
> > Julie
> >
> >
> > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Is that what you were looking for?
> > >
> > >
> > > Gre
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 11:47 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Thanks for attaching your config.log file.  I see the
value
> of
> > > MET_PYTHON_LD is:
> > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > but it needs a backslash and a space before the "-lpython2.7".
It
> should
> > > be:
> > >
> > > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give it another try with that value.
> > >
> > > Julie
> > >
> > >
> > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Still doesn't complete config:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> -fno-strict-aliasing
> > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Thank you for attaching your config.log file.
> > > >
> > > > From your config.log file:
> > > >
> > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > collect2: ld returned 1 exit status
> > > > >
> > > >
> > > > and from the value of  MET_PYTHON_LD that you provided, I can
see
> that
> > > > MET_PYTHON_LD does not contain all of the information that it
needs.
> > In
> > > > some cases, running "python-config --ldflags" is enough, but
in this
> > > case,
> > > > it is not.  In order to proceed, we need to find the location
of the
> > > > libpython.a file or the libpython.so file.  Based on the
information
> > from
> > > > the output from running "python-config --cflags", I am going
to guess
> > > that
> > > > the libpython file lives in /software/depot/anaconda-2.4.0/lib
or in
> > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please check
> > > those
> > > > directories and see if you can find a libpython.a file or
> libpython.so
> > > > file?
> > > >
> > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please set
> > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > >
> > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7, then
> > > please
> > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > > >
> > > > The value for MET_PYTHON_CC should be fine.
> > > >
> > > > Please try resetting MET_PYTHON_LD as described above and then
> > > > reconfiguring and reinstalling MET.  Please let us know how it
goes.
> > If
> > > > that doesn't fix it, please send us the *config.log *and
*make.log*
> > files
> > > > from the top-level MET directory.
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor, Code
> > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Here are my settings:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > --cflags`
> > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > --ldflags`
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -fno-strict-aliasing
> > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Gregory,
> > > > >
> > > > > We received your email to met-help last Friday, but haven't
had a
> > > chance
> > > > to
> > > > > respond yet.
> > > > >
> > > > > I see that you're trying to compile MET using this version
of
> Python:
> > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > >
> > > > > Before running the configure script for MET, you should set
the
> > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > > > *export
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > --cflags`*
> > > > > *export
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > --ldflags`*
> > > > >
> > > > > And then rerun the MET configure command followed by:
> > > > >  *  make clean install >& make.log*
> > > > >
> > > > > If that doesn't fix it, please send us the *config.log *and
> > *make.log*
> > > > > files
> > > > > from the top-level MET directory.
> > > > >
> > > > > Thanks,
> > > > > John
> > > > >
> > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > 7501.1
> > > > > via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > undefined reference to `PyErr_Occurred'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > undefined reference to `PySys_SetArgv'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > undefined reference to `PyImport_ImportModule'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > undefined reference to `PyErr_Occurred'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > undefined reference to `PyModule_GetDict'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > In function `GlobalPython::initialize()':
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > undefined reference to `Py_Initialize'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > DataPlane&,
> > > > > > Grid&, VarInfoPython&)':
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > undefined reference to `PyTuple_Size'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > undefined reference to `PyObject_Type'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > > VarInfoPython&)':
> > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference
to
> > > > > > `PyObject_GetAttrString'
> > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference
to
> > > > > > `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > > python_dict.cc:(.text+0x167): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > `PyType_IsSubtype'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dump_dict(_object*, int)':
> > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> `PyDict_Size'
> > > > > > python_dict.cc:(.text+0x558): undefined reference to
> `PyDict_Next'
> > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > `PyString_AsString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > `PyString_AsString'
> > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> `PyInt_AsLong'
> > > > > > python_dict.cc:(.text+0x820): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x834): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > `PyType_IsSubtype'
> > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > `PyFloat_AsDouble'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> `PyTuple_Size'
> > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > `PyTuple_GetItem'
> > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > `PyInt_AsLong'
> > > > > > collect2: error: ld returned 1 exit status
> > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > make[5]: Leaving directory
> > > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > make[4]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > make[3]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > make[2]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src'
> > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > > make: *** [all] Error 2
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > > with
> > > > > > Python support
> > > > > >
> > > > > > Greetings,
> > > > > >
> > > > > > This message has been automatically generated in response
to the
> > > > creation
> > > > > > of a trouble ticket regarding:
> > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > a summary of which appears below.
> > > > > >
> > > > > > There is no need to reply to this message right now.  Your
ticket
> > has
> > > > > been
> > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > >
> > > > > > Please include the string:
> > > > > >
> > > > > >          [rt.rap.ucar.edu #89046]
> > > > > >
> > > > > > in the subject line of all future correspondence about
this
> issue.
> > To
> > > > do
> > > > > > so, you may reply to this message.
> > > > > >
> > > > > > For more information, please see:
> > > > > >
> > > > > > MET Online Tutorial:
> > > > > >
> > > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > >
> > > > > > MET Users Guide:
> > > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > > >
> > > > > > MET FAQs:
> > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > >
> > > > > > MET-Help Email Archive:
> > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > >
> > > > > >                         Thank you,
> > > > > >                         met_help at ucar.edu
> > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > I successfully built MET 8.0, but the user needs Python
support.
> We
> > > use
> > > > > > modules here. I noticed your build_script can use modules.
> > > > > >
> > > > > > We use modules here too:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > Currently Loaded Modulefiles:
> > > > > >   1) python/anaconda-2.4.0
> > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > I set the Python variable, but the build is not finding
Python.h
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > >
> > > > > > Can you provide some help in building MET with Python
support?
> > > > > >
> > > > > >
> > > > > > Greg Ramos
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 15:22:59 2019

OK, it is attached.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 2:20 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.

This error:

> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: C++ compiler cannot create executables
> See `config.log' for more details

is not indicative of the problem.  Could you please attach the
config.log
file?

Thanks!

Julie

On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I hope this ends up helping others. I have installed MET since 5.0,
but
> this is the first time someone has asked for Python support.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 1:33 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Thank you, Greg.  It looks like the libpython2.7.so exists at
> /software/depot/anaconda-2.4.0/lib and not at
> /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> MET_PYTHON_LD in the following way:
>
> export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
>
> Please give that a try and reconfigure and reinstall MET.  Please
let us
> know how it goes.
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7 >
> > output-1
> > [ramos at maury2 ramos]$ unix2dos output-1
> > unix2dos: converting file output-1 to DOS format ...
> > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> > [ramos at maury2 ramos]$ unix2dos output-2
> > unix2dos: converting file output-2 to DOS format ...
> > [ramos at maury2 ramos]$
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 1:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  Can you please run
> >
> > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> >
> > "ls /software/depot/anaconda-2.4.0/lib" and
> >
> > send me the output of those commands?
> >
> > Thanks,
> > Julie
> >
> >
> > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Is that what you were looking for?
> > >
> > >
> > > Gre
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 11:47 AM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Thanks for attaching your config.log file.  I see the
value
> of
> > > MET_PYTHON_LD is:
> > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > but it needs a backslash and a space before the "-lpython2.7".
It
> should
> > > be:
> > >
> > > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give it another try with that value.
> > >
> > > Julie
> > >
> > >
> > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory, Contractor,
Code
> > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Still doesn't complete config:
> > > >
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> -fno-strict-aliasing
> > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
-lpthread\
> > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > [ramos at predict met-8.0_bugfix]$
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Thank you for attaching your config.log file.
> > > >
> > > > From your config.log file:
> > > >
> > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > collect2: ld returned 1 exit status
> > > > >
> > > >
> > > > and from the value of  MET_PYTHON_LD that you provided, I can
see
> that
> > > > MET_PYTHON_LD does not contain all of the information that it
needs.
> > In
> > > > some cases, running "python-config --ldflags" is enough, but
in this
> > > case,
> > > > it is not.  In order to proceed, we need to find the location
of the
> > > > libpython.a file or the libpython.so file.  Based on the
information
> > from
> > > > the output from running "python-config --cflags", I am going
to guess
> > > that
> > > > the libpython file lives in /software/depot/anaconda-2.4.0/lib
or in
> > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please check
> > > those
> > > > directories and see if you can find a libpython.a file or
> libpython.so
> > > > file?
> > > >
> > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please set
> > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > >
> > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7, then
> > > please
> > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > > >
> > > > The value for MET_PYTHON_CC should be fine.
> > > >
> > > > Please try resetting MET_PYTHON_LD as described above and then
> > > > reconfiguring and reinstalling MET.  Please let us know how it
goes.
> > If
> > > > that doesn't fix it, please send us the *config.log *and
*make.log*
> > files
> > > > from the top-level MET directory.
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor, Code
> > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Here are my settings:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > --cflags`
> > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > --ldflags`
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -fno-strict-aliasing
> > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Gregory,
> > > > >
> > > > > We received your email to met-help last Friday, but haven't
had a
> > > chance
> > > > to
> > > > > respond yet.
> > > > >
> > > > > I see that you're trying to compile MET using this version
of
> Python:
> > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > >
> > > > > Before running the configure script for MET, you should set
the
> > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables using:
> > > > > *export
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > --cflags`*
> > > > > *export
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > --ldflags`*
> > > > >
> > > > > And then rerun the MET configure command followed by:
> > > > >  *  make clean install >& make.log*
> > > > >
> > > > > If that doesn't fix it, please send us the *config.log *and
> > *make.log*
> > > > > files
> > > > > from the top-level MET directory.
> > > > >
> > > > > Thanks,
> > > > > John
> > > > >
> > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > 7501.1
> > > > > via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > undefined reference to `PyErr_Occurred'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > undefined reference to `PySys_SetArgv'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > undefined reference to `PyImport_ImportModule'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > undefined reference to `PyErr_Occurred'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > undefined reference to `PyModule_GetDict'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > undefined reference to `PyString_FromString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > undefined reference to `PyDict_GetItem'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > undefined reference to `PyErr_PrintEx'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > In function `GlobalPython::initialize()':
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > undefined reference to `Py_Initialize'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > DataPlane&,
> > > > > > Grid&, VarInfoPython&)':
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > undefined reference to `PyTuple_Size'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > undefined reference to `PyObject_Type'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > > VarInfoPython&)':
> > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined reference
to
> > > > > > `PyObject_GetAttrString'
> > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined reference
to
> > > > > > `PyObject_GetAttrString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > > python_dict.cc:(.text+0x167): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > `PyType_IsSubtype'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > `PyDict_GetItemString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dump_dict(_object*, int)':
> > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> `PyDict_Size'
> > > > > > python_dict.cc:(.text+0x558): undefined reference to
> `PyDict_Next'
> > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > `PyString_AsString'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > `PyString_AsString'
> > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> `PyInt_AsLong'
> > > > > > python_dict.cc:(.text+0x820): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x834): undefined reference to
> `PyFloat_Type'
> > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > `PyType_IsSubtype'
> > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > `PyFloat_AsDouble'
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > In function `get_tuple_int_values(_object*, int&, int*)':
> > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> `PyTuple_Size'
> > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > `PyTuple_GetItem'
> > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > `PyInt_AsLong'
> > > > > > collect2: error: ld returned 1 exit status
> > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > make[5]: Leaving directory
> > > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > make[4]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > make[3]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > make[2]: Leaving directory
> `/software/depot/met/met-8.0_bugfix/src'
> > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > > make: *** [all] Error 2
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > > with
> > > > > > Python support
> > > > > >
> > > > > > Greetings,
> > > > > >
> > > > > > This message has been automatically generated in response
to the
> > > > creation
> > > > > > of a trouble ticket regarding:
> > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > a summary of which appears below.
> > > > > >
> > > > > > There is no need to reply to this message right now.  Your
ticket
> > has
> > > > > been
> > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > >
> > > > > > Please include the string:
> > > > > >
> > > > > >          [rt.rap.ucar.edu #89046]
> > > > > >
> > > > > > in the subject line of all future correspondence about
this
> issue.
> > To
> > > > do
> > > > > > so, you may reply to this message.
> > > > > >
> > > > > > For more information, please see:
> > > > > >
> > > > > > MET Online Tutorial:
> > > > > >
> > > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > >
> > > > > > MET Users Guide:
> > > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > > >
> > > > > > MET FAQs:
> > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > >
> > > > > > MET-Help Email Archive:
> > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > >
> > > > > >                         Thank you,
> > > > > >                         met_help at ucar.edu
> > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > I successfully built MET 8.0, but the user needs Python
support.
> We
> > > use
> > > > > > modules here. I noticed your build_script can use modules.
> > > > > >
> > > > > > We use modules here too:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > Currently Loaded Modulefiles:
> > > > > >   1) python/anaconda-2.4.0
> > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > I set the Python variable, but the build is not finding
Python.h
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > >
> > > > > > Can you provide some help in building MET with Python
support?
> > > > > >
> > > > > >
> > > > > > Greg Ramos
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 16:55:01 2019

Hi Greg.  There seems to be something strange going on with the
characters.  I usually don't see backslashes included in the error in
the
config.log file:

g++: unrecognized option '-Xlinker\'
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for
> Ada/C/ObjC but not for C++
> /usr/bin/ld: cannot find -lpython2.7\
> collect2: ld returned 1 exit status
>

Looking back on some notes, I believe I incorrectly told you to use
single
quotation marks in your setting of MET_PYTHON_LD.  Instead, please try
the
following:

export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic

My apologies.  That should do the trick.  Please let me know how it
goes.
If you have trouble, please pass on the config.log and make.log files.

Thanks,
Julie



On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> OK, it is attached.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 2:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.
>
> This error:
>
> > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > configure: error: C++ compiler cannot create executables
> > See `config.log' for more details
>
> is not indicative of the problem.  Could you please attach the
config.log
> file?
>
> Thanks!
>
> Julie
>
> On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I hope this ends up helping others. I have installed MET since
5.0,  but
> > this is the first time someone has asked for Python support.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 1:33 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > /software/depot/anaconda-2.4.0/lib and not at
> > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > MET_PYTHON_LD in the following way:
> >
> > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give that a try and reconfigure and reinstall MET.  Please
let us
> > know how it goes.
> >
> > Thanks,
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7
> >
> > > output-1
> > > [ramos at maury2 ramos]$ unix2dos output-1
> > > unix2dos: converting file output-1 to DOS format ...
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> > > [ramos at maury2 ramos]$ unix2dos output-2
> > > unix2dos: converting file output-2 to DOS format ...
> > > [ramos at maury2 ramos]$
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:20 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Can you please run
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib" and
> > >
> > > send me the output of those commands?
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Is that what you were looking for?
> > > >
> > > >
> > > > Gre
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the value
> > of
> > > > MET_PYTHON_LD is:
> > > >
> > > >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > but it needs a backslash and a space before the "-lpython2.7".
It
> > should
> > > > be:
> > > >
> > > > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > Please give it another try with that value.
> > > >
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor, Code
> > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Still doesn't complete config:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -fno-strict-aliasing
> > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> -lpthread\
> > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > >
> > > > > From your config.log file:
> > > > >
> > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > >
> > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > that
> > > > > MET_PYTHON_LD does not contain all of the information that
it
> needs.
> > > In
> > > > > some cases, running "python-config --ldflags" is enough, but
in
> this
> > > > case,
> > > > > it is not.  In order to proceed, we need to find the
location of
> the
> > > > > libpython.a file or the libpython.so file.  Based on the
> information
> > > from
> > > > > the output from running "python-config --cflags", I am going
to
> guess
> > > > that
> > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> in
> > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> check
> > > > those
> > > > > directories and see if you can find a libpython.a file or
> > libpython.so
> > > > > file?
> > > > >
> > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> set
> > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > >
> > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> then
> > > > please
> > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export
> MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> -export-dynamic"
> > > > >
> > > > > The value for MET_PYTHON_CC should be fine.
> > > > >
> > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > reconfiguring and reinstalling MET.  Please let us know how
it
> goes.
> > > If
> > > > > that doesn't fix it, please send us the *config.log *and
*make.log*
> > > files
> > > > > from the top-level MET directory.
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Here are my settings:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > --cflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > --ldflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Gregory,
> > > > > >
> > > > > > We received your email to met-help last Friday, but
haven't had a
> > > > chance
> > > > > to
> > > > > > respond yet.
> > > > > >
> > > > > > I see that you're trying to compile MET using this version
of
> > Python:
> > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > >
> > > > > > Before running the configure script for MET, you should
set the
> > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > *export
> > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --cflags`*
> > > > > > *export
> > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --ldflags`*
> > > > > >
> > > > > > And then rerun the MET configure command followed by:
> > > > > >  *  make clean install >& make.log*
> > > > > >
> > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > *make.log*
> > > > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > John
> > > > > >
> > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > 7501.1
> > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > In function `GlobalPython::initialize()':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > undefined reference to `Py_Initialize'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > DataPlane&,
> > > > > > > Grid&, VarInfoPython&)':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > undefined reference to `PyTuple_Size'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > undefined reference to `PyObject_Type'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > > > VarInfoPython&)':
> > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > `PyDict_Size'
> > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > `PyDict_Next'
> > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > `PyString_AsString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > `PyString_AsString'
> > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > `PyInt_AsLong'
> > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > `PyFloat_AsDouble'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > `PyTuple_Size'
> > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > `PyTuple_GetItem'
> > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > make[5]: Leaving directory
> > > > > > >
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > make[4]: Leaving directory
> > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > make[3]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > make[2]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > > > make: *** [all] Error 2
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > > with
> > > > > > > Python support
> > > > > > >
> > > > > > > Greetings,
> > > > > > >
> > > > > > > This message has been automatically generated in
response to
> the
> > > > > creation
> > > > > > > of a trouble ticket regarding:
> > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > a summary of which appears below.
> > > > > > >
> > > > > > > There is no need to reply to this message right now.
Your
> ticket
> > > has
> > > > > > been
> > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > >
> > > > > > > Please include the string:
> > > > > > >
> > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > >
> > > > > > > in the subject line of all future correspondence about
this
> > issue.
> > > To
> > > > > do
> > > > > > > so, you may reply to this message.
> > > > > > >
> > > > > > > For more information, please see:
> > > > > > >
> > > > > > > MET Online Tutorial:
> > > > > > >
> > > > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > >
> > > > > > > MET Users Guide:
> > > > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > >
> > > > > > > MET FAQs:
> > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > >
> > > > > > > MET-Help Email Archive:
> > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > >
> > > > > > >                         Thank you,
> > > > > > >                         met_help at ucar.edu
> > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > I successfully built MET 8.0, but the user needs Python
> support.
> > We
> > > > use
> > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > >
> > > > > > > We use modules here too:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > Currently Loaded Modulefiles:
> > > > > > >   1) python/anaconda-2.4.0
> > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > I set the Python variable, but the build is not finding
> Python.h
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > >
> > > > > > > Can you provide some help in building MET with Python
support?
> > > > > > >
> > > > > > >
> > > > > > > Greg Ramos
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 16:57:35 2019

Great, I'll give it a go in a minute. What are your business hours? Is
the Python CC variable OK?

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 3:55 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  There seems to be something strange going on with the
characters.  I usually don't see backslashes included in the error in
the
config.log file:

g++: unrecognized option '-Xlinker\'
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for
> Ada/C/ObjC but not for C++
> /usr/bin/ld: cannot find -lpython2.7\
> collect2: ld returned 1 exit status
>

Looking back on some notes, I believe I incorrectly told you to use
single
quotation marks in your setting of MET_PYTHON_LD.  Instead, please try
the
following:

export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic

My apologies.  That should do the trick.  Please let me know how it
goes.
If you have trouble, please pass on the config.log and make.log files.

Thanks,
Julie



On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> OK, it is attached.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 2:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.
>
> This error:
>
> > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > configure: error: C++ compiler cannot create executables
> > See `config.log' for more details
>
> is not indicative of the problem.  Could you please attach the
config.log
> file?
>
> Thanks!
>
> Julie
>
> On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I hope this ends up helping others. I have installed MET since
5.0,  but
> > this is the first time someone has asked for Python support.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 1:33 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > /software/depot/anaconda-2.4.0/lib and not at
> > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > MET_PYTHON_LD in the following way:
> >
> > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give that a try and reconfigure and reinstall MET.  Please
let us
> > know how it goes.
> >
> > Thanks,
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7
> >
> > > output-1
> > > [ramos at maury2 ramos]$ unix2dos output-1
> > > unix2dos: converting file output-1 to DOS format ...
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> > > [ramos at maury2 ramos]$ unix2dos output-2
> > > unix2dos: converting file output-2 to DOS format ...
> > > [ramos at maury2 ramos]$
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:20 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Can you please run
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib" and
> > >
> > > send me the output of those commands?
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Is that what you were looking for?
> > > >
> > > >
> > > > Gre
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the value
> > of
> > > > MET_PYTHON_LD is:
> > > >
> > > >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > but it needs a backslash and a space before the "-lpython2.7".
It
> > should
> > > > be:
> > > >
> > > > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > Please give it another try with that value.
> > > >
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor, Code
> > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Still doesn't complete config:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -fno-strict-aliasing
> > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> -lpthread\
> > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > >
> > > > > From your config.log file:
> > > > >
> > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > >
> > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > that
> > > > > MET_PYTHON_LD does not contain all of the information that
it
> needs.
> > > In
> > > > > some cases, running "python-config --ldflags" is enough, but
in
> this
> > > > case,
> > > > > it is not.  In order to proceed, we need to find the
location of
> the
> > > > > libpython.a file or the libpython.so file.  Based on the
> information
> > > from
> > > > > the output from running "python-config --cflags", I am going
to
> guess
> > > > that
> > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> in
> > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> check
> > > > those
> > > > > directories and see if you can find a libpython.a file or
> > libpython.so
> > > > > file?
> > > > >
> > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> set
> > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > >
> > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> then
> > > > please
> > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export
> MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> -export-dynamic"
> > > > >
> > > > > The value for MET_PYTHON_CC should be fine.
> > > > >
> > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > reconfiguring and reinstalling MET.  Please let us know how
it
> goes.
> > > If
> > > > > that doesn't fix it, please send us the *config.log *and
*make.log*
> > > files
> > > > > from the top-level MET directory.
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Here are my settings:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > --cflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > --ldflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Gregory,
> > > > > >
> > > > > > We received your email to met-help last Friday, but
haven't had a
> > > > chance
> > > > > to
> > > > > > respond yet.
> > > > > >
> > > > > > I see that you're trying to compile MET using this version
of
> > Python:
> > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > >
> > > > > > Before running the configure script for MET, you should
set the
> > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > *export
> > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --cflags`*
> > > > > > *export
> > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --ldflags`*
> > > > > >
> > > > > > And then rerun the MET configure command followed by:
> > > > > >  *  make clean install >& make.log*
> > > > > >
> > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > *make.log*
> > > > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > John
> > > > > >
> > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > 7501.1
> > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > In function `GlobalPython::initialize()':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > undefined reference to `Py_Initialize'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > DataPlane&,
> > > > > > > Grid&, VarInfoPython&)':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > undefined reference to `PyTuple_Size'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > undefined reference to `PyObject_Type'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > > > VarInfoPython&)':
> > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > `PyDict_Size'
> > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > `PyDict_Next'
> > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > `PyString_AsString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > `PyString_AsString'
> > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > `PyInt_AsLong'
> > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > `PyFloat_AsDouble'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > `PyTuple_Size'
> > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > `PyTuple_GetItem'
> > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > make[5]: Leaving directory
> > > > > > >
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > make[4]: Leaving directory
> > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > make[3]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > make[2]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > > > make: *** [all] Error 2
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > > with
> > > > > > > Python support
> > > > > > >
> > > > > > > Greetings,
> > > > > > >
> > > > > > > This message has been automatically generated in
response to
> the
> > > > > creation
> > > > > > > of a trouble ticket regarding:
> > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > a summary of which appears below.
> > > > > > >
> > > > > > > There is no need to reply to this message right now.
Your
> ticket
> > > has
> > > > > > been
> > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > >
> > > > > > > Please include the string:
> > > > > > >
> > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > >
> > > > > > > in the subject line of all future correspondence about
this
> > issue.
> > > To
> > > > > do
> > > > > > > so, you may reply to this message.
> > > > > > >
> > > > > > > For more information, please see:
> > > > > > >
> > > > > > > MET Online Tutorial:
> > > > > > >
> > > > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > >
> > > > > > > MET Users Guide:
> > > > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > >
> > > > > > > MET FAQs:
> > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > >
> > > > > > > MET-Help Email Archive:
> > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > >
> > > > > > >                         Thank you,
> > > > > > >                         met_help at ucar.edu
> > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > I successfully built MET 8.0, but the user needs Python
> support.
> > We
> > > > use
> > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > >
> > > > > > > We use modules here too:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > Currently Loaded Modulefiles:
> > > > > > >   1) python/anaconda-2.4.0
> > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > I set the Python variable, but the build is not finding
> Python.h
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > >
> > > > > > > Can you provide some help in building MET with Python
support?
> > > > > > >
> > > > > > >
> > > > > > > Greg Ramos
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 17:07:56 2019

Same thing:

[ramos at predict met-8.0_bugfix]$ ./configure
--prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
configure: error: in `/software/depot/met/met-8.0_bugfix':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
-L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl -lutil
-lm -Xlinker -export-dynamic
[ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
-I/software/depot/anaconda-2.4.0/include/python2.7
-I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
[ramos at predict met-8.0_bugfix]$

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 3:55 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Hi Greg.  There seems to be something strange going on with the
characters.  I usually don't see backslashes included in the error in
the
config.log file:

g++: unrecognized option '-Xlinker\'
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for
> Ada/C/ObjC but not for C++
> /usr/bin/ld: cannot find -lpython2.7\
> collect2: ld returned 1 exit status
>

Looking back on some notes, I believe I incorrectly told you to use
single
quotation marks in your setting of MET_PYTHON_LD.  Instead, please try
the
following:

export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
-lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic

My apologies.  That should do the trick.  Please let me know how it
goes.
If you have trouble, please pass on the config.log and make.log files.

Thanks,
Julie



On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> OK, it is attached.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 2:20 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.
>
> This error:
>
> > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > configure: error: C++ compiler cannot create executables
> > See `config.log' for more details
>
> is not indicative of the problem.  Could you please attach the
config.log
> file?
>
> Thanks!
>
> Julie
>
> On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > I hope this ends up helping others. I have installed MET since
5.0,  but
> > this is the first time someone has asked for Python support.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 1:33 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > /software/depot/anaconda-2.4.0/lib and not at
> > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > MET_PYTHON_LD in the following way:
> >
> > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> >
> > Please give that a try and reconfigure and reinstall MET.  Please
let us
> > know how it goes.
> >
> > Thanks,
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib/python2.7
> >
> > > output-1
> > > [ramos at maury2 ramos]$ unix2dos output-1
> > > unix2dos: converting file output-1 to DOS format ...
> > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
output-2
> > > [ramos at maury2 ramos]$ unix2dos output-2
> > > unix2dos: converting file output-2 to DOS format ...
> > > [ramos at maury2 ramos]$
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:20 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  Can you please run
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > >
> > > "ls /software/depot/anaconda-2.4.0/lib" and
> > >
> > > send me the output of those commands?
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > Is that what you were looking for?
> > > >
> > > >
> > > > Gre
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the value
> > of
> > > > MET_PYTHON_LD is:
> > > >
> > > >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > but it needs a backslash and a space before the "-lpython2.7".
It
> > should
> > > > be:
> > > >
> > > > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > Please give it another try with that value.
> > > >
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor, Code
> > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Still doesn't complete config:
> > > > >
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -fno-strict-aliasing
> > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> -lpthread\
> > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > [ramos at predict met-8.0_bugfix]$
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > >
> > > > > From your config.log file:
> > > > >
> > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > collect2: ld returned 1 exit status
> > > > > >
> > > > >
> > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > that
> > > > > MET_PYTHON_LD does not contain all of the information that
it
> needs.
> > > In
> > > > > some cases, running "python-config --ldflags" is enough, but
in
> this
> > > > case,
> > > > > it is not.  In order to proceed, we need to find the
location of
> the
> > > > > libpython.a file or the libpython.so file.  Based on the
> information
> > > from
> > > > > the output from running "python-config --cflags", I am going
to
> guess
> > > > that
> > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> in
> > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> check
> > > > those
> > > > > directories and see if you can find a libpython.a file or
> > libpython.so
> > > > > file?
> > > > >
> > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> set
> > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib\
> > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > >
> > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> then
> > > > please
> > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > export
> MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> -export-dynamic"
> > > > >
> > > > > The value for MET_PYTHON_CC should be fine.
> > > > >
> > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > reconfiguring and reinstalling MET.  Please let us know how
it
> goes.
> > > If
> > > > > that doesn't fix it, please send us the *config.log *and
*make.log*
> > > files
> > > > > from the top-level MET directory.
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Here are my settings:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > --cflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > --ldflags`
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Gregory,
> > > > > >
> > > > > > We received your email to met-help last Friday, but
haven't had a
> > > > chance
> > > > > to
> > > > > > respond yet.
> > > > > >
> > > > > > I see that you're trying to compile MET using this version
of
> > Python:
> > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > >
> > > > > > Before running the configure script for MET, you should
set the
> > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > *export
> > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --cflags`*
> > > > > > *export
> > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --ldflags`*
> > > > > >
> > > > > > And then rerun the MET configure command followed by:
> > > > > >  *  make clean install >& make.log*
> > > > > >
> > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > *make.log*
> > > > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > John
> > > > > >
> > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > 7501.1
> > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > I got beyond the initial error, here is where I am stuck
now:
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > undefined reference to `PyString_FromString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > In function `GlobalPython::initialize()':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > undefined reference to `Py_Initialize'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > DataPlane&,
> > > > > > > Grid&, VarInfoPython&)':
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > undefined reference to `PyTuple_Size'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > undefined reference to `PyObject_Type'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > In function `dataplane_from_xarray(_object*, DataPlane&,
Grid&,
> > > > > > > VarInfoPython&)':
> > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > `PyObject_GetAttrString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_double(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_string(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > `PyDict_GetItemString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > `PyDict_Size'
> > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > `PyDict_Next'
> > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > `PyString_AsString'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > `PyString_AsString'
> > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > `PyInt_AsLong'
> > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > `PyFloat_Type'
> > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > `PyType_IsSubtype'
> > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > `PyFloat_AsDouble'
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > `PyTuple_Size'
> > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > `PyTuple_GetItem'
> > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > make[5]: Leaving directory
> > > > > > >
> `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > make[4]: Leaving directory
> > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > make[3]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > make[2]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > make[1]: Leaving directory `/software/depot/met/met-
8.0_bugfix'
> > > > > > > make: *** [all] Error 2
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > > with
> > > > > > > Python support
> > > > > > >
> > > > > > > Greetings,
> > > > > > >
> > > > > > > This message has been automatically generated in
response to
> the
> > > > > creation
> > > > > > > of a trouble ticket regarding:
> > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > a summary of which appears below.
> > > > > > >
> > > > > > > There is no need to reply to this message right now.
Your
> ticket
> > > has
> > > > > > been
> > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > >
> > > > > > > Please include the string:
> > > > > > >
> > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > >
> > > > > > > in the subject line of all future correspondence about
this
> > issue.
> > > To
> > > > > do
> > > > > > > so, you may reply to this message.
> > > > > > >
> > > > > > > For more information, please see:
> > > > > > >
> > > > > > > MET Online Tutorial:
> > > > > > >
> > > > >
> https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > >
> > > > > > > MET Users Guide:
> > > > > > >    https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > >
> > > > > > > MET FAQs:
> > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > >
> > > > > > > MET-Help Email Archive:
> > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > >
> > > > > > >                         Thank you,
> > > > > > >                         met_help at ucar.edu
> > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > I successfully built MET 8.0, but the user needs Python
> support.
> > We
> > > > use
> > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > >
> > > > > > > We use modules here too:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > Currently Loaded Modulefiles:
> > > > > > >   1) python/anaconda-2.4.0
> > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > I set the Python variable, but the build is not finding
> Python.h
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > >
> > > > > > > Can you provide some help in building MET with Python
support?
> > > > > > >
> > > > > > >
> > > > > > > Greg Ramos
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Mon Feb 25 17:14:18 2019

>
> Is the Python CC variable OK?


Yes, because it is executing a command, so it needs those backticks.

What are your business hours?
>

They vary.  I am in the office later than usual today.

We are making progress and have move on to a new error:

configure:5097: ./conftest
> ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> cannot open shared object file: No such file or directory
>

Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
using the following command and try reconfiguring and reinstalling:

export LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}

Please let us know how it goes.

Thanks,
Julie




On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Same thing:
>
> [ramos at predict met-8.0_bugfix]$ ./configure
> --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis
> --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil -lm
> -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 3:55 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  There seems to be something strange going on with the
> characters.  I usually don't see backslashes included in the error
in the
> config.log file:
>
> g++: unrecognized option '-Xlinker\'
> > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid for
> > Ada/C/ObjC but not for C++
> > /usr/bin/ld: cannot find -lpython2.7\
> > collect2: ld returned 1 exit status
> >
>
> Looking back on some notes, I believe I incorrectly told you to use
single
> quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try the
> following:
>
> export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
>
> My apologies.  That should do the trick.  Please let me know how it
goes.
> If you have trouble, please pass on the config.log and make.log
files.
>
> Thanks,
> Julie
>
>
>
> On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > OK, it is attached.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 2:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.
> >
> > This error:
> >
> > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > configure: error: C++ compiler cannot create executables
> > > See `config.log' for more details
> >
> > is not indicative of the problem.  Could you please attach the
config.log
> > file?
> >
> > Thanks!
> >
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I hope this ends up helping others. I have installed MET since
5.0,
> but
> > > this is the first time someone has asked for Python support.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:33 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > /software/depot/anaconda-2.4.0/lib and not at
> > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > > MET_PYTHON_LD in the following way:
> > >
> > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give that a try and reconfigure and reinstall MET.
Please let
> us
> > > know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > [ramos at maury2 ramos]$ ls
> /software/depot/anaconda-2.4.0/lib/python2.7
> > >
> > > > output-1
> > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > unix2dos: converting file output-1 to DOS format ...
> > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
> output-2
> > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > unix2dos: converting file output-2 to DOS format ...
> > > > [ramos at maury2 ramos]$
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Can you please run
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > >
> > > > send me the output of those commands?
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Is that what you were looking for?
> > > > >
> > > > >
> > > > > Gre
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the
> value
> > > of
> > > > > MET_PYTHON_LD is:
> > > > >
> > > > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > but it needs a backslash and a space before the "-
lpython2.7".  It
> > > should
> > > > > be:
> > > > >
> > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > Please give it another try with that value.
> > > > >
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Still doesn't complete config:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> > -lpthread\
> > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > >
> > > > > > From your config.log file:
> > > > > >
> > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > collect2: ld returned 1 exit status
> > > > > > >
> > > > > >
> > > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > > that
> > > > > > MET_PYTHON_LD does not contain all of the information that
it
> > needs.
> > > > In
> > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > this
> > > > > case,
> > > > > > it is not.  In order to proceed, we need to find the
location of
> > the
> > > > > > libpython.a file or the libpython.so file.  Based on the
> > information
> > > > from
> > > > > > the output from running "python-config --cflags", I am
going to
> > guess
> > > > > that
> > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> > in
> > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > check
> > > > > those
> > > > > > directories and see if you can find a libpython.a file or
> > > libpython.so
> > > > > > file?
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> > set
> > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > then
> > > > > please
> > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export
> > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > -export-dynamic"
> > > > > >
> > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > >
> > > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > goes.
> > > > If
> > > > > > that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Here are my settings:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > --cflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > > --ldflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Gregory,
> > > > > > >
> > > > > > > We received your email to met-help last Friday, but
haven't
> had a
> > > > > chance
> > > > > > to
> > > > > > > respond yet.
> > > > > > >
> > > > > > > I see that you're trying to compile MET using this
version of
> > > Python:
> > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > >
> > > > > > > Before running the configure script for MET, you should
set the
> > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > *export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --cflags`*
> > > > > > > *export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --ldflags`*
> > > > > > >
> > > > > > > And then rerun the MET configure command followed by:
> > > > > > >  *  make clean install >& make.log*
> > > > > > >
> > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > *make.log*
> > > > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > John
> > > > > > >
> > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > > Code
> > > > > > 7501.1
> > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > I got beyond the initial error, here is where I am
stuck now:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > DataPlane&,
> > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> Grid&,
> > > > > > > > VarInfoPython&)':
> > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > `PyDict_Size'
> > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > `PyDict_Next'
> > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > `PyFloat_AsDouble'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > `PyTuple_Size'
> > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > `PyTuple_GetItem'
> > > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > make[5]: Leaving directory
> > > > > > > >
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > make[4]: Leaving directory
> > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > make[3]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > make[2]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > make[1]: Leaving directory
> `/software/depot/met/met-8.0_bugfix'
> > > > > > > > make: *** [all] Error 2
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > > with
> > > > > > > > Python support
> > > > > > > >
> > > > > > > > Greetings,
> > > > > > > >
> > > > > > > > This message has been automatically generated in
response to
> > the
> > > > > > creation
> > > > > > > > of a trouble ticket regarding:
> > > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > > a summary of which appears below.
> > > > > > > >
> > > > > > > > There is no need to reply to this message right now.
Your
> > ticket
> > > > has
> > > > > > > been
> > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > >
> > > > > > > > Please include the string:
> > > > > > > >
> > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > >
> > > > > > > > in the subject line of all future correspondence about
this
> > > issue.
> > > > To
> > > > > > do
> > > > > > > > so, you may reply to this message.
> > > > > > > >
> > > > > > > > For more information, please see:
> > > > > > > >
> > > > > > > > MET Online Tutorial:
> > > > > > > >
> > > > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > >
> > > > > > > > MET Users Guide:
> > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > >
> > > > > > > > MET FAQs:
> > > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > >
> > > > > > > > MET-Help Email Archive:
> > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > >
> > > > > > > >                         Thank you,
> > > > > > > >                         met_help at ucar.edu
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > support.
> > > We
> > > > > use
> > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > >
> > > > > > > > We use modules here too:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > Currently Loaded Modulefiles:
> > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > I set the Python variable, but the build is not
finding
> > Python.h
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > >
> > > > > > > > Can you provide some help in building MET with Python
> support?
> > > > > > > >
> > > > > > > >
> > > > > > > > Greg Ramos
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 17:30:11 2019

OK, see attached.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 4:14 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

>
> Is the Python CC variable OK?


Yes, because it is executing a command, so it needs those backticks.

What are your business hours?
>

They vary.  I am in the office later than usual today.

We are making progress and have move on to a new error:

configure:5097: ./conftest
> ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> cannot open shared object file: No such file or directory
>

Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
using the following command and try reconfiguring and reinstalling:

export LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}

Please let us know how it goes.

Thanks,
Julie




On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Same thing:
>
> [ramos at predict met-8.0_bugfix]$ ./configure
> --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis
> --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil -lm
> -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 3:55 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  There seems to be something strange going on with the
> characters.  I usually don't see backslashes included in the error
in the
> config.log file:
>
> g++: unrecognized option '-Xlinker\'
> > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid for
> > Ada/C/ObjC but not for C++
> > /usr/bin/ld: cannot find -lpython2.7\
> > collect2: ld returned 1 exit status
> >
>
> Looking back on some notes, I believe I incorrectly told you to use
single
> quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try the
> following:
>
> export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
>
> My apologies.  That should do the trick.  Please let me know how it
goes.
> If you have trouble, please pass on the config.log and make.log
files.
>
> Thanks,
> Julie
>
>
>
> On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > OK, it is attached.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 2:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.
> >
> > This error:
> >
> > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > configure: error: C++ compiler cannot create executables
> > > See `config.log' for more details
> >
> > is not indicative of the problem.  Could you please attach the
config.log
> > file?
> >
> > Thanks!
> >
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I hope this ends up helping others. I have installed MET since
5.0,
> but
> > > this is the first time someone has asked for Python support.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:33 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > /software/depot/anaconda-2.4.0/lib and not at
> > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > > MET_PYTHON_LD in the following way:
> > >
> > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give that a try and reconfigure and reinstall MET.
Please let
> us
> > > know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > [ramos at maury2 ramos]$ ls
> /software/depot/anaconda-2.4.0/lib/python2.7
> > >
> > > > output-1
> > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > unix2dos: converting file output-1 to DOS format ...
> > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
> output-2
> > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > unix2dos: converting file output-2 to DOS format ...
> > > > [ramos at maury2 ramos]$
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Can you please run
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > >
> > > > send me the output of those commands?
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Is that what you were looking for?
> > > > >
> > > > >
> > > > > Gre
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the
> value
> > > of
> > > > > MET_PYTHON_LD is:
> > > > >
> > > > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > but it needs a backslash and a space before the "-
lpython2.7".  It
> > > should
> > > > > be:
> > > > >
> > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > Please give it another try with that value.
> > > > >
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Still doesn't complete config:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> > -lpthread\
> > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > >
> > > > > > From your config.log file:
> > > > > >
> > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > collect2: ld returned 1 exit status
> > > > > > >
> > > > > >
> > > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > > that
> > > > > > MET_PYTHON_LD does not contain all of the information that
it
> > needs.
> > > > In
> > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > this
> > > > > case,
> > > > > > it is not.  In order to proceed, we need to find the
location of
> > the
> > > > > > libpython.a file or the libpython.so file.  Based on the
> > information
> > > > from
> > > > > > the output from running "python-config --cflags", I am
going to
> > guess
> > > > > that
> > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> > in
> > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > check
> > > > > those
> > > > > > directories and see if you can find a libpython.a file or
> > > libpython.so
> > > > > > file?
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> > set
> > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > then
> > > > > please
> > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export
> > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > -export-dynamic"
> > > > > >
> > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > >
> > > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > goes.
> > > > If
> > > > > > that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Here are my settings:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > --cflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > > --ldflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Gregory,
> > > > > > >
> > > > > > > We received your email to met-help last Friday, but
haven't
> had a
> > > > > chance
> > > > > > to
> > > > > > > respond yet.
> > > > > > >
> > > > > > > I see that you're trying to compile MET using this
version of
> > > Python:
> > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > >
> > > > > > > Before running the configure script for MET, you should
set the
> > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > *export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --cflags`*
> > > > > > > *export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --ldflags`*
> > > > > > >
> > > > > > > And then rerun the MET configure command followed by:
> > > > > > >  *  make clean install >& make.log*
> > > > > > >
> > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > *make.log*
> > > > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > John
> > > > > > >
> > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > > Code
> > > > > > 7501.1
> > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > I got beyond the initial error, here is where I am
stuck now:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > DataPlane&,
> > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> Grid&,
> > > > > > > > VarInfoPython&)':
> > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > `PyDict_Size'
> > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > `PyDict_Next'
> > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > `PyFloat_AsDouble'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > `PyTuple_Size'
> > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > `PyTuple_GetItem'
> > > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > make[5]: Leaving directory
> > > > > > > >
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > make[4]: Leaving directory
> > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > make[3]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > make[2]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > make[1]: Leaving directory
> `/software/depot/met/met-8.0_bugfix'
> > > > > > > > make: *** [all] Error 2
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > > with
> > > > > > > > Python support
> > > > > > > >
> > > > > > > > Greetings,
> > > > > > > >
> > > > > > > > This message has been automatically generated in
response to
> > the
> > > > > > creation
> > > > > > > > of a trouble ticket regarding:
> > > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > > a summary of which appears below.
> > > > > > > >
> > > > > > > > There is no need to reply to this message right now.
Your
> > ticket
> > > > has
> > > > > > > been
> > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > >
> > > > > > > > Please include the string:
> > > > > > > >
> > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > >
> > > > > > > > in the subject line of all future correspondence about
this
> > > issue.
> > > > To
> > > > > > do
> > > > > > > > so, you may reply to this message.
> > > > > > > >
> > > > > > > > For more information, please see:
> > > > > > > >
> > > > > > > > MET Online Tutorial:
> > > > > > > >
> > > > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > >
> > > > > > > > MET Users Guide:
> > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > >
> > > > > > > > MET FAQs:
> > > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > >
> > > > > > > > MET-Help Email Archive:
> > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > >
> > > > > > > >                         Thank you,
> > > > > > > >                         met_help at ucar.edu
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > support.
> > > We
> > > > > use
> > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > >
> > > > > > > > We use modules here too:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > Currently Loaded Modulefiles:
> > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > I set the Python variable, but the build is not
finding
> > Python.h
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > >
> > > > > > > > Can you provide some help in building MET with Python
> support?
> > > > > > > >
> > > > > > > >
> > > > > > > > Greg Ramos
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 17:40:15 2019

Somehow along the line my modules disappeared. I noticed in the
config.log it was picking up the system gcc. I loaded a newer very and
it seems to finish with a good config now. I am running amek now.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 4:14 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

>
> Is the Python CC variable OK?


Yes, because it is executing a command, so it needs those backticks.

What are your business hours?
>

They vary.  I am in the office later than usual today.

We are making progress and have move on to a new error:

configure:5097: ./conftest
> ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> cannot open shared object file: No such file or directory
>

Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
using the following command and try reconfiguring and reinstalling:

export LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}

Please let us know how it goes.

Thanks,
Julie




On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Same thing:
>
> [ramos at predict met-8.0_bugfix]$ ./configure
> --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis
> --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil -lm
> -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 3:55 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  There seems to be something strange going on with the
> characters.  I usually don't see backslashes included in the error
in the
> config.log file:
>
> g++: unrecognized option '-Xlinker\'
> > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid for
> > Ada/C/ObjC but not for C++
> > /usr/bin/ld: cannot find -lpython2.7\
> > collect2: ld returned 1 exit status
> >
>
> Looking back on some notes, I believe I incorrectly told you to use
single
> quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try the
> following:
>
> export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
>
> My apologies.  That should do the trick.  Please let me know how it
goes.
> If you have trouble, please pass on the config.log and make.log
files.
>
> Thanks,
> Julie
>
>
>
> On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > OK, it is attached.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 2:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.
> >
> > This error:
> >
> > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > configure: error: C++ compiler cannot create executables
> > > See `config.log' for more details
> >
> > is not indicative of the problem.  Could you please attach the
config.log
> > file?
> >
> > Thanks!
> >
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I hope this ends up helping others. I have installed MET since
5.0,
> but
> > > this is the first time someone has asked for Python support.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:33 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > /software/depot/anaconda-2.4.0/lib and not at
> > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > > MET_PYTHON_LD in the following way:
> > >
> > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give that a try and reconfigure and reinstall MET.
Please let
> us
> > > know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > [ramos at maury2 ramos]$ ls
> /software/depot/anaconda-2.4.0/lib/python2.7
> > >
> > > > output-1
> > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > unix2dos: converting file output-1 to DOS format ...
> > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
> output-2
> > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > unix2dos: converting file output-2 to DOS format ...
> > > > [ramos at maury2 ramos]$
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Can you please run
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > >
> > > > send me the output of those commands?
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Is that what you were looking for?
> > > > >
> > > > >
> > > > > Gre
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the
> value
> > > of
> > > > > MET_PYTHON_LD is:
> > > > >
> > > > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > but it needs a backslash and a space before the "-
lpython2.7".  It
> > > should
> > > > > be:
> > > > >
> > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > Please give it another try with that value.
> > > > >
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Still doesn't complete config:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> > -lpthread\
> > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > >
> > > > > > From your config.log file:
> > > > > >
> > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > collect2: ld returned 1 exit status
> > > > > > >
> > > > > >
> > > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > > that
> > > > > > MET_PYTHON_LD does not contain all of the information that
it
> > needs.
> > > > In
> > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > this
> > > > > case,
> > > > > > it is not.  In order to proceed, we need to find the
location of
> > the
> > > > > > libpython.a file or the libpython.so file.  Based on the
> > information
> > > > from
> > > > > > the output from running "python-config --cflags", I am
going to
> > guess
> > > > > that
> > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> > in
> > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > check
> > > > > those
> > > > > > directories and see if you can find a libpython.a file or
> > > libpython.so
> > > > > > file?
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> > set
> > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > then
> > > > > please
> > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export
> > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > -export-dynamic"
> > > > > >
> > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > >
> > > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > goes.
> > > > If
> > > > > > that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Here are my settings:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > --cflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > > --ldflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Gregory,
> > > > > > >
> > > > > > > We received your email to met-help last Friday, but
haven't
> had a
> > > > > chance
> > > > > > to
> > > > > > > respond yet.
> > > > > > >
> > > > > > > I see that you're trying to compile MET using this
version of
> > > Python:
> > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > >
> > > > > > > Before running the configure script for MET, you should
set the
> > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > *export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --cflags`*
> > > > > > > *export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --ldflags`*
> > > > > > >
> > > > > > > And then rerun the MET configure command followed by:
> > > > > > >  *  make clean install >& make.log*
> > > > > > >
> > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > *make.log*
> > > > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > John
> > > > > > >
> > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > > Code
> > > > > > 7501.1
> > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > I got beyond the initial error, here is where I am
stuck now:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > DataPlane&,
> > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> Grid&,
> > > > > > > > VarInfoPython&)':
> > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > `PyDict_Size'
> > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > `PyDict_Next'
> > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > `PyFloat_AsDouble'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > `PyTuple_Size'
> > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > `PyTuple_GetItem'
> > > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > make[5]: Leaving directory
> > > > > > > >
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > make[4]: Leaving directory
> > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > make[3]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > make[2]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > make[1]: Leaving directory
> `/software/depot/met/met-8.0_bugfix'
> > > > > > > > make: *** [all] Error 2
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > > with
> > > > > > > > Python support
> > > > > > > >
> > > > > > > > Greetings,
> > > > > > > >
> > > > > > > > This message has been automatically generated in
response to
> > the
> > > > > > creation
> > > > > > > > of a trouble ticket regarding:
> > > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > > a summary of which appears below.
> > > > > > > >
> > > > > > > > There is no need to reply to this message right now.
Your
> > ticket
> > > > has
> > > > > > > been
> > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > >
> > > > > > > > Please include the string:
> > > > > > > >
> > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > >
> > > > > > > > in the subject line of all future correspondence about
this
> > > issue.
> > > > To
> > > > > > do
> > > > > > > > so, you may reply to this message.
> > > > > > > >
> > > > > > > > For more information, please see:
> > > > > > > >
> > > > > > > > MET Online Tutorial:
> > > > > > > >
> > > > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > >
> > > > > > > > MET Users Guide:
> > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > >
> > > > > > > > MET FAQs:
> > > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > >
> > > > > > > > MET-Help Email Archive:
> > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > >
> > > > > > > >                         Thank you,
> > > > > > > >                         met_help at ucar.edu
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > support.
> > > We
> > > > > use
> > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > >
> > > > > > > > We use modules here too:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > Currently Loaded Modulefiles:
> > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > I set the Python variable, but the build is not
finding
> > Python.h
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > >
> > > > > > > > Can you provide some help in building MET with Python
> support?
> > > > > > > >
> > > > > > > >
> > > > > > > > Greg Ramos
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Mon Feb 25 17:47:47 2019

attached is the make.log.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Monday, February 25, 2019 4:14 PM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

>
> Is the Python CC variable OK?


Yes, because it is executing a command, so it needs those backticks.

What are your business hours?
>

They vary.  I am in the office later than usual today.

We are making progress and have move on to a new error:

configure:5097: ./conftest
> ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> cannot open shared object file: No such file or directory
>

Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
using the following command and try reconfiguring and reinstalling:

export LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}

Please let us know how it goes.

Thanks,
Julie




On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> Same thing:
>
> [ramos at predict met-8.0_bugfix]$ ./configure
> --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2 --enable-
modis
> --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> configure: error: in `/software/depot/met/met-8.0_bugfix':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil -lm
> -Xlinker -export-dynamic
> [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> -I/software/depot/anaconda-2.4.0/include/python2.7
> -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> [ramos at predict met-8.0_bugfix]$
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 3:55 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Hi Greg.  There seems to be something strange going on with the
> characters.  I usually don't see backslashes included in the error
in the
> config.log file:
>
> g++: unrecognized option '-Xlinker\'
> > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid for
> > Ada/C/ObjC but not for C++
> > /usr/bin/ld: cannot find -lpython2.7\
> > collect2: ld returned 1 exit status
> >
>
> Looking back on some notes, I believe I incorrectly told you to use
single
> quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try the
> following:
>
> export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
>
> My apologies.  That should do the trick.  Please let me know how it
goes.
> If you have trouble, please pass on the config.log and make.log
files.
>
> Thanks,
> Julie
>
>
>
> On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > OK, it is attached.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 2:20 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.
> >
> > This error:
> >
> > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > configure: error: C++ compiler cannot create executables
> > > See `config.log' for more details
> >
> > is not indicative of the problem.  Could you please attach the
config.log
> > file?
> >
> > Thanks!
> >
> > Julie
> >
> > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > I hope this ends up helping others. I have installed MET since
5.0,
> but
> > > this is the first time someone has asked for Python support.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 1:33 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > /software/depot/anaconda-2.4.0/lib and not at
> > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to set
> > > MET_PYTHON_LD in the following way:
> > >
> > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> -lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > >
> > > Please give that a try and reconfigure and reinstall MET.
Please let
> us
> > > know how it goes.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > [ramos at maury2 ramos]$ ls
> /software/depot/anaconda-2.4.0/lib/python2.7
> > >
> > > > output-1
> > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > unix2dos: converting file output-1 to DOS format ...
> > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib >
> output-2
> > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > unix2dos: converting file output-2 to DOS format ...
> > > > [ramos at maury2 ramos]$
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.  Can you please run
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > >
> > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > >
> > > > send me the output of those commands?
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > >
> > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > Is that what you were looking for?
> > > > >
> > > > >
> > > > > Gre
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Thanks for attaching your config.log file.  I see
the
> value
> > > of
> > > > > MET_PYTHON_LD is:
> > > > >
> > > > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > but it needs a backslash and a space before the "-
lpython2.7".  It
> > > should
> > > > > be:
> > > > >
> > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > Please give it another try with that value.
> > > > >
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Still doesn't complete config:
> > > > > >
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -fno-strict-aliasing
> > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-lpython2.7\
> > -lpthread\
> > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > >
> > > > > > From your config.log file:
> > > > > >
> > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > collect2: ld returned 1 exit status
> > > > > > >
> > > > > >
> > > > > > and from the value of  MET_PYTHON_LD that you provided, I
can see
> > > that
> > > > > > MET_PYTHON_LD does not contain all of the information that
it
> > needs.
> > > > In
> > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > this
> > > > > case,
> > > > > > it is not.  In order to proceed, we need to find the
location of
> > the
> > > > > > libpython.a file or the libpython.so file.  Based on the
> > information
> > > > from
> > > > > > the output from running "python-config --cflags", I am
going to
> > guess
> > > > > that
> > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib or
> > in
> > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > check
> > > > > those
> > > > > > directories and see if you can find a libpython.a file or
> > > libpython.so
> > > > > > file?
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-2.4.0/lib, then
please
> > set
> > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > >
> > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > then
> > > > > please
> > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > export
> > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > -export-dynamic"
> > > > > >
> > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > >
> > > > > > Please try resetting MET_PYTHON_LD as described above and
then
> > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > goes.
> > > > If
> > > > > > that doesn't fix it, please send us the *config.log *and
> *make.log*
> > > > files
> > > > > > from the top-level MET directory.
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Here are my settings:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_CC=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > --cflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > MET_PYTHON_LD=`/software/depot/anaconda-
2.4.0/bin/python-config
> > > > > > --ldflags`
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-
dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Gregory,
> > > > > > >
> > > > > > > We received your email to met-help last Friday, but
haven't
> had a
> > > > > chance
> > > > > > to
> > > > > > > respond yet.
> > > > > > >
> > > > > > > I see that you're trying to compile MET using this
version of
> > > Python:
> > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > >
> > > > > > > Before running the configure script for MET, you should
set the
> > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > *export
> > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --cflags`*
> > > > > > > *export
> > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > --ldflags`*
> > > > > > >
> > > > > > > And then rerun the MET configure command followed by:
> > > > > > >  *  make clean install >& make.log*
> > > > > > >
> > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > *make.log*
> > > > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > John
> > > > > > >
> > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
Contractor,
> > > Code
> > > > > > 7501.1
> > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > I got beyond the initial error, here is where I am
stuck now:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > DataPlane&,
> > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> Grid&,
> > > > > > > > VarInfoPython&)':
> > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference to
> > > > > > > > `PyObject_GetAttrString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_int(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dict_lookup_dict(_object*, char const*)':
> > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > `PyDict_GetItemString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > `PyDict_Size'
> > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > `PyDict_Next'
> > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > `PyString_AsString'
> > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > `PyInt_AsLong'
> > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > `PyFloat_Type'
> > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > `PyType_IsSubtype'
> > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > `PyFloat_AsDouble'
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > `PyTuple_Size'
> > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > `PyTuple_GetItem'
> > > > > > > > python_tuple.cc:(.text+0x103): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > make[5]: Leaving directory
> > > > > > > >
> > `/software/depot/met/met-8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > make[4]: Leaving directory
> > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > make[3]: Leaving directory
> > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > make[2]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > make[1]: Leaving directory
> `/software/depot/met/met-8.0_bugfix'
> > > > > > > > make: *** [all] Error 2
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > > with
> > > > > > > > Python support
> > > > > > > >
> > > > > > > > Greetings,
> > > > > > > >
> > > > > > > > This message has been automatically generated in
response to
> > the
> > > > > > creation
> > > > > > > > of a trouble ticket regarding:
> > > > > > > >         "Trying to build MET 8.0 with Python support",
> > > > > > > > a summary of which appears below.
> > > > > > > >
> > > > > > > > There is no need to reply to this message right now.
Your
> > ticket
> > > > has
> > > > > > > been
> > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > >
> > > > > > > > Please include the string:
> > > > > > > >
> > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > >
> > > > > > > > in the subject line of all future correspondence about
this
> > > issue.
> > > > To
> > > > > > do
> > > > > > > > so, you may reply to this message.
> > > > > > > >
> > > > > > > > For more information, please see:
> > > > > > > >
> > > > > > > > MET Online Tutorial:
> > > > > > > >
> > > > > >
> >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > >
> > > > > > > > MET Users Guide:
> > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > >
> > > > > > > > MET FAQs:
> > > > > > > >
https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > >
> > > > > > > > MET-Help Email Archive:
> > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > >
> > > > > > > >                         Thank you,
> > > > > > > >                         met_help at ucar.edu
> > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > support.
> > > We
> > > > > use
> > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > >
> > > > > > > > We use modules here too:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > Currently Loaded Modulefiles:
> > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > I set the Python variable, but the build is not
finding
> > Python.h
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > >
> > > > > > > > Can you provide some help in building MET with Python
> support?
> > > > > > > >
> > > > > > > >
> > > > > > > > Greg Ramos
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Tue Feb 26 08:49:29 2019

Thanks!  I don't see any problems in the make.log file.  Did you run
"make
install" as well? Did you receive all of the executables in the bin
directory that you expected?

Thanks,
Julie

On Mon, Feb 25, 2019 at 5:48 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> attached is the make.log.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 4:14 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> >
> > Is the Python CC variable OK?
>
>
> Yes, because it is executing a command, so it needs those backticks.
>
> What are your business hours?
> >
>
> They vary.  I am in the office later than usual today.
>
> We are making progress and have move on to a new error:
>
> configure:5097: ./conftest
> > ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> > cannot open shared object file: No such file or directory
> >
>
> Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
> using the following command and try reconfiguring and reinstalling:
>
> export
> LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}
>
> Please let us know how it goes.
>
> Thanks,
> Julie
>
>
>
>
> On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Same thing:
> >
> > [ramos at predict met-8.0_bugfix]$ ./configure
> > --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2
--enable-modis
> > --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > configure: error: cannot run C++ compiled programs.
> > If you meant to cross compile, use `--host'.
> > See `config.log' for more details
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil
> -lm
> > -Xlinker -export-dynamic
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 3:55 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  There seems to be something strange going on with the
> > characters.  I usually don't see backslashes included in the error
in the
> > config.log file:
> >
> > g++: unrecognized option '-Xlinker\'
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid
> for
> > > Ada/C/ObjC but not for C++
> > > /usr/bin/ld: cannot find -lpython2.7\
> > > collect2: ld returned 1 exit status
> > >
> >
> > Looking back on some notes, I believe I incorrectly told you to
use
> single
> > quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try
> the
> > following:
> >
> > export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> >
> > My apologies.  That should do the trick.  Please let me know how
it goes.
> > If you have trouble, please pass on the config.log and make.log
files.
> >
> > Thanks,
> > Julie
> >
> >
> >
> > On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > OK, it is attached.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 2:20 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.
> > >
> > > This error:
> > >
> > > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > > configure: error: C++ compiler cannot create executables
> > > > See `config.log' for more details
> > >
> > > is not indicative of the problem.  Could you please attach the
> config.log
> > > file?
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > I hope this ends up helping others. I have installed MET since
5.0,
> > but
> > > > this is the first time someone has asked for Python support.
> > > >
> > > > Greg
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:33 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > > /software/depot/anaconda-2.4.0/lib and not at
> > > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to
set
> > > > MET_PYTHON_LD in the following way:
> > > >
> > > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > Please give that a try and reconfigure and reinstall MET.
Please let
> > us
> > > > know how it goes.
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > > [ramos at maury2 ramos]$ ls
> > /software/depot/anaconda-2.4.0/lib/python2.7
> > > >
> > > > > output-1
> > > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > > unix2dos: converting file output-1 to DOS format ...
> > > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib
>
> > output-2
> > > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > > unix2dos: converting file output-2 to DOS format ...
> > > > > [ramos at maury2 ramos]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Can you please run
> > > > >
> > > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > > >
> > > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > > >
> > > > > send me the output of those commands?
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > 7501.1
> > > > > via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Is that what you were looking for?
> > > > > >
> > > > > >
> > > > > > Gre
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thanks for attaching your config.log file.  I
see the
> > value
> > > > of
> > > > > > MET_PYTHON_LD is:
> > > > > >
> > > > > >
> > > >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > >
> > > > > > but it needs a backslash and a space before the "-
lpython2.7".
> It
> > > > should
> > > > > > be:
> > > > > >
> > > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > >
> > > > > > Please give it another try with that value.
> > > > > >
> > > > > > Julie
> > > > > >
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Still doesn't complete config:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > -lpthread\
> > > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > > >
> > > > > > > From your config.log file:
> > > > > > >
> > > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > > collect2: ld returned 1 exit status
> > > > > > > >
> > > > > > >
> > > > > > > and from the value of  MET_PYTHON_LD that you provided,
I can
> see
> > > > that
> > > > > > > MET_PYTHON_LD does not contain all of the information
that it
> > > needs.
> > > > > In
> > > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > > this
> > > > > > case,
> > > > > > > it is not.  In order to proceed, we need to find the
location
> of
> > > the
> > > > > > > libpython.a file or the libpython.so file.  Based on the
> > > information
> > > > > from
> > > > > > > the output from running "python-config --cflags", I am
going to
> > > guess
> > > > > > that
> > > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib
> or
> > > in
> > > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > > check
> > > > > > those
> > > > > > > directories and see if you can find a libpython.a file
or
> > > > libpython.so
> > > > > > > file?
> > > > > > >
> > > > > > > If you find it at /software/depot/anaconda-2.4.0/lib,
then
> please
> > > set
> > > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > > -lpython2.7\
> > > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > > >
> > > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > > then
> > > > > > please
> > > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > > export
> > > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > > -export-dynamic"
> > > > > > >
> > > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > > >
> > > > > > > Please try resetting MET_PYTHON_LD as described above
and then
> > > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > > goes.
> > > > > If
> > > > > > > that doesn't fix it, please send us the *config.log *and
> > *make.log*
> > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Julie
> > > > > > >
> > > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
> Contractor,
> > > Code
> > > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > Here are my settings:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > >
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --cflags`
> > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > >
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > > --ldflags`
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -fno-strict-aliasing
> > > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker
> -export-dynamic
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply:
Trying to
> > build
> > > > MET
> > > > > > 8.0
> > > > > > > > with Python support
> > > > > > > >
> > > > > > > > Hi Gregory,
> > > > > > > >
> > > > > > > > We received your email to met-help last Friday, but
haven't
> > had a
> > > > > > chance
> > > > > > > to
> > > > > > > > respond yet.
> > > > > > > >
> > > > > > > > I see that you're trying to compile MET using this
version of
> > > > Python:
> > > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > > >
> > > > > > > > Before running the configure script for MET, you
should set
> the
> > > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > > *export
> > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > --cflags`*
> > > > > > > > *export
> > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > --ldflags`*
> > > > > > > >
> > > > > > > > And then rerun the MET configure command followed by:
> > > > > > > >  *  make clean install >& make.log*
> > > > > > > >
> > > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > > *make.log*
> > > > > > > > files
> > > > > > > > from the top-level MET directory.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > John
> > > > > > > >
> > > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
> Contractor,
> > > > Code
> > > > > > > 7501.1
> > > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > > >
> > > > > > > > >
> > > > > > > > > I got beyond the initial error, here is where I am
stuck
> now:
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > > DataPlane&,
> > > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> > Grid&,
> > > > > > > > > VarInfoPython&)':
> > > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference
> to
> > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference
> to
> > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_int(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > > `PyType_IsSubtype'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_dict(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > > `PyDict_Size'
> > > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > > `PyDict_Next'
> > > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > > `PyString_AsString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > > `PyString_AsString'
> > > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > > `PyType_IsSubtype'
> > > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > > `PyFloat_AsDouble'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > > `PyTuple_Size'
> > > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > > `PyTuple_GetItem'
> > > > > > > > > python_tuple.cc:(.text+0x103): undefined reference
to
> > > > > `PyInt_AsLong'
> > > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > > make[5]: Leaving directory
> > > > > > > > >
> > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > > make[4]: Leaving directory
> > > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > > make[3]: Leaving directory
> > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > > make[2]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > > make[1]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix'
> > > > > > > > > make: *** [all] Error 2
> > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > > with
> > > > > > > > > Python support
> > > > > > > > >
> > > > > > > > > Greetings,
> > > > > > > > >
> > > > > > > > > This message has been automatically generated in
response
> to
> > > the
> > > > > > > creation
> > > > > > > > > of a trouble ticket regarding:
> > > > > > > > >         "Trying to build MET 8.0 with Python
support",
> > > > > > > > > a summary of which appears below.
> > > > > > > > >
> > > > > > > > > There is no need to reply to this message right now.
Your
> > > ticket
> > > > > has
> > > > > > > > been
> > > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > > >
> > > > > > > > > Please include the string:
> > > > > > > > >
> > > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > > >
> > > > > > > > > in the subject line of all future correspondence
about this
> > > > issue.
> > > > > To
> > > > > > > do
> > > > > > > > > so, you may reply to this message.
> > > > > > > > >
> > > > > > > > > For more information, please see:
> > > > > > > > >
> > > > > > > > > MET Online Tutorial:
> > > > > > > > >
> > > > > > >
> > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > > >
> > > > > > > > > MET Users Guide:
> > > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > > >
> > > > > > > > > MET FAQs:
> > > > > > > > >
> https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > > >
> > > > > > > > > MET-Help Email Archive:
> > > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > > >
> > > > > > > > >                         Thank you,
> > > > > > > > >                         met_help at ucar.edu
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > > support.
> > > > We
> > > > > > use
> > > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > > >
> > > > > > > > > We use modules here too:
> > > > > > > > >
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > > Currently Loaded Modulefiles:
> > > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > >
> > > > > > > > > I set the Python variable, but the build is not
finding
> > > Python.h
> > > > > > > > >
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > >
> > > > > > > > > Can you provide some help in building MET with
Python
> > support?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Greg Ramos
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET 8.0 with Python support
From: Ramos, Mr. Gregory, Contractor, Code 7501.1
Time: Tue Feb 26 09:01:23 2019

I believe the software built, but since I don't know how to use it, I
will have to wait for my user. Yes, the executables were built. I will
have to wait for the user to do some testing. Thank you for all of
your help.

Greg

-----Original Message-----
From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
Sent: Tuesday, February 26, 2019 7:50 AM
To: Ramos, Mr. Gregory, Contractor, Code 7501.1
Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0 with Python support

Thanks!  I don't see any problems in the make.log file.  Did you run
"make
install" as well? Did you receive all of the executables in the bin
directory that you expected?

Thanks,
Julie

On Mon, Feb 25, 2019 at 5:48 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> attached is the make.log.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Monday, February 25, 2019 4:14 PM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> >
> > Is the Python CC variable OK?
>
>
> Yes, because it is executing a command, so it needs those backticks.
>
> What are your business hours?
> >
>
> They vary.  I am in the office later than usual today.
>
> We are making progress and have move on to a new error:
>
> configure:5097: ./conftest
> > ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> > cannot open shared object file: No such file or directory
> >
>
> Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
> using the following command and try reconfiguring and reinstalling:
>
> export
> LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}
>
> Please let us know how it goes.
>
> Thanks,
> Julie
>
>
>
>
> On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > Same thing:
> >
> > [ramos at predict met-8.0_bugfix]$ ./configure
> > --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2
--enable-modis
> > --enable-mode_graphics --enable-lidar2nc  --enable-python >
configure.log
> > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > configure: error: cannot run C++ compiled programs.
> > If you meant to cross compile, use `--host'.
> > See `config.log' for more details
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil
> -lm
> > -Xlinker -export-dynamic
> > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > -I/software/depot/anaconda-2.4.0/include/python2.7
> > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > [ramos at predict met-8.0_bugfix]$
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 3:55 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > Hi Greg.  There seems to be something strange going on with the
> > characters.  I usually don't see backslashes included in the error
in the
> > config.log file:
> >
> > g++: unrecognized option '-Xlinker\'
> > > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid
> for
> > > Ada/C/ObjC but not for C++
> > > /usr/bin/ld: cannot find -lpython2.7\
> > > collect2: ld returned 1 exit status
> > >
> >
> > Looking back on some notes, I believe I incorrectly told you to
use
> single
> > quotation marks in your setting of MET_PYTHON_LD.  Instead, please
try
> the
> > following:
> >
> > export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> >
> > My apologies.  That should do the trick.  Please let me know how
it goes.
> > If you have trouble, please pass on the config.log and make.log
files.
> >
> > Thanks,
> > Julie
> >
> >
> >
> > On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > OK, it is attached.
> > >
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 2:20 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.
> > >
> > > This error:
> > >
> > > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > > configure: error: C++ compiler cannot create executables
> > > > See `config.log' for more details
> > >
> > > is not indicative of the problem.  Could you please attach the
> config.log
> > > file?
> > >
> > > Thanks!
> > >
> > > Julie
> > >
> > > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > I hope this ends up helping others. I have installed MET since
5.0,
> > but
> > > > this is the first time someone has asked for Python support.
> > > >
> > > > Greg
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 1:33 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Thank you, Greg.  It looks like the libpython2.7.so exists at
> > > > /software/depot/anaconda-2.4.0/lib and not at
> > > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to
set
> > > > MET_PYTHON_LD in the following way:
> > > >
> > > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> > -lpython2.7\
> > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > >
> > > > Please give that a try and reconfigure and reinstall MET.
Please let
> > us
> > > > know how it goes.
> > > >
> > > > Thanks,
> > > > Julie
> > > >
> > > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > > [ramos at maury2 ramos]$ ls
> > /software/depot/anaconda-2.4.0/lib/python2.7
> > > >
> > > > > output-1
> > > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > > unix2dos: converting file output-1 to DOS format ...
> > > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-2.4.0/lib
>
> > output-2
> > > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > > unix2dos: converting file output-2 to DOS format ...
> > > > > [ramos at maury2 ramos]$
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Hi Greg.  Can you please run
> > > > >
> > > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > > >
> > > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > > >
> > > > > send me the output of those commands?
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > >
> > > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > 7501.1
> > > > > via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > Is that what you were looking for?
> > > > > >
> > > > > >
> > > > > > Gre
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Thanks for attaching your config.log file.  I
see the
> > value
> > > > of
> > > > > > MET_PYTHON_LD is:
> > > > > >
> > > > > >
> > > >
> > MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > >
> > > > > > but it needs a backslash and a space before the "-
lpython2.7".
> It
> > > > should
> > > > > > be:
> > > > > >
> > > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > > -lpython2.7\
> > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > >
> > > > > > Please give it another try with that value.
> > > > > >
> > > > > > Julie
> > > > > >
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Still doesn't complete config:
> > > > > > >
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > -fno-strict-aliasing
> > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > -lpthread\
> > > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Greg.  Thank you for attaching your config.log file.
> > > > > > >
> > > > > > > From your config.log file:
> > > > > > >
> > > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > > collect2: ld returned 1 exit status
> > > > > > > >
> > > > > > >
> > > > > > > and from the value of  MET_PYTHON_LD that you provided,
I can
> see
> > > > that
> > > > > > > MET_PYTHON_LD does not contain all of the information
that it
> > > needs.
> > > > > In
> > > > > > > some cases, running "python-config --ldflags" is enough,
but in
> > > this
> > > > > > case,
> > > > > > > it is not.  In order to proceed, we need to find the
location
> of
> > > the
> > > > > > > libpython.a file or the libpython.so file.  Based on the
> > > information
> > > > > from
> > > > > > > the output from running "python-config --cflags", I am
going to
> > > guess
> > > > > > that
> > > > > > > the libpython file lives in /software/depot/anaconda-
2.4.0/lib
> or
> > > in
> > > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could you
please
> > > check
> > > > > > those
> > > > > > > directories and see if you can find a libpython.a file
or
> > > > libpython.so
> > > > > > > file?
> > > > > > >
> > > > > > > If you find it at /software/depot/anaconda-2.4.0/lib,
then
> please
> > > set
> > > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > > -lpython2.7\
> > > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic"
> > > > > > >
> > > > > > > If you find it at /software/depot/anaconda-
2.4.0/lib/python2.7,
> > > then
> > > > > > please
> > > > > > > set MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > > export
> > > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > > -export-dynamic"
> > > > > > >
> > > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > > >
> > > > > > > Please try resetting MET_PYTHON_LD as described above
and then
> > > > > > > reconfiguring and reinstalling MET.  Please let us know
how it
> > > goes.
> > > > > If
> > > > > > > that doesn't fix it, please send us the *config.log *and
> > *make.log*
> > > > > files
> > > > > > > from the top-level MET directory.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Julie
> > > > > > >
> > > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
> Contractor,
> > > Code
> > > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > Here are my settings:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > >
> MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > --cflags`
> > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > >
> MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > > --ldflags`
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -fno-strict-aliasing
> > > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker
> -export-dynamic
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply:
Trying to
> > build
> > > > MET
> > > > > > 8.0
> > > > > > > > with Python support
> > > > > > > >
> > > > > > > > Hi Gregory,
> > > > > > > >
> > > > > > > > We received your email to met-help last Friday, but
haven't
> > had a
> > > > > > chance
> > > > > > > to
> > > > > > > > respond yet.
> > > > > > > >
> > > > > > > > I see that you're trying to compile MET using this
version of
> > > > Python:
> > > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > > >
> > > > > > > > Before running the configure script for MET, you
should set
> the
> > > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment variables
using:
> > > > > > > > *export
> > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > --cflags`*
> > > > > > > > *export
> > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > --ldflags`*
> > > > > > > >
> > > > > > > > And then rerun the MET configure command followed by:
> > > > > > > >  *  make clean install >& make.log*
> > > > > > > >
> > > > > > > > If that doesn't fix it, please send us the *config.log
*and
> > > > > *make.log*
> > > > > > > > files
> > > > > > > > from the top-level MET directory.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > John
> > > > > > > >
> > > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
> Contractor,
> > > > Code
> > > > > > > 7501.1
> > > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > > >
> > > > > > > > >
> > > > > > > > > I got beyond the initial error, here is where I am
stuck
> now:
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > > In function `dataplane_from_numpy_array(_object*,
_object*,
> > > > > > DataPlane&,
> > > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> > Grid&,
> > > > > > > > > VarInfoPython&)':
> > > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
reference
> to
> > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
reference
> to
> > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_int(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x27): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x10a): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > > python_dict.cc:(.text+0x167): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x17b): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x186): undefined reference to
> > > > > > `PyType_IsSubtype'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x22c): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dict_lookup_dict(_object*, char
const*)':
> > > > > > > > > python_dict.cc:(.text+0x35d): undefined reference to
> > > > > > > > `PyDict_GetItemString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference to
> > > > `PyDict_Size'
> > > > > > > > > python_dict.cc:(.text+0x558): undefined reference to
> > > > `PyDict_Next'
> > > > > > > > > python_dict.cc:(.text+0x649): undefined reference to
> > > > > > > `PyString_AsString'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > > python_dict.cc:(.text+0x765): undefined reference to
> > > > > > > `PyString_AsString'
> > > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference to
> > > > `PyInt_AsLong'
> > > > > > > > > python_dict.cc:(.text+0x820): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x834): undefined reference to
> > > > `PyFloat_Type'
> > > > > > > > > python_dict.cc:(.text+0x83f): undefined reference to
> > > > > > `PyType_IsSubtype'
> > > > > > > > > python_dict.cc:(.text+0x85f): undefined reference to
> > > > > > `PyFloat_AsDouble'
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference to
> > > > `PyTuple_Size'
> > > > > > > > > python_tuple.cc:(.text+0xde): undefined reference to
> > > > > > `PyTuple_GetItem'
> > > > > > > > > python_tuple.cc:(.text+0x103): undefined reference
to
> > > > > `PyInt_AsLong'
> > > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > > make[5]: Leaving directory
> > > > > > > > >
> > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > > make[4]: Leaving directory
> > > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools/core'
> > > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > > make[3]: Leaving directory
> > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > > make[2]: Leaving directory
> > > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > > make[1]: Leaving directory
> > `/software/depot/met/met-8.0_bugfix'
> > > > > > > > > make: *** [all] Error 2
> > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu]
> > > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > > with
> > > > > > > > > Python support
> > > > > > > > >
> > > > > > > > > Greetings,
> > > > > > > > >
> > > > > > > > > This message has been automatically generated in
response
> to
> > > the
> > > > > > > creation
> > > > > > > > > of a trouble ticket regarding:
> > > > > > > > >         "Trying to build MET 8.0 with Python
support",
> > > > > > > > > a summary of which appears below.
> > > > > > > > >
> > > > > > > > > There is no need to reply to this message right now.
Your
> > > ticket
> > > > > has
> > > > > > > > been
> > > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > > >
> > > > > > > > > Please include the string:
> > > > > > > > >
> > > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > > >
> > > > > > > > > in the subject line of all future correspondence
about this
> > > > issue.
> > > > > To
> > > > > > > do
> > > > > > > > > so, you may reply to this message.
> > > > > > > > >
> > > > > > > > > For more information, please see:
> > > > > > > > >
> > > > > > > > > MET Online Tutorial:
> > > > > > > > >
> > > > > > >
> > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > > >
> > > > > > > > > MET Users Guide:
> > > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > > >
> > > > > > > > > MET FAQs:
> > > > > > > > >
> https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > > >
> > > > > > > > > MET-Help Email Archive:
> > > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > > >
> > > > > > > > >                         Thank you,
> > > > > > > > >                         met_help at ucar.edu
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >
>
-------------------------------------------------------------------------
> > > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > > support.
> > > > We
> > > > > > use
> > > > > > > > > modules here. I noticed your build_script can use
modules.
> > > > > > > > >
> > > > > > > > > We use modules here too:
> > > > > > > > >
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > > Currently Loaded Modulefiles:
> > > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > >
> > > > > > > > > I set the Python variable, but the build is not
finding
> > > Python.h
> > > > > > > > >
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > >
> > > > > > > > > Can you provide some help in building MET with
Python
> > support?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Greg Ramos
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>



------------------------------------------------
Subject: Trying to build MET 8.0 with Python support
From: Julie Prestopnik
Time: Tue Feb 26 09:16:14 2019

You're welcome!  I'm so glad the executables were built.  I'll go
ahead and
close this ticket for now.  Please feel free to open a new ticket with
any
questions that you and/or the user may have.  Thanks!

Julie

On Tue, Feb 26, 2019 at 9:07 AM Ramos, Mr. Gregory, Contractor, Code
7501.1
via RT <met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
>
> I believe the software built, but since I don't know how to use it,
I will
> have to wait for my user. Yes, the executables were built. I will
have to
> wait for the user to do some testing. Thank you for all of your
help.
>
> Greg
>
> -----Original Message-----
> From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, February 26, 2019 7:50 AM
> To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build MET
8.0
> with Python support
>
> Thanks!  I don't see any problems in the make.log file.  Did you run
"make
> install" as well? Did you receive all of the executables in the bin
> directory that you expected?
>
> Thanks,
> Julie
>
> On Mon, Feb 25, 2019 at 5:48 PM Ramos, Mr. Gregory, Contractor, Code
7501.1
> via RT <met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> >
> > attached is the make.log.
> >
> > Greg
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > Sent: Monday, February 25, 2019 4:14 PM
> > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET 8.0
> > with Python support
> >
> > >
> > > Is the Python CC variable OK?
> >
> >
> > Yes, because it is executing a command, so it needs those
backticks.
> >
> > What are your business hours?
> > >
> >
> > They vary.  I am in the office later than usual today.
> >
> > We are making progress and have move on to a new error:
> >
> > configure:5097: ./conftest
> > > ./conftest: error while loading shared libraries:
libpython2.7.so.1.0:
> > > cannot open shared object file: No such file or directory
> > >
> >
> > Please add "/software/depot/anaconda-2.4.0/lib" to your
LD_LIBRARY_PATH
> > using the following command and try reconfiguring and
reinstalling:
> >
> > export
> > LD_LIBRARY_PATH=/software/depot/anaconda-
2.4.0/lib:${LD_LIBRARY_PATH}
> >
> > Please let us know how it goes.
> >
> > Thanks,
> > Julie
> >
> >
> >
> >
> > On Mon, Feb 25, 2019 at 5:07 PM Ramos, Mr. Gregory, Contractor,
Code
> 7501.1
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > >
> > > Same thing:
> > >
> > > [ramos at predict met-8.0_bugfix]$ ./configure
> > > --prefix=/software/depot/met/met-8.0_bugfix --enable-grib2
> --enable-modis
> > > --enable-mode_graphics --enable-lidar2nc  --enable-python >
> configure.log
> > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > configure: error: cannot run C++ compiled programs.
> > > If you meant to cross compile, use `--host'.
> > > See `config.log' for more details
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > -L/software/depot/anaconda-2.4.0/lib -lpython2.7 -lpthread -ldl
-lutil
> > -lm
> > > -Xlinker -export-dynamic
> > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > -I/software/depot/anaconda-2.4.0/include/python2.7 -fno-strict-
aliasing
> > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> > > [ramos at predict met-8.0_bugfix]$
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > Sent: Monday, February 25, 2019 3:55 PM
> > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to build
MET
> 8.0
> > > with Python support
> > >
> > > Hi Greg.  There seems to be something strange going on with the
> > > characters.  I usually don't see backslashes included in the
error in
> the
> > > config.log file:
> > >
> > > g++: unrecognized option '-Xlinker\'
> > > > cc1plus: warning: command line option "-Wstrict-prototypes" is
valid
> > for
> > > > Ada/C/ObjC but not for C++
> > > > /usr/bin/ld: cannot find -lpython2.7\
> > > > collect2: ld returned 1 exit status
> > > >
> > >
> > > Looking back on some notes, I believe I incorrectly told you to
use
> > single
> > > quotation marks in your setting of MET_PYTHON_LD.  Instead,
please try
> > the
> > > following:
> > >
> > > export MET_PYTHON_LD=-L/software/depot/anaconda-2.4.0/lib\
-lpython2.7\
> > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > >
> > > My apologies.  That should do the trick.  Please let me know how
it
> goes.
> > > If you have trouble, please pass on the config.log and make.log
files.
> > >
> > > Thanks,
> > > Julie
> > >
> > >
> > >
> > > On Mon, Feb 25, 2019 at 3:23 PM Ramos, Mr. Gregory, Contractor,
Code
> > 7501.1
> > > via RT <met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
>
> > > >
> > > > OK, it is attached.
> > > >
> > > > Greg
> > > >
> > > > -----Original Message-----
> > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > Sent: Monday, February 25, 2019 2:20 PM
> > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build MET
> > 8.0
> > > > with Python support
> > > >
> > > > Hi Greg.
> > > >
> > > > This error:
> > > >
> > > > > configure: error: in `/software/depot/met/met-8.0_bugfix':
> > > > > configure: error: C++ compiler cannot create executables
> > > > > See `config.log' for more details
> > > >
> > > > is not indicative of the problem.  Could you please attach the
> > config.log
> > > > file?
> > > >
> > > > Thanks!
> > > >
> > > > Julie
> > > >
> > > > On Mon, Feb 25, 2019 at 2:52 PM Ramos, Mr. Gregory,
Contractor, Code
> > > 7501.1
> > > > via RT <met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > >
> > > > > I hope this ends up helping others. I have installed MET
since 5.0,
> > > but
> > > > > this is the first time someone has asked for Python support.
> > > > >
> > > > > Greg
> > > > >
> > > > > -----Original Message-----
> > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > Sent: Monday, February 25, 2019 1:33 PM
> > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> MET
> > > 8.0
> > > > > with Python support
> > > > >
> > > > > Thank you, Greg.  It looks like the libpython2.7.so exists
at
> > > > > /software/depot/anaconda-2.4.0/lib and not at
> > > > > /software/depot/anaconda-2.4.0/lib/python2.7, so we need to
set
> > > > > MET_PYTHON_LD in the following way:
> > > > >
> > > > > export MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib\
> > > -lpython2.7\
> > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > >
> > > > > Please give that a try and reconfigure and reinstall MET.
Please
> let
> > > us
> > > > > know how it goes.
> > > > >
> > > > > Thanks,
> > > > > Julie
> > > > >
> > > > > On Mon, Feb 25, 2019 at 2:29 PM Ramos, Mr. Gregory,
Contractor,
> Code
> > > > 7501.1
> > > > > via RT <met_help at ucar.edu> wrote:
> > > > >
> > > > > >
> > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046 >
> > > > > >
> > > > > > [ramos at maury2 ~]$ cd /ftp/receive/ramos
> > > > > > [ramos at maury2 ramos]$ ls
> > > /software/depot/anaconda-2.4.0/lib/python2.7
> > > > >
> > > > > > output-1
> > > > > > [ramos at maury2 ramos]$ unix2dos output-1
> > > > > > unix2dos: converting file output-1 to DOS format ...
> > > > > > [ramos at maury2 ramos]$ ls /software/depot/anaconda-
2.4.0/lib >
> > > output-2
> > > > > > [ramos at maury2 ramos]$ unix2dos output-2
> > > > > > unix2dos: converting file output-2 to DOS format ...
> > > > > > [ramos at maury2 ramos]$
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > Sent: Monday, February 25, 2019 1:20 PM
> > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying to
build
> > MET
> > > > 8.0
> > > > > > with Python support
> > > > > >
> > > > > > Hi Greg.  Can you please run
> > > > > >
> > > > > > "ls /software/depot/anaconda-2.4.0/lib/python2.7" and
> > > > > >
> > > > > > "ls /software/depot/anaconda-2.4.0/lib" and
> > > > > >
> > > > > > send me the output of those commands?
> > > > > >
> > > > > > Thanks,
> > > > > > Julie
> > > > > >
> > > > > >
> > > > > > On Mon, Feb 25, 2019 at 2:05 PM Ramos, Mr. Gregory,
Contractor,
> > Code
> > > > > 7501.1
> > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > >
> > > > > > >
> > > > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> >
> > > > > > >
> > > > > > > Is that what you were looking for?
> > > > > > >
> > > > > > >
> > > > > > > Gre
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Julie Prestopnik via RT [mailto:met_help at ucar.edu]
> > > > > > > Sent: Monday, February 25, 2019 11:47 AM
> > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply: Trying
to
> build
> > > MET
> > > > > 8.0
> > > > > > > with Python support
> > > > > > >
> > > > > > > Hi Greg.  Thanks for attaching your config.log file.  I
see the
> > > value
> > > > > of
> > > > > > > MET_PYTHON_LD is:
> > > > > > >
> > > > > > >
> > > > >
> > >
> MET_PYTHON_LD='-L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > > >
> > > > > > > but it needs a backslash and a space before the "-
lpython2.7".
> > It
> > > > > should
> > > > > > > be:
> > > > > > >
> > > > > > > MET_PYTHON_LD='-L/software/depot/anaconda-
2.4.0/lib/python2.7\
> > > > > > -lpython2.7\
> > > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic'
> > > > > > >
> > > > > > > Please give it another try with that value.
> > > > > > >
> > > > > > > Julie
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Feb 25, 2019 at 12:44 PM Ramos, Mr. Gregory,
> Contractor,
> > > Code
> > > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > >
> > > > > > > >
> > > > > > > > Still doesn't complete config:
> > > > > > > >
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > -fno-strict-aliasing
> > > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes
> > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > > -L/software/depot/anaconda-2.4.0/lib/python2.7-
lpython2.7\
> > > > -lpthread\
> > > > > > > > -ldl\ -lutil\ -lm\ -Xlinker\ -export-dynamic
> > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Julie Prestopnik via RT
[mailto:met_help at ucar.edu]
> > > > > > > > Sent: Monday, February 25, 2019 11:21 AM
> > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply:
Trying to
> > build
> > > > MET
> > > > > > 8.0
> > > > > > > > with Python support
> > > > > > > >
> > > > > > > > Hi Greg.  Thank you for attaching your config.log
file.
> > > > > > > >
> > > > > > > > From your config.log file:
> > > > > > > >
> > > > > > > > > /usr/bin/ld: cannot find -lpython2.7
> > > > > > > > > collect2: ld returned 1 exit status
> > > > > > > > >
> > > > > > > >
> > > > > > > > and from the value of  MET_PYTHON_LD that you
provided, I can
> > see
> > > > > that
> > > > > > > > MET_PYTHON_LD does not contain all of the information
that it
> > > > needs.
> > > > > > In
> > > > > > > > some cases, running "python-config --ldflags" is
enough, but
> in
> > > > this
> > > > > > > case,
> > > > > > > > it is not.  In order to proceed, we need to find the
location
> > of
> > > > the
> > > > > > > > libpython.a file or the libpython.so file.  Based on
the
> > > > information
> > > > > > from
> > > > > > > > the output from running "python-config --cflags", I am
going
> to
> > > > guess
> > > > > > > that
> > > > > > > > the libpython file lives in
> /software/depot/anaconda-2.4.0/lib
> > or
> > > > in
> > > > > > > > /software/depot/anaconda-2.4.0/lib/python2.7.  Could
you
> please
> > > > check
> > > > > > > those
> > > > > > > > directories and see if you can find a libpython.a file
or
> > > > > libpython.so
> > > > > > > > file?
> > > > > > > >
> > > > > > > > If you find it at /software/depot/anaconda-2.4.0/lib,
then
> > please
> > > > set
> > > > > > > > MET_PYTHON_LD in this way (you can copy and paste):
> > > > > > > > export MET_PYTHON_LD="-L/software/depot/anaconda-
2.4.0/lib\
> > > > > > -lpython2.7\
> > > > > > > > -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\ -export-
dynamic"
> > > > > > > >
> > > > > > > > If you find it at
> /software/depot/anaconda-2.4.0/lib/python2.7,
> > > > then
> > > > > > > please
> > > > > > > > set MET_PYTHON_LD in this way (you can copy and
paste):
> > > > > > > > export
> > > > MET_PYTHON_LD="-L/software/depot/anaconda-2.4.0/lib/python2.7\
> > > > > > > > -lpython2.7\ -lpthread\ -ldl\ -lutil\ -lm\ -Xlinker\
> > > > -export-dynamic"
> > > > > > > >
> > > > > > > > The value for MET_PYTHON_CC should be fine.
> > > > > > > >
> > > > > > > > Please try resetting MET_PYTHON_LD as described above
and
> then
> > > > > > > > reconfiguring and reinstalling MET.  Please let us
know how
> it
> > > > goes.
> > > > > > If
> > > > > > > > that doesn't fix it, please send us the *config.log
*and
> > > *make.log*
> > > > > > files
> > > > > > > > from the top-level MET directory.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Julie
> > > > > > > >
> > > > > > > > On Mon, Feb 25, 2019 at 11:48 AM Ramos, Mr. Gregory,
> > Contractor,
> > > > Code
> > > > > > > > 7501.1 via RT <met_help at ucar.edu> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > > >
> > > > > > > > >
> > > > > > > > > Here are my settings:
> > > > > > > > >
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > > >
> > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > > --cflags`
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ export
> > > > > > > > >
> > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-config
> > > > > > > > --ldflags`
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_CC
> > > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > -fno-strict-aliasing
> > > > > > > > > -m64 -fPIC -DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes
> > > > > > > > > [ramos at predict met-8.0_bugfix]$ echo $MET_PYTHON_LD
> > > > > > > > > -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker
> > -export-dynamic
> > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: John Halley Gotway via RT
[mailto:met_help at ucar.edu]
> > > > > > > > > Sent: Monday, February 25, 2019 8:30 AM
> > > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > > Subject: Re: [rt.rap.ucar.edu #89046] AutoReply:
Trying to
> > > build
> > > > > MET
> > > > > > > 8.0
> > > > > > > > > with Python support
> > > > > > > > >
> > > > > > > > > Hi Gregory,
> > > > > > > > >
> > > > > > > > > We received your email to met-help last Friday, but
haven't
> > > had a
> > > > > > > chance
> > > > > > > > to
> > > > > > > > > respond yet.
> > > > > > > > >
> > > > > > > > > I see that you're trying to compile MET using this
version
> of
> > > > > Python:
> > > > > > > > >    /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > >
> > > > > > > > > Before running the configure script for MET, you
should set
> > the
> > > > > > > > > MET_PYTHON_CC and MET_PYTHON_LD environment
variables
> using:
> > > > > > > > > *export
> > > > > > MET_PYTHON_CC=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > > --cflags`*
> > > > > > > > > *export
> > > > > > MET_PYTHON_LD=`/software/depot/anaconda-2.4.0/bin/python-
config
> > > > > > > > > --ldflags`*
> > > > > > > > >
> > > > > > > > > And then rerun the MET configure command followed
by:
> > > > > > > > >  *  make clean install >& make.log*
> > > > > > > > >
> > > > > > > > > If that doesn't fix it, please send us the
*config.log *and
> > > > > > *make.log*
> > > > > > > > > files
> > > > > > > > > from the top-level MET directory.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > John
> > > > > > > > >
> > > > > > > > > On Fri, Feb 22, 2019 at 5:33 PM Ramos, Mr. Gregory,
> > Contractor,
> > > > > Code
> > > > > > > > 7501.1
> > > > > > > > > via RT <met_help at ucar.edu> wrote:
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89046
> > > > >
> > > > > > > > > >
> > > > > > > > > > I got beyond the initial error, here is where I am
stuck
> > now:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:57:
> > > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:62:
> > > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:74:
> > > > > > > > > > undefined reference to `PySys_SetArgv'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:82:
> > > > > > > > > > undefined reference to `PyImport_ImportModule'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:90:
> > > > > > > > > > undefined reference to `PyImport_ReloadModule'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:94:
> > > > > > > > > > undefined reference to `PyErr_Occurred'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:100:
> > > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:119:
> > > > > > > > > > undefined reference to `PyModule_GetDict'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:131:
> > > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:133:
> > > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:141:
> > > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:152:
> > > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:154:
> > > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:156:
> > > > > > > > > > undefined reference to `PyString_FromString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:158:
> > > > > > > > > > undefined reference to `PyDict_GetItem'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/python_dataplane.cc:166:
> > > > > > > > > > undefined reference to `PyErr_PrintEx'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
python_dataplane.o):
> > > > > > > > > > In function `GlobalPython::initialize()':
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/global_python.h:56:
> > > > > > > > > > undefined reference to `Py_Initialize'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_numpy_array.o):
> > > > > > > > > > In function `dataplane_from_numpy_array(_object*,
> _object*,
> > > > > > > DataPlane&,
> > > > > > > > > > Grid&, VarInfoPython&)':
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:56:
> > > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:67:
> > > > > > > > > > undefined reference to `PyTuple_Size'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:105:
> > > > > > > > > > undefined reference to `PyObject_GetAttrString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> /software/depot/met/met-
8.0_bugfix/src/libcode/vx_data2d_python/dataplane_from_numpy_array.cc:116:
> > > > > > > > > > undefined reference to `PyObject_Type'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_data2d_python/libvx_data2d_python.a(libvx_data2d_python_a-
dataplane_from_xarray.o):
> > > > > > > > > > In function `dataplane_from_xarray(_object*,
DataPlane&,
> > > Grid&,
> > > > > > > > > > VarInfoPython&)':
> > > > > > > > > > dataplane_from_xarray.cc:(.text+0x44): undefined
> reference
> > to
> > > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > > > dataplane_from_xarray.cc:(.text+0x5b): undefined
> reference
> > to
> > > > > > > > > > `PyObject_GetAttrString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dict_lookup_int(_object*, char
const*)':
> > > > > > > > > > python_dict.cc:(.text+0x27): undefined reference
to
> > > > > > > > > `PyDict_GetItemString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dict_lookup_double(_object*, char
const*)':
> > > > > > > > > > python_dict.cc:(.text+0x10a): undefined reference
to
> > > > > > > > > `PyDict_GetItemString'
> > > > > > > > > > python_dict.cc:(.text+0x167): undefined reference
to
> > > > > `PyFloat_Type'
> > > > > > > > > > python_dict.cc:(.text+0x17b): undefined reference
to
> > > > > `PyFloat_Type'
> > > > > > > > > > python_dict.cc:(.text+0x186): undefined reference
to
> > > > > > > `PyType_IsSubtype'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dict_lookup_string(_object*, char
const*)':
> > > > > > > > > > python_dict.cc:(.text+0x22c): undefined reference
to
> > > > > > > > > `PyDict_GetItemString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dict_lookup_dict(_object*, char
const*)':
> > > > > > > > > > python_dict.cc:(.text+0x35d): undefined reference
to
> > > > > > > > > `PyDict_GetItemString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dump_dict(_object*, int)':
> > > > > > > > > > python_dict.cc:(.text+0x4d7): undefined reference
to
> > > > > `PyDict_Size'
> > > > > > > > > > python_dict.cc:(.text+0x558): undefined reference
to
> > > > > `PyDict_Next'
> > > > > > > > > > python_dict.cc:(.text+0x649): undefined reference
to
> > > > > > > > `PyString_AsString'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_dict.o):
> > > > > > > > > > In function `dump_dict_value(_object*, int)':
> > > > > > > > > > python_dict.cc:(.text+0x765): undefined reference
to
> > > > > > > > `PyString_AsString'
> > > > > > > > > > python_dict.cc:(.text+0x7dc): undefined reference
to
> > > > > `PyInt_AsLong'
> > > > > > > > > > python_dict.cc:(.text+0x820): undefined reference
to
> > > > > `PyFloat_Type'
> > > > > > > > > > python_dict.cc:(.text+0x834): undefined reference
to
> > > > > `PyFloat_Type'
> > > > > > > > > > python_dict.cc:(.text+0x83f): undefined reference
to
> > > > > > > `PyType_IsSubtype'
> > > > > > > > > > python_dict.cc:(.text+0x85f): undefined reference
to
> > > > > > > `PyFloat_AsDouble'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
../../../../src/libcode/vx_python_utils/libvx_python_utils.a(libvx_python_utils_a-
python_tuple.o):
> > > > > > > > > > In function `get_tuple_int_values(_object*, int&,
int*)':
> > > > > > > > > > python_tuple.cc:(.text+0x1d): undefined reference
to
> > > > > `PyTuple_Size'
> > > > > > > > > > python_tuple.cc:(.text+0xde): undefined reference
to
> > > > > > > `PyTuple_GetItem'
> > > > > > > > > > python_tuple.cc:(.text+0x103): undefined reference
to
> > > > > > `PyInt_AsLong'
> > > > > > > > > > collect2: error: ld returned 1 exit status
> > > > > > > > > > make[5]: *** [ensemble_stat] Error 1
> > > > > > > > > > make[5]: Leaving directory
> > > > > > > > > >
> > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core/ensemble_stat'
> > > > > > > > > > make[4]: *** [all-recursive] Error 1
> > > > > > > > > > make[4]: Leaving directory
> > > > > > > > > > `/software/depot/met/met-
8.0_bugfix/src/tools/core'
> > > > > > > > > > make[3]: *** [all-recursive] Error 1
> > > > > > > > > > make[3]: Leaving directory
> > > > > > > > `/software/depot/met/met-8.0_bugfix/src/tools'
> > > > > > > > > > make[2]: *** [all-recursive] Error 1
> > > > > > > > > > make[2]: Leaving directory
> > > > > `/software/depot/met/met-8.0_bugfix/src'
> > > > > > > > > > make[1]: *** [all-recursive] Error 1
> > > > > > > > > > make[1]: Leaving directory
> > > `/software/depot/met/met-8.0_bugfix'
> > > > > > > > > > make: *** [all] Error 2
> > > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: met_help at ucar.edu via RT
[mailto:met_help at ucar.edu
> ]
> > > > > > > > > > Sent: Friday, February 22, 2019 10:40 AM
> > > > > > > > > > To: Ramos, Mr. Gregory, Contractor, Code 7501.1
> > > > > > > > > > Subject: [rt.rap.ucar.edu #89046] AutoReply:
Trying to
> > build
> > > > MET
> > > > > > 8.0
> > > > > > > > > with
> > > > > > > > > > Python support
> > > > > > > > > >
> > > > > > > > > > Greetings,
> > > > > > > > > >
> > > > > > > > > > This message has been automatically generated in
response
> > to
> > > > the
> > > > > > > > creation
> > > > > > > > > > of a trouble ticket regarding:
> > > > > > > > > >         "Trying to build MET 8.0 with Python
support",
> > > > > > > > > > a summary of which appears below.
> > > > > > > > > >
> > > > > > > > > > There is no need to reply to this message right
now.
> Your
> > > > ticket
> > > > > > has
> > > > > > > > > been
> > > > > > > > > > assigned an ID of [rt.rap.ucar.edu #89046].
> > > > > > > > > >
> > > > > > > > > > Please include the string:
> > > > > > > > > >
> > > > > > > > > >          [rt.rap.ucar.edu #89046]
> > > > > > > > > >
> > > > > > > > > > in the subject line of all future correspondence
about
> this
> > > > > issue.
> > > > > > To
> > > > > > > > do
> > > > > > > > > > so, you may reply to this message.
> > > > > > > > > >
> > > > > > > > > > For more information, please see:
> > > > > > > > > >
> > > > > > > > > > MET Online Tutorial:
> > > > > > > > > >
> > > > > > > >
> > > >
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
> > > > > > > > > >
> > > > > > > > > > MET Users Guide:
> > > > > > > > > >
https://www.dtcenter.org/met/users/docs/overview.php
> > > > > > > > > >
> > > > > > > > > > MET FAQs:
> > > > > > > > > >
> > https://www.dtcenter.org/met/users/support/faqs/index.php
> > > > > > > > > >
> > > > > > > > > > MET-Help Email Archive:
> > > > > > > > > >    http://mailman.ucar.edu/pipermail/met_help
> > > > > > > > > >
> > > > > > > > > >                         Thank you,
> > > > > > > > > >                         met_help at ucar.edu
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> >
-------------------------------------------------------------------------
> > > > > > > > > > I successfully built MET 8.0, but the user needs
Python
> > > > support.
> > > > > We
> > > > > > > use
> > > > > > > > > > modules here. I noticed your build_script can use
> modules.
> > > > > > > > > >
> > > > > > > > > > We use modules here too:
> > > > > > > > > >
> > > > > > > > > > [ramos at predict met-8.0_bugfix]$ module list
> > > > > > > > > > Currently Loaded Modulefiles:
> > > > > > > > > >   1) python/anaconda-2.4.0
> > > > > > > > > > [ramos at predict met-8.0_bugfix]$ which python
> > > > > > > > > > /software/depot/anaconda-2.4.0/bin/python
> > > > > > > > > > [ramos at predict met-8.0_bugfix]$
> > > > > > > > > >
> > > > > > > > > > I set the Python variable, but the build is not
finding
> > > > Python.h
> > > > > > > > > >
> > > > > > > > > > [ramos at predict met-8.0_bugfix]$ echo
$MET_PYTHON_CC
> > > > > > > > > > -I/software/depot/anaconda-2.4.0/include/python2.7
> > > > > > > > > >
> > > > > > > > > > Can you provide some help in building MET with
Python
> > > support?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Greg Ramos
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

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


More information about the Met_help mailing list