Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Conda-Build Dependency Compatibility Issue with API Changes in Version 24.1.0 #392

Closed
itamarg365 opened this issue Feb 5, 2024 · 3 comments · Fixed by #393
Closed

Conda-Build Dependency Compatibility Issue with API Changes in Version 24.1.0 #392

itamarg365 opened this issue Feb 5, 2024 · 3 comments · Fixed by #393

Comments

@itamarg365
Copy link

itamarg365 commented Feb 5, 2024

After upgrading to conda-build version 24.1.0, we have encountered compatibility issues with certain APIs, specifically related to mambabuild.

Steps to Reproduce:

  1. Upgrade conda-build to version 24.1.0.
  2. Execute conda mambabuild . --no-tests
  3. Observe
ImportError: cannot import name 'update_index' from 'conda_build.index' (/home/itay/.conda/envs/myvenv/lib/python3.10/site-packages/conda_build/index.py)

Links to API Changes in conda-build 24.1.0:

Release Notes
Specific PR

Additional Information:

Workaround:

Downgrade conda-build to 3.28.4

Related Issues:

Environment Information:

Operating System: macOS Sonoma
Conda Version: 4.10.3
Python Version: 3.10.13

Suggested solution:

Use update_index directly from conda-index at https://github.com/mamba-org/boa/blob/main/boa/cli/mambabuild.py#L16

Note:

I not a contributor in this repo, that why I didn't create a PR. I guess that the version change created many more API breaks in this package, and this is just one indication.
Feel free to contribute to this discussion, and let me know if there are any specific steps, code snippets, or logs that can help in resolving this issue. Thank you!

@APJansen
Copy link

APJansen commented Feb 6, 2024

We ran into the same issue, I created a minimal example repo where it shows up in the CI.

@dholth
Copy link

dholth commented Feb 7, 2024

It should be updated to use https://github.com/conda/conda-index/blob/main/conda_index/index/__init__.py#L111 or the ChannelIndex class directly as shown in https://github.com/conda/conda-index/blob/main/conda_index/cli/__init__.py , as a side effect this version of conda-index is much faster.

@jaimergp
Copy link
Contributor

jaimergp commented Feb 8, 2024

Added #393 and conda-forge/conda-forge-repodata-patches-feedstock#657 to mitigate the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants