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

conda setup fails on dependency check when adding tools #282

Open
ml31415 opened this issue Mar 27, 2023 · 9 comments
Open

conda setup fails on dependency check when adding tools #282

ml31415 opened this issue Mar 27, 2023 · 9 comments

Comments

@ml31415
Copy link

ml31415 commented Mar 27, 2023

We had a github workflow for building conda packages, that was was setup to run nightly and did so without problems for quite some time. Lately setup-miniconda@v2 fails on the step Adding tools to 'base' env... with a ton of dependency errors, that aren't any dependency of the package, but of - I suppose - conda.

This is the lengthy error log:

https://github.com/ml31415/numpy-groupies/actions/runs/4527421235/jobs/7973256139#step:5:263

Workflow file:

https://github.com/ml31415/numpy-groupies/blob/master/.github/workflows/ci.yaml

I tried to get rid of any caching, but that didn't seem to be the issue. Any help with that would be greatly appreciated!

@goanpeca
Copy link
Member

goanpeca commented Mar 27, 2023

Hi @ml31415, thanks for the report and sorry for the issues. I will take a look. In the meantime, does using any specific version tag of the 2.x series work?

Screenshot 2023-03-27 at 9 42 49 AM

v2, always points to the latest one (as per github recommendations)

@jaimergp, any thoughts on the conflict resolution errors in the reported file?

Cheers!

@ml31415
Copy link
Author

ml31415 commented Mar 27, 2023

Thanks for the quick response, @goanpeca ! @dcherian was so kind, to fix our workflow using micromamba for now. I hope this issue report is still useful and updated the link above to a commit that has the described issue.

Btw. the first time that this issue occurred, was on January 12th. Maybe this helps, to narrow down the cause.

@oneebhkhan
Copy link

I am facing this exact issue. My CI setup has been working well for weeks. However on Friday 20th July my build failed because of dependency issues. And since then this workflow is failing all the time. There has been no change to either the environment.yml file or the workflow file. And I am unable to make sense of how to resolve this.

@jaimergp
Copy link
Member

Can you share a link to the logs @oneebhkhan? Thanks 🙏 !

@jaimergp
Copy link
Member

I need a link to the PR or CI run, not the direct logs (those expire after a bit, so it doesn't work right now).

@oneebhkhan
Copy link

The repo is in a private organization on Github so I won't be able to share that.
But I've attached the logs here:
conda github action logs.zip

@jaimergp
Copy link
Member

It looks like you are asking the solver to change from defaults to conda-forge, which is an operation that is exposed to a good deal of "friction". It'd be easier to start with Mambaforge as your base install, and then install whatever you need on top (see Example 10). Let me know if that helps.

@oneebhkhan
Copy link

It looks like this works! Thank you @jaimergp for getting back to me so quickly! Really appreciate it.

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

No branches or pull requests

4 participants