Skip to content

Add GDAL dependencies to CI for Python 3.14 support#32

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-installation-error
Closed

Add GDAL dependencies to CI for Python 3.14 support#32
Copilot wants to merge 3 commits intomainfrom
copilot/fix-installation-error

Conversation

Copy link
Copy Markdown

Copilot AI commented Oct 31, 2025

Python 3.14 tests fail across all OS platforms because pyogrio lacks pre-built wheels and requires GDAL to build from source.

Changes:

  • Install GDAL system libraries before pip install on all platforms:
    • Ubuntu: apt-get install gdal-bin libgdal-dev
    • macOS: brew install gdal
    • Windows: MSYS2 with dynamic version detection via gdal-config
  • Add Python 3.14 to test matrix

Pre-built wheels continue to be used on Python ≤3.13; GDAL installation enables source builds on Python 3.14+.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

6-py2.py3-none-any.whl.metadata (17 kB)
Collecting mccabe<0.8.0,>=0.7.0 (from flake8>=3.9->pytidycensus==1.1.2)
Downloading mccabe-0.7.0-py2.py3-none-any.whl.metadata (5.0 kB)
Collecting pycodestyle<2.15.0,>=2.14.0 (from flake8>=3.9->pytidycensus==1.1.2)
Downloading pycodestyle-2.14.0-py2.py3-none-any.whl.metadata (4.5 kB)
Collecting pyflakes<3.5.0,>=3.4.0 (from flake8>=3.9->pytidycensus==1.1.2)
Downloading pyflakes-3.4.0-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting pyogrio>=0.7.2 (from geopandas>=0.10.0->pytidycensus==1.1.2)
Downloading pyogrio-0.11.1.tar.gz (287 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1

[1 lines of output]
GDAL_VERSION must be provided as an environment variable or as --gdalversion command line argument
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

running unittest python 3.14 fails for all OSs. foEncountered error while generating package metadata.

pyogrio

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: Process completed with exit code 1.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Oct 31, 2025
Copilot AI and others added 2 commits October 31, 2025 14:26
Install GDAL system dependencies before pip install to enable pyogrio
to build from source when pre-built wheels are not available (Python 3.14+).
Adds Python 3.14 to test matrix.

Co-authored-by: mmann1123 <5185364+mmann1123@users.noreply.github.com>
Use msys2 shell to dynamically detect GDAL version and fix path format.

Co-authored-by: mmann1123 <5185364+mmann1123@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix installation error in pytidycensus dependencies Add GDAL dependencies to CI for Python 3.14 support Oct 31, 2025
Copilot AI requested a review from mmann1123 October 31, 2025 14:34
@mmann1123 mmann1123 closed this Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants