Closed
Conversation
pyarrow 23.0.1 removed pyarrow.compute.match_substring_regex, which breaks pandas Series.str.contains() with regex on arrow-backed strings. This causes supy to fail on import in the OSGeo4W/QGIS 4 environment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI Build PlanChanged FilesPython source (0 files) Documentation (1 file)
pyproject.toml (1 file)
Build Configuration
Rationale
Updated by CI on each push. See path-filters.yml for category definitions. |
Author
|
Closing in favour of UMEP-dev/umep-reqs#14 — the pyarrow cap belongs in umep-reqs (QGIS install layer), not in supy itself. The incompatible code path is already removed on master. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyarrow<23on non-Linux and Python 3.14 dependency lines inpyproject.tomlpyarrow.compute.match_substring_regex, breakingpandas.Series.str.contains()with regex on arrow-backed stringssupyto fail on import in OSGeo4W/QGIS 4 environments (Python 3.12 + pandas 3.0.1 + pyarrow 23)Closes #1252
Test plan
supy.load_sample_data()works)Notes
The docstring-parsing code in
_load.pythat triggered this has already been refactored out onmaster(replaced by static_var_metadata). A new release would also resolve this inherently for the released version. The cap is a safety net until pandas releases a version compatible with pyarrow 23.🤖 Generated with Claude Code