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

update to xarray 2025.01 #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

update to xarray 2025.01 #128

wants to merge 2 commits into from

Conversation

rwegener2
Copy link

Would Cryocloud be interested in bumping xarray to the latest version? Official datatree support came out in 2024.10.0, as well as number of bugfixes and improvements since then. We are currently using 2024.7.0.

What was done & how

  • xarray version was increased to 2025.01.0 in environment.yml

Copy link

github-actions bot commented Feb 4, 2025

Binder 👈 Test this PR on Binder

@rwegener2
Copy link
Author

/condalock

@rwegener2
Copy link
Author

rwegener2 commented Feb 4, 2025

Update: I've been poking around and I have to say I'm a bit confused by this error. The error appears to be that libmamba couldn't solve the environment (critical libmamba Could not solve for environment specs).

When I build the environment with the updated environment.yml manually from the hub, though (using conda env create -f environment.yml) I don't get any conflicts.

Failure step from the logs:

Step 40/55 : RUN TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '

@weiji14 weiji14 mentioned this pull request Feb 6, 2025
2 tasks
@weiji14
Copy link
Member

weiji14 commented Feb 6, 2025

Hmm, the error might be something to do with mamba=2? I tried using mamba=1 and it managed to solve the environment.yml file, but when I upgraded to mamba=2.0.6, I got this error locally:

error    libmamba Could not solve for environment specs
    The following package could not be installed
    └─ py-xgboost >=2.1.1 ^cpu.*,2.1.*$ does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs

Looks like a bug with mamba=2 not being able to parse this line

- py-xgboost~=2.1.1=cpu*

The cpu* build string glob pattern might be the problematic part. I found this semi-related issue - mamba-org/mamba#3783 that hints at mamba=2 only supporting trailing globs in the version string (i.e. the 2.1.1 part), maybe it doesn't support the build string part (e.g. cpu_pyh1ce2f49_3). See also mamba-org/mamba#3601

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.

3 participants