-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems with snow leopard install #24
Comments
From whitaker.jeffrey@gmail.com on September 14, 2009 16:40:09 Looks like your netcdf library in /usr/local was detected - and this is not the macports version. Did you build Also, be sure to blow away your build directory before re-running setup.py. -Jeff |
From ohtinsel@gmail.com on September 16, 2009 07:16:38 Indeed, I fore reinstalled netcdf+netcdf4 via macports and then blew away netcdf from Thank you, Mike /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: HDF5_DIR environment variable not set, checking some standard locations .., NETCDF4_DIR environment variable not set, checking some standard locations .., |
From Rob.Cer...@gmail.com on April 20, 2010 15:48:13 Hi Jeff, Have a different problem. Got past HDF5 and NetCDF... though I violated by own RODAN:gdal-1.7.1 cermak$ uname -a Cleanly compiles, but loading the module results in a missing symbol.
|
From Rob.Cer...@gmail.com on April 21, 2010 01:41:52 Solved it. If the netcdf4 library is compiled with libdap then we also need to libs = ['netcdf','hdf5_hl','hdf5','z','curl'] |
From whitaker.jeffrey@gmail.com on April 21, 2010 02:52:02 Rob: You shouldn't need to do this if netcdf and curl are both compiled as shared libs. -Jeff |
From ohtinsel@gmail.com on April 21, 2010 06:38:29 Rob, I had similar problems, which lead me to downgrade to netcdf3. Anyway, I tried your Traceback (most recent call last): I'm using the newest macports and the newest ports including netcdf-devel. Mike |
From whitaker.jeffrey@gmail.com on April 21, 2010 06:46:10 : Symbol not found: _nc_def_compound this indicates the netcdf lib was compiled without netcdf-4 support (enable with the --enable-netcdf-4 |
From ohtinsel@gmail.com on April 21, 2010 07:04:08 Ah, macports installed netcdf (w/o netcdf4 support) and netcdf-devel (w/ netcdf4 Mike |
From barbi.br...@gmail.com on April 28, 2010 02:21:36 I am using netcdf4 along with pycdf 0.6. When I run my program, I get this error. Any $ python synbioss.py Thanks, |
From whitaker.jeffrey@gmail.com on April 28, 2010 04:30:10 This is a pycdf import error and is unrelated to netcdf4-python. Libcurl is not being found. -Jeff |
From helg...@gmail.com on September 12, 2012 06:26:30 I got the same issue today even with the latest versions: netcdf-python V1.0 Enthought Python Distribution (EPD) free version -- www.enthought.com All libs for netcdf, HDF in /usr/local/lib V4.2 when calling python and use "import netCDF4" I got the error ImportError: dlopen(./netCDF4.so, 2): Symbol not found: _nc_close This is not an issue with the netcdf libs! When using the standard Apple 2.7 python package the import works. |
From whitaker.jeffrey@gmail.com on September 12, 2012 06:39:25 It's not an issue with netcdf4-python either - it's something in your environment that is preventing the right libraries from being loaded. netcdf4-python comes with EPD, so it should just work (without you having to build and install anything else). You must have something in your environment that is causing the Enthought python to ignore the library that it installed and pick up another one. |
From helg...@gmail.com on September 12, 2012 06:54:47 I am using the free EPD which unfortunately does not include the netcdf4 module.. |
From whitaker.jeffrey@gmail.com on September 12, 2012 07:31:55 Another option, if you can't get your own build to work, is to use macports (the package is called py-netcdf4). |
From whitaker.jeffrey@gmail.com on February 25, 2014 18:04:09 Status: Fixed |
From ohtinsel@gmail.com on September 14, 2009 15:24:39
What steps will reproduce the problem? 1. Installed netcdf 4.0.1 both from source and using macports (same issue).
2. downloaded netCDF4-0.8.2
3. basic install What is the expected output? What do you see instead? some install warnings.
mbauer@boreas:~/Downloads/netCDF4-0.8.2/ > sudo python setup.py install
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Pyrex/Compiler/Errors.py:17:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.message = message
HDF5_DIR environment variable not set, checking some standard locations ..,
checking /Users/mbauer ...
checking /usr/local ...
checking /sw ...
checking /opt ...
checking /opt/local ...
HDF5 found in /opt/local
NETCDF4_DIR environment variable not set, checking some standard locations ..,
checking /Users/mbauer ...
checking /usr/local ...
netCDF4 found in /usr/local
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267:
UserWarning: Unknown distribution option: 'summary'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
building py_modules sources
building extension "netCDF4" sources
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
running scons
running build_scripts
running install_lib
running install_scripts
changing mode of
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/grib2nc4 to 755
changing mode of
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/nc3tonc4 to 755
changing mode of
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/nc4tonc3 to 755
running install_egg_info
Removing
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/netCDF4-0.8.2-py2.6.egg-info
Writing
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/netCDF4-0.8.2-py2.6.egg-info What version of the product are you using? On what operating system? python 2.6.2 (via macports)
netcdf 4.0.1 (tried both macports and direct install)
hdf5 1.8.3 (via macports) Please provide any additional information below. Attend to call netcdf4 in python give the following:
import netCDF4
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/netCDF4.so,
2): Symbol not found: _nc_close
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/netCDF4.so
Expected in: flat namespace
in
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/netCDF4.so
I get the same for netcdf3 only as well.
Mike
Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=24
The text was updated successfully, but these errors were encountered: