sodri126 / netcdf4-python

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

Installation Problem on Windows Machine #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Team,

I can't install netCDF-python althoug I have installed HDF% and netcdf 
libraries. 

I have edited setup.py following instructions as:

HDF5_dir = os.environ.get('C:\\Archivos de programa\\HDF_Group\\HDF5\\1.8.11')
netCDF4_dir = os.environ.get('C:\\Archivos de programa\\netCDF 4.3.0')
HDF5_includedir = os.environ.get('C:\\Archivos de 
programa\\HDF_Group\\HDF5\\1.8.11\\include')
HDF5_libdir = os.environ.get('C:\\Archivos de 
programa\\HDF_Group\\HDF5\\1.8.11\\lib')

And the problem during the installation process is:

C:\Python27>python.exe Lib\site-packages\netCDF4-1.0.4\setup.py install

HDF5_DIR environment variable not set, checking some standard locations ..
checking C:\Documents and Settings\marcal ...
checking /usr/local ...
checking /sw ...
checking /opt ...
checking /opt/local ...
checking /usr ...
Traceback (most recent call last):
  File "Lib\site-packages\netCDF4-1.0.4\setup.py", line 127, in <module>
    raise ValueError('did not find HDF5 headers')
ValueError: did not find HDF5 headers

What I think is the problem: 

In setup.py I can find:
def check_hdf5version(hdf5_includedir):
    try:
        f = open(os.path.join(hdf5_includedir,'H5pubconf-64.h'))
    except IOError:
        try:
            f = open(os.path.join(hdf5_includedir,'H5pubconf-32.h'))
        except IOError:
            try:
                f = open(os.path.join(hdf5_includedir,'H5pubconf.h'))
            except IOError:
                return None
    hdf5_version = None

Non of those files ('H5pubconf-64.h', 'H5pubconf-32.h' or 'H5pubconf.h') is 
included in the "includes" directory (in my case: 'C:\\Archivos de 
programa\\HDF_Group\\HDF5\\1.8.11\\include')

Many thanks for any help

Rafa

Original issue reported on code.google.com by kingkast...@gmail.com on 22 Jul 2013 at 10:06

GoogleCodeExporter commented 9 years ago
Sounds like you haven't installed HDF5 correctly.

There is a windows binary installer on the downloads page - have you tried that?

Original comment by whitaker.jeffrey@gmail.com on 22 Jul 2013 at 12:20

GoogleCodeExporter commented 9 years ago

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