Skip to content

Conversation

@hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Aug 21, 2025

⚠️ Checklist if your PR is changing anything else than documentation

Merge request description

This was one of the main gotchas for the Python 3.12 runtime upgrade but I forgot about it 😞

From developmentseed/titiler#1108:

I think it is a brittle solution but it might work for you too. The problem is that the execution environment is subtly different from the build environment as @vincentsarago suggested earlier. In this case the build environment (Lambda Python 3.12 image) has libexpat.so.1 available in the LD_LIBRARY_PATH which includes /usr/lib64 but the execution environment does not. The contents of the /asset directory which get zipped up to create the code package for the Lambda gets added to LD_LIBRARY_PATH so I think that's why it works. I hope that helps!

resolves #181

@hrodmn hrodmn requested a review from gadomski August 21, 2025 01:18
@hrodmn hrodmn merged commit b461ec0 into main Aug 21, 2025
8 checks passed
@hrodmn hrodmn deleted the fix/libexpat branch August 21, 2025 02:10
github-actions bot pushed a commit that referenced this pull request Aug 21, 2025
## [10.1.1](v10.1.0...v10.1.1) (2025-08-21)

### Bug Fixes

* include libexpat.so.1 in the titiler code package ([#182](#182)) ([b461ec0](b461ec0))
@ds-release-bot
Copy link
Contributor

🎉 This PR is included in version 10.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python 3.12 upgrade broke titiler

3 participants