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

[Magic CLI]: nodefaults not properly handled in environment.yml #211

Open
comods opened this issue Sep 2, 2024 · 1 comment
Open

[Magic CLI]: nodefaults not properly handled in environment.yml #211

comods opened this issue Sep 2, 2024 · 1 comment
Labels
magic-cli Anything related to the Magic CLI

Comments

@comods
Copy link

comods commented Sep 2, 2024

Issue description

See conda/conda-lock#418

If an environment.yml file has a channel that is nodefaults, this isn't suppose to be appended to conda-forge's url. It is suppose to mean, do NOT use any channels outside the environment.yml file, like conda-forge.

Steps to reproduce

Try to use the environment.yml created by: https://github.com/quantco/pixi-pack

magic --no-progress init --import "environment.yml"

Workaround is to create a copy of the .yml file with nodefaults stripped out and to change some berried magic configs.

ERROR error=repodata not found
ERROR error=repodata not found
ERROR error=could not find subdir 'noarch' in channel 'https://conda.anaconda.org/nodefault/'
  × could not find subdir 'noarch' in channel 'https://conda.anaconda.org/
  │ nodefault/'
  ╰─▶ HTTP status client error (404 Not Found) for url (https://
      conda.anaconda.org/nodefault/noarch/repodata.json)

Version Info

Linux fd2037a033db 5.15.154+ x86_64
jupyter_client   : 8.6.2
jupyter_core     : 5.7.2
traitlets        : 5.14.3
magic 0.2.2
conda 24.7.1
max 24.4.0 (59977802)
Modular version 24.4.0-59977802-release
mojo 24.4.0 (59977802)
Python 3.11.9
@ehsanmok ehsanmok added magic-cli Anything related to the Magic CLI and removed modular-cli labels Oct 17, 2024
@ehsanmok
Copy link
Member

Is this still an issue with the latest release which you can update magic by magic self-update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
magic-cli Anything related to the Magic CLI
Projects
None yet
Development

No branches or pull requests

2 participants