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

[BUG] Tethys install command fails when libmamba is set to default solver #943

Closed
swainn opened this issue Apr 28, 2023 · 1 comment · Fixed by #946
Closed

[BUG] Tethys install command fails when libmamba is set to default solver #943

swainn opened this issue Apr 28, 2023 · 1 comment · Fixed by #946
Assignees
Labels
Milestone

Comments

@swainn
Copy link
Member

swainn commented Apr 28, 2023

Describe the bug
The tethys install command fails when libmamba solver is set as default (conda config --set solver libmamba).

To Reproduce
Steps to reproduce the behavior:

  1. Install libmamba solver and set as default solver per these directions: https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community/
  2. Try to install an app in Tethys

Expected behavior
It should install using libmamba or at least not fail if that isn't possible.

Errors/Traceback

tethys install -d
Installing dependencies...
Running conda installation tasks...
Retrieving notices: ...working... done
Traceback (most recent call last):
  File "/home/tethysdev/miniconda3/envs/tethys/bin/tethys", line 8, in <module>
    sys.exit(tethys_command())
             ^^^^^^^^^^^^^^^^
  File "/home/tethysdev/tethys/tethys_cli/__init__.py", line 67, in tethys_command
    args.func(args)
  File "/home/tethysdev/tethys/tethys_cli/install_commands.py", line 750, in install_command
    install_packages(
  File "/home/tethysdev/tethys/tethys_cli/install_commands.py", line 680, in install_packages
    [resp, err, code] = conda_run(
                        ^^^^^^^^^^
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/cli/python_api.py", line 118, in run_command
    raise e
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/cli/python_api.py", line 107, in run_command
    result = do_call(args, p)
             ^^^^^^^^^^^^^^^^
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 122, in do_call
    return getattr(module, func_name)(args, parser)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/notices/core.py", line 116, in wrapper    return_value = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/cli/install.py", line 248, in install
    solver_backend = context.plugin_manager.get_cached_solver_backend()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tethysdev/miniconda3/envs/tethys/lib/python3.11/site-packages/conda/plugins/manager.py", line 149, in get_solver_backend
    raise CondaValueError(
conda.exceptions.CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

Screenshots
N/A

Tethys Environment Information
Include output from these commands:

  • tethys version
  • conda info
  • conda list

Additional context
Add any other context about the problem here.

@swainn swainn added the bug label Apr 28, 2023
@swainn swainn added this to the Version 4.1 milestone Apr 28, 2023
@swainn swainn self-assigned this Apr 28, 2023
@swainn swainn changed the title [BUG] [BUG] Tethys install command fails when libmamba is set to default solver May 8, 2023
@swainn
Copy link
Member Author

swainn commented May 9, 2023

This appears to be an issue with conda libmamba solver package's support for the Python API. Posted an issue: conda/conda-libmamba-solver#202

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

Successfully merging a pull request may close this issue.

1 participant