You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'fiona' when getting requirements to build wheel
Just like @mvtm-dn, I also expect this error occurs since you are trying to install it in a Python 3.14 environment. Could you confirm this? Fiona is one of the dependencies for rasterstats, but it is not maintained anymore so it does not support Python 3.14.
Should be resolved with version 0.21.0 released today. Switched to a pyogrio backend per @mvtm-dn suggestion and it works great, better wheel availability and better performance. Let me know in a new issue if you experience trouble with the new version.
Activity
mvtm-dn commentedon Mar 31, 2026
Maybe this will help: #312
veenstrajelmer commentedon May 21, 2026
Just like @mvtm-dn, I also expect this error occurs since you are trying to install it in a Python 3.14 environment. Could you confirm this? Fiona is one of the dependencies for rasterstats, but it is not maintained anymore so it does not support Python 3.14.
perrygeo commentedon May 23, 2026
Should be resolved with version
0.21.0released today. Switched to a pyogrio backend per @mvtm-dn suggestion and it works great, better wheel availability and better performance. Let me know in a new issue if you experience trouble with the new version.