perrygeo / python-rasterstats

Summary statistics of geospatial raster datasets based on vector geometries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segfault when importing rasterio

TimMcCauley opened this issue · comments

I'm not sure what is happening but as soon as I import rasterio I get a segfault (using the test data)

>>> import rasterio # this will cause the segfault
>>> from rasterstats import zonal_stats
>>> 
>>> stats = zonal_stats(
...     "polygons.shp",
...     "slope.tif",
... )
[1]    3980 segmentation fault  python3

name = "rasterstats"
version = "0.17.0"

name = "rasterio"
version = "1.3.4"

@TimMcCauley This looks like it is a rasterio installation issue, and not rasterstats. The best place to ask rasterio installation questions is here: https://rasterio.groups.io/g/main