sjaaky74 / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
1 stars 0 forks source link

py27-netcdf4 and py33-netcdf4 macports version fails to import #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. import netCDF4

 What do you see instead?
Python 3.3.1 (default, Apr  6 2013, 12:29:05)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
enabling readline
>>> import netCDF4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: 
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3
/site-packages/netCDF4.so, 2): Symbol not found: _SDattrinfo
  Referenced from: /opt/local/lib/libnetcdf.7.dylib
  Expected in: flat namespace
 in /opt/local/lib/libnetcdf.7.dylib

What version of the product are you using? On what operating system?

NETCDF4 version -> netcdf @4.2.1.1_2+dap+hdf4+netcdf from macports
This netCDF 4.2.1.1 has been built with the following features:

  --cc        -> /usr/bin/clang
  --cflags    ->  -I/opt/local/include -I/opt/local/include -DNDEBUG
  --libs      -> -L/opt/local/lib -lnetcdf

  --has-c++   -> no
  --cxx       ->
  --has-c++4  -> no
  --cxx4      ->

  --fc        ->
  --fflags    ->
  --flibs     ->
  --has-f90   -> no

  --has-dap   -> yes
  --has-nc2   -> yes
  --has-nc4   -> yes
  --has-hdf5  -> yes
  --has-hdf4  -> yes
  --has-pnetcdf-> no
  --has-szlib ->

  --prefix    -> /opt/local
  --includedir-> /opt/local/include
  --version   -> netCDF 4.2.1.1 

All the dependencies were installed using macports.

Please provide any additional information below.

I tried building the package from source as well. Resulted in the same output. 

Original issue reported on code.google.com by piyush.s...@gmail.com on 10 May 2013 at 12:02

GoogleCodeExporter commented 8 years ago
It looks like the macports package is trying to build hdf4 support, but not 
linking the hdf4 libs.  If you don't need hdf4 support, just remove the hdf4 
variant from the build.  If you do need hdf4, I would suggest filing a macports 
ticket.

Original comment by whitaker.jeffrey@gmail.com on 10 May 2013 at 3:37

GoogleCodeExporter commented 8 years ago

Original comment by whitaker.jeffrey@gmail.com on 26 Feb 2014 at 2:04