Revision 1284 Breaks NetCDF4 Usage with Python 2.7.5 & NetCDF4.2.1.1 on OSX 10.8.5

20 views
Skip to first unread message

Patrick Marsh

unread,
Sep 16, 2013, 1:38:10 PM9/16/13
to netcdf4...@googlegroups.com
I updated to the latest version of netCDF4-python and it fails on import with the following:

ImportError: dlopen(/Users/pmarshwx/.local/lib/python/site-packages/netCDF4.so, 2): Symbol not found: _nc_rename_grp
  Referenced from: /Users/pmarshwx/.local/lib/python/site-packages/netCDF4.so
  Expected in: flat namespace


I noticed in the install log that I get the following

NETCDF4_DIR environment variable not set, checking standard locations..
checking /Users/pmarshwx ...
checking /usr/local ...
netCDF4 found in /usr/local
using netcdf library version 4.2.1.1
using Cython to compile netCDF4.pyx...
netcdf lib does not have group rename capability


I will point out that I built netCDF4 with Homebrew.



Revision 1283 works just fine.


Patrick

Patrick Marsh

unread,
Sep 16, 2013, 9:58:56 PM9/16/13
to Jeff Whitaker, netcdf4...@googlegroups.com
Hi, Jeff,

This is the case. I *do* have this file. And it *is* set to 0.


Patrick

--------------------------------------------------------------
| Patrick Marsh (@pmarshwx)
| Techniques Development Meteorologist
|-------------------------------------------------------------
| NOAA/NWS/NCEP Storm Prediction Center
| 120 David L. Boren Boulevard, Suite 2300
| Norman, OK 73072
|-------------------------------------------------------------
| Phone:             +1 (405) 325-3844
| Fax:                 +1 (405) 325-2938
| Direct Email:    patric...@noaa.gov
| SPC Website:  http://www.spc.noaa.gov
| SPC Twitter:    @NWSSPC
|-------------------------------------------------------------
| Personal Website: http://www.pmarshwx.com
--------------------------------------------------------------


On Mon, Sep 16, 2013 at 3:20 PM, Jeff Whitaker <jeffrey.s...@noaa.gov> wrote:
September 16, 2013 11:38 AM

Patrick: You should have a file constants.pyx in the same directory as setup.py. It should have

DEF HAS_RENAME_GRP = 0

in it, which means the compiled module should not reference the nc_rename_grp function.  Can you check that this is the case?

-Jeff

postbox-contact.jpg

Patrick Marsh

unread,
Sep 16, 2013, 10:09:16 PM9/16/13
to Jeff Whitaker, netcdf4...@googlegroups.com
I went ahead and did and "svn update" to revision 1286 and it worked. (For completeness, revisions 1284 and 1285 still fail.)


Patrick

On Mon, Sep 16, 2013 at 9:03 PM, Jeff Whitaker <jeffrey.s...@noaa.gov> wrote:
September 16, 2013 7:58 PM
Hi, Jeff,

This is the case. I *do* have this file. And it *is* set to 0.


Patrick

Patrick: Somehow the version you installed used a value of 1 during compilation. I don't know how this could have happened.  There certainly wasn't anything in revision 1284 that would have caused this.  Could you svn update, and rebuild?

-Jeff

--------------------------------------------------------------
| Patrick Marsh (@pmarshwx)
| Techniques Development Meteorologist
|-------------------------------------------------------------
| NOAA/NWS/NCEP Storm Prediction Center
| 120 David L. Boren Boulevard, Suite 2300
| Norman, OK 73072
|-------------------------------------------------------------
| Phone:             +1 (405) 325-3844
| Fax:                 +1 (405) 325-2938
| Direct Email:    patric...@noaa.gov
| SPC Website:  http://www.spc.noaa.gov
| SPC Twitter:    @NWSSPC
|-------------------------------------------------------------
| Personal Website: http://www.pmarshwx.com
--------------------------------------------------------------



September 16, 2013 2:20 PM
compose-unknown-contact.jpg
postbox-contact.jpg
Reply all
Reply to author
Forward
0 new messages