Skip to content

nextstrain update conda fails when runtime has not been set up #440

Description

@corneliusroemer
$ nextstrain update conda
Checking for newer versions of Nextstrain CLI…

A new version of nextstrain-cli, 10.2.0, is available!  You're running 9.0.0.

See what's new in the changelog:

    https://github.com/nextstrain/cli/blob/10.2.0/CHANGES.md#readme

Upgrade your Conda-based installation running:

    mamba install -p /Users/cr/micromamba/envs/py12 nextstrain-cli==10.2.0

Updating conda runtime…
Updating Conda package nextstrain-base from None to 20250602T192245Z…

Updating Conda packages in /Users/cr/.nextstrain/runtimes/conda/env…
  - nextstrain-base ==20250602T192245Z
Error running ('/Users/cr/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/cr/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'update', 'nextstrain-base ==20250602T192245Z', '--prefix', '/Users/cr/.nextstrain/runtimes/conda/env', '--override-channels', '--strict-channel-priority', '--channel', 'nextstrain', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin', '--allow-uninstall', '--allow-downgrade')
Traceback (most recent call last):
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/site-packages/nextstrain/cli/runner/conda.py", line 389, in micromamba
    subprocess.run(argv, env = env, check = True)
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/cr/.nextstrain/runtimes/conda/micromamba/bin/micromamba'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/site-packages/nextstrain/cli/runner/conda.py", line 529, in update
    micromamba("update", update_spec)
  File "/Users/cr/micromamba/envs/py12/lib/python3.12/site-packages/nextstrain/cli/runner/conda.py", line 391, in micromamba
    raise InternalError(f"Error running {argv!r}") from err
nextstrain.cli.errors.InternalError: Error running ('/Users/cr/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/cr/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'update', 'nextstrain-base ==20250602T192245Z', '--prefix', '/Users/cr/.nextstrain/runtimes/conda/env', '--override-channels', '--strict-channel-priority', '--channel', 'nextstrain', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin', '--allow-uninstall', '--allow-downgrade')

Updating failed!

Maybe upgrading Nextstrain CLI, as noted above, will help?

PR fails due to action timeout, seems like there's a problem with the build:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions