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

netcdf4<1.4.0 + gdal #52

Closed
bekozi opened this issue Jul 27, 2018 · 3 comments
Closed

netcdf4<1.4.0 + gdal #52

bekozi opened this issue Jul 27, 2018 · 3 comments

Comments

@bekozi
Copy link

bekozi commented Jul 27, 2018

netcdf4 added some improvements in the 1.4.0 release. They are unfortunately backwards incompatible. I am hoping to get a netcdf4<1.4.0 build that is compatible with gdal. Right now I get:

$ conda install -c conda-forge "netcdf4<1.4.0" gdal
$ python -c "import osgeo"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/ocgis/__init__.py", line 5, in <module>
    import osgeo
  File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module>
    _gdal = swig_import_helper()
  File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
  File "/opt/conda/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/opt/conda/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libpoppler.so.71: cannot open shared object file: No such file or directory

Is there a trick I should be using? Can we get a working build for netcdf4<1.4.0+gdal? Upgrading to the new cftime was not bad, but I'd like for code built on older netcdf4 to be supported on conda-forge until we get a new one out. Thanks!

@ocefpaf
Copy link
Member

ocefpaf commented Jul 27, 2018

We would need to rebuild a version of netcdf<1.4.0. If you want to open a PR for that I can create a branch for the version that works for you.

@bekozi
Copy link
Author

bekozi commented Jul 30, 2018

Works. Thanks @ocefpaf

@ocefpaf
Copy link
Member

ocefpaf commented Jul 30, 2018

I did not do anything, you sent the PR, I just merged it ;-p

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

2 participants