Skip to content
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

4.4.1.1 breaks OPeNDAP on windows and Python 2.7/3.4 #10

Closed
dopplershift opened this issue Nov 25, 2016 · 7 comments
Closed

4.4.1.1 breaks OPeNDAP on windows and Python 2.7/3.4 #10

dopplershift opened this issue Nov 25, 2016 · 7 comments

Comments

@dopplershift
Copy link
Member

With 4.4.1.1, I'm having trouble with netCDF accessing OPeNDAP servers; I get the following error:

OSError: NetCDF: Invalid argument

I should note that this only happens on AppVeyor, like: https://ci.appveyor.com/project/Unidata/unidata-python-workshop/build/1.0.201/job/jtxca676p2svxgxh

I can reproduce locally on a windows 7 64 vm with Python 3.4; does not happen with Python 3.5

@ocefpaf
Copy link
Member

ocefpaf commented Nov 25, 2016

I had that issue before the update to 4.4.1.1.

See ioos/notebooks_demos#129

Not sure what is going on but some endpoints work fine others return the OSError 😒

@ocefpaf
Copy link
Member

ocefpaf commented Dec 14, 2016

I can confirm that pinning to 4.4.0 fixes the problem. Not sure if that is related to netcdf or the packaging in conda-forge.

@rsignell-usgs
Copy link

I just built the IOOS3 environment, and this is failing on Windows:

import netCDF4
print(netCDF4.__version__)
url = 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ghcncams/air.mon.mean.nc'
nc = netCDF4.Dataset(url)

giving:

1.2.6

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-04f7b265af90> in <module>()
      2 print(netCDF4.__version__)
      3 url = 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ghcncams/air.mon.mean.nc'
----> 4 nc = netCDF4.Dataset(url)

netCDF4\_netCDF4.pyx in netCDF4._netCDF4.Dataset.__init__ (netCDF4\_netCDF4.c:13973)()

OSError: NetCDF: I/O failure

It works okay on Windows with my IOOS2 environment with older netCDF4 v1.2.4.

@ocefpaf
Copy link
Member

ocefpaf commented Dec 21, 2016

I am not sure that is a problem with packaging. I believe it it is a bug in libnetcdf or netCDF4.

What is the libnetcdf version? Try force installing 4.4.0...

@rsignell-usgs
Copy link

Here's what my IOOS3 Python 3 env looks like for netcdf:

(ioos3) C:\Users\rsignell\Documents\GitHub>conda list netcdf
# packages in environment at C:\Users\rsignell\AppData\Local\Continuum\Miniconda
3\envs\ioos3:
#
h5netcdf                  0.3.1                    py35_0    conda-forge
libnetcdf                 4.4.0                    vc14_2  [vc14]  conda-forge
netcdf4                   1.2.6               np111py35_0    conda-forge

@ocefpaf
Copy link
Member

ocefpaf commented Dec 21, 2016

I will try to debug this but some URLs are OK for me when I downgraded from 4.4.1.1 to 4.4.0...

@ocefpaf ocefpaf mentioned this issue Feb 13, 2017
@ocefpaf
Copy link
Member

ocefpaf commented Mar 13, 2017

This was fixed upstream (Unidata/netcdf-c#366) so we need to wait for a new release (or patch or versoin).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants