Closed sgillies closed 5 years ago
Right, there's really no way to solve this here. If you have to use both netCDF4 and rasterio in one program, you'd better get them from conda-forge or build them from source.
Seems like the same conflict is present with fiona
too.
https://github.com/mapbox/rasterio/issues/1574 by @ererkka copied to this repo.
Expected behavior and actual behavior.
Expected that importing
rasterio
has no effect on other libraries. Creating a netCDF file usingnetCDF4
library fails whenrasterio
is imported first.Steps to reproduce the problem.
test.py
Commenting out
import rasterio
or importing it afternetCDF4
removes the error.Operating system
CentOS release 6.10 (Final)
Rasterio version
Python 3.5.3, pip 18.1
From
pip freeze
Links to other issues
This might be linked to https://github.com/pydata/xarray/issues/2535.