rasterio / rasterio-wheels

MIT License
11 stars 16 forks source link

libexpat not packaged with linux wheels? #136

Open mathause opened 4 days ago

mathause commented 4 days ago

It looks like libexpat is not packaged in linux wheels. However, from build_expat I would expect it to be - or do I interpret the IS_OSX flag wrong?

https://github.com/rasterio/rasterio-wheels/blob/c04fa87905fcf5b3fed053f6eb14d004b5554cca/config.sh#L155

Why is that relevant? Apparently some linux docker images stopped shipping libexpat (see docker-library/python#984) so importing rasterio fails in these containers.

vincentsarago commented 4 days ago

I also just experienced it with AWS Lambda python 3.12, but I've not yet be able to create a simple reproductible example https://github.com/developmentseed/titiler-md-demo/issues/3

AdelImamovic commented 4 days ago

Code to reproduce the issue:

podman pull docker.io/library/python:3.10-slim # same with py311 podman run python:3.10-slim sh -c "pip install rasterio && python -c 'import rasterio'"

sgillies commented 4 days ago

Thanks for the report @mathause ! I don't think I'll do anything about it just for these particular images.

Keep in mind that the rasterio wheels are mostly for testing purposes. I don't put them into production because they lack features and some of the library versions are a little old.

mathause commented 4 days ago

Thanks for your answer. So what's the recommendation? Using conda? Or building locally?

It's obviously fair enough that the wheels should not be used for production - but where could I see that? Is that in the documentation? (And just as a comment: it's quite the recommendation for the individual user to know which package on the stack is usable and which is not. Especially if it had recent versions on pypi.)