Giter Club home page Giter Club logo

Comments (4)

joverlee521 avatar joverlee521 commented on September 28, 2024 1

Tracked the underlying issue in nextstrain/conda-base#38, but there should still be better messages from the CLI if the runtime was not actually updated.

from cli.

joverlee521 avatar joverlee521 commented on September 28, 2024 1

Ah, this could be as simple as updating the version of micromamba we are using for our conda runtime.

I overrode the default version with NEXTSTRAIN_CONDA_MICROMAMBA_VERSION=1.1.0 nextstrain setup conda --force and now it produces the expected error:

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

nextstrain-cli is up to date!

Updating conda runtime…
Updating Conda package nextstrain-base from 20230615T171309Z to 20230717T174555Z…

Updating Conda packages in /Users/jlee2346/.nextstrain/runtimes/conda/env…
  - nextstrain-base ==20230717T174555Z

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/osx-64                                          Using cache
conda-forge/noarch                                          Using cache
bioconda/osx-64                                             Using cache
bioconda/noarch                                             Using cache
nextstrain/noarch                                             No change
nextstrain/osx-64                                             No change
error    libmamba Could not solve for environment specs
    Encountered problems while solving:
      - package nextstrain-base-20230717T174555Z-h0dc7051_0_locked requires nodejs ==18.16.1 h46e3395_0, but none of the providers can be installed
    
    The environment can't be solved, aborting the operation
    
critical libmamba Could not solve for environment specs
Error running ('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'update', 'nextstrain-base ==20230717T174555Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--channel', 'nextstrain', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin')
Traceback (most recent call last):
  File "/Users/jlee2346/Repos/nextstrain/cli/nextstrain/cli/runner/conda.py", line 347, in micromamba
    subprocess.run(argv, env = env, check = True)
  File "/Users/jlee2346/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'update', 'nextstrain-base ==20230717T174555Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--channel', 'nextstrain', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin')' returned non-zero exit status 1.

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

Traceback (most recent call last):
  File "/Users/jlee2346/Repos/nextstrain/cli/nextstrain/cli/runner/conda.py", line 486, in update
    micromamba("update", update_spec)
  File "/Users/jlee2346/Repos/nextstrain/cli/nextstrain/cli/runner/conda.py", line 349, in micromamba
    raise InternalError(f"Error running {argv!r}") from err
nextstrain.cli.errors.InternalError: Error running ('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'update', 'nextstrain-base ==20230717T174555Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--channel', 'nextstrain', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin')

Updating failed!

from cli.

joverlee521 avatar joverlee521 commented on September 28, 2024

This also fails to update when I try to install specific versions with the NEXTSTRAIN_* envvars:

$ NEXTSTRAIN_CONDA_CHANNEL=nextstrain/label/main \
NEXTSTRAIN_CONDA_BASE_PACKAGE="nextstrain-base ==20230628T211222Z" \
  nextstrain update conda
Checking for newer versions of Nextstrain CLI…

nextstrain-cli is up to date!

Updating conda runtime…
Updating nextstrain-base from 20230615T171309Z to ==20230628T211222Z…

Updating Conda packages in /Users/jlee2346/.nextstrain/runtimes/conda/env…
  - nextstrain-base ==20230628T211222Z

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

nextstrain/label/main/noarch                       130.0 B @ 231.0 B/s  0.6s
nextstrain/label/main/osx-64                        30.2kB @  34.1kB/s  0.9s
bioconda/osx-64                                      4.2MB @   1.5MB/s  3.1s
bioconda/noarch                                      4.6MB @   1.1MB/s  4.0s
conda-forge/noarch                                  13.4MB @   1.7MB/s  8.8s
conda-forge/osx-64                                  29.8MB @   2.7MB/s 13.0s
Transaction

  Prefix: /Users/jlee2346/.nextstrain/runtimes/conda/env

  All requested packages already installed


Transaction starting
Transaction finished
Cleaning up…

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

Collect information..
Cleaning index cache..
Cleaning lock files..
Cleaning tarballs..
Cleaning packages..

Runtime updated!

from cli.

joverlee521 avatar joverlee521 commented on September 28, 2024

Running the forced setup with NEXTSTRAIN_* envvars produces an actual error:

$ NEXTSTRAIN_CONDA_CHANNEL=nextstrain/label/main \
NEXTSTRAIN_CONDA_BASE_PACKAGE="nextstrain-base ==20230628T211222Z" \
  nextstrain setup --force conda
Setting up conda…
Removing existing directory /Users/jlee2346/.nextstrain/runtimes/conda/micromamba to start fresh…
Requesting Micromamba from https://api.anaconda.org/download/conda-forge/micromamba/1.0.0/osx-64/micromamba-1.0.0-1.tar.bz2…
Downloading and extracting Micromamba to /Users/jlee2346/.nextstrain/runtimes/conda/micromamba…
Removing existing directory /Users/jlee2346/.nextstrain/runtimes/conda/env to start fresh…
Installing Conda packages into /Users/jlee2346/.nextstrain/runtimes/conda/env…
  - nextstrain-base ==20230628T211222Z

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

nextstrain/label/main/osx-64                        30.2kB @  79.6kB/s  0.4s
nextstrain/label/main/noarch                       135.0 B @ 278.0 B/s  0.5s
bioconda/osx-64                                      4.2MB @   2.1MB/s  2.2s
bioconda/noarch                                      4.6MB @   1.5MB/s  3.1s
conda-forge/noarch                                  13.4MB @   2.4MB/s  6.3s
conda-forge/osx-64                                  29.8MB @   3.0MB/s 11.6s
Encountered problems while solving:
  - package nextstrain-base-20230628T211222Z-h0dc7051_0_locked requires git ==2.41.0 pl5321h5c607e1_0, but none of the providers can be installed

The environment can't be solved, aborting the operation
error    libmamba Could not solve for environment specs
critical libmamba UnsatisfiableError
Error running ('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'create', 'nextstrain-base ==20230628T211222Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--strict-channel-priority', '--channel', 'nextstrain/label/main', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin', '--allow-uninstall', '--allow-downgrade')
Traceback (most recent call last):
  File "nextstrain.cli.runner.conda", line 347, in micromamba
    subprocess.run(argv, env = env, check = True)
  File "subprocess", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'create', 'nextstrain-base ==20230628T211222Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--strict-channel-priority', '--channel', 'nextstrain/label/main', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin', '--allow-uninstall', '--allow-downgrade')' returned non-zero exit status 1.

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

Traceback (most recent call last):
  File "nextstrain.cli.runner.conda", line 233, in setup_prefix
    micromamba("create", *packages)
  File "nextstrain.cli.runner.conda", line 349, in micromamba
    raise InternalError(f"Error running {argv!r}") from err
nextstrain.cli.errors.InternalError: Error running ('/Users/jlee2346/.nextstrain/runtimes/conda/micromamba/bin/micromamba', '--root-prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/micromamba', '--no-rc', '--no-env', '--yes', 'create', 'nextstrain-base ==20230628T211222Z', '--prefix', '/Users/jlee2346/.nextstrain/runtimes/conda/env', '--override-channels', '--strict-channel-priority', '--channel', 'nextstrain/label/main', '--channel', 'conda-forge', '--channel', 'bioconda', '--no-py-pin', '--allow-uninstall', '--allow-downgrade')

Set up failed!

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.