Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCPy does not build with the current environment.yml with python 3.13 or later #352

Open
yantosca opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
category: Bug Something isn't working

Comments

@yantosca
Copy link
Contributor

yantosca commented Mar 3, 2025

Your name

Bob Yantosca

Your affiliation

Harvard + GCST

What happened? What did you expect to happen?

GCPy 1.6.0 is now available on conda-forge. However, the conda-forge builds use Python versions 3.10, 3.11. and 3.12 but not the most recent Python 3.13 version. Using Python 3.13 causes the environment build to fail due to an error in the esmpy/xesmf packages.

I am just posting this here as a placeholder so that we don't forget to address this in the future.

What are the steps to reproduce the bug?

I opened the PR conda-forge/geoschem-gcpy-feedstock#19 to fix several outdated Python packages. However the build does not work with Python 3.13.

To reproduce the bug, remove the comment characters in these lines:

https://github.com/conda-forge/geoschem-gcpy-feedstock/blob/ba03cce009dfa91afd457ab6b71f8aefe3d3833b/.azure-pipelines/azure-pipelines-linux.yml#L27-L30

https://github.com/conda-forge/geoschem-gcpy-feedstock/blob/ba03cce009dfa91afd457ab6b71f8aefe3d3833b/.azure-pipelines/azure-pipelines-osx.yml#L23-L25

and run the GitHub action.

You can also produce this error by changing python==3.12.0 to python==3.13.0 in the environment.yml file. Then build a new mamba environment with:

$ mamba env create -n gcpy_env_py313 --file=environment.yml`

which will fail due to package inconsistencies.

Please attach any relevant configuration and log files.

What GCPy version were you using?

1.6.0

What environment were you running GCPy on?

Other (please explain below)

What python environment were you using?

conda-forge

Will you be addressing this bug yourself?

Yes

Additional information

No response

@yantosca yantosca added the category: Bug Something isn't working label Mar 3, 2025
@yantosca yantosca self-assigned this Mar 3, 2025
@yantosca yantosca changed the title GCPy does not build on conda-forge with python==3.13 geoschem-gcpy checks do not pass on conda-forge with python==3.13 Mar 4, 2025
@yantosca yantosca changed the title geoschem-gcpy checks do not pass on conda-forge with python==3.13 GCPy does not build with the current environment.yml with python 3.13 or later Mar 4, 2025
@yantosca
Copy link
Contributor Author

yantosca commented Mar 4, 2025

The issue is that ESMF 8.4.0 and later can only be used with xesmf 0.7 or later. See: https://xesmf.readthedocs.io/en/latest/installation.html#notes-about-esmpy

I will try to peg the versions so that the environment will build with Python 3.12, 3.13, and 3.14, which are now supported versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant