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

can i use mamba with constructor? #1627

Open
hmaarrfk opened this issue Apr 14, 2022 · 8 comments
Open

can i use mamba with constructor? #1627

hmaarrfk opened this issue Apr 14, 2022 · 8 comments
Labels
type::feature-request New feature proposal

Comments

@hmaarrfk
Copy link
Contributor

I've been having some issues solving environments with constructor. It used to work but it seems that with pypy things are struggling.

Is there a way to use mamba with constructor? I saw https://github.com/mamba-org/monstructor but it seems to be rather old.

I also saw that you can install the libmamba solver somehow?

Would that work with constructor?

@chrisburr
Copy link
Contributor

You can use constructor --conda-exe=/path/to/micromamba ... to use mamba at install time. Note this requires recent constructor and micromamba versions.

To use libmamba for solving the environment in constructor itself I suspect conda config --set experimental_solver libmamba will work (conda 4.12+) but I haven't tried.

@hmaarrfk
Copy link
Contributor Author

I think I'll have to try that. I also noticed i probably ah e to use a non-base environment as well. There is a note that experimental solvers are disabled in base

@chrisburr
Copy link
Contributor

The environment you use shouldn't matter. I'm not sure if the experimental solvers will be used but if not this will probably need to be the place that needs to be patched to enable them: https://github.com/conda/constructor/blob/master/constructor/conda_interface.py#L56-L65

@hmaarrfk
Copy link
Contributor Author

Thanks, with a bit of patching it helped me troubleshoot.

Your stuff is great

@hmaarrfk
Copy link
Contributor Author

ill try to submit a patch to construcgor.

@hmaarrfk
Copy link
Contributor Author

the issue is that one would want to import _get_solver_class but it is a private method.

https://github.com/conda/conda/blob/c92b2062e34764e4ff0ac69b975022af98762d50/conda/core/solve.py#L42

calling that helped me.

@raphaeljolivet
Copy link

Hi, What is the status for this ?
Did you manage to get constructor use libmamba as a solver ?
How ?

Thanks for your help.

@hmaarrfk
Copy link
Contributor Author

hmaarrfk commented Aug 3, 2022

I had to patch things up a bit since constructor didn't use the new solver mechanics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

4 participants