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

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel #2153

Open
edelrio23 opened this issue Apr 16, 2024 · 1 comment
Open

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel #2153

edelrio23 opened this issue Apr 16, 2024 · 1 comment
Labels

Comments

@edelrio23
Copy link

Your question:

Hello Everyone,
I am having an issue with running channels on conda. I am trying to run this command conda create --name <filename> --file <filename> but I keep getting this error: UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel. When I initially ran 'conda create...' I got this error:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - barrnap==0.9=hdfd78af_4
  - hmmer==3.4=hdbdd923_1
  - iqtree==2.3.0=h21ec9f0_0
  - bedtools==2.31.1=hf5e1c6e_1
  - mafft==7.525=h031d066_1
  - ete3==3.1.3=pyh1d129d4_0

Current channels:

  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Since I didn't have the appropriate channels I did conda config --add channels <channelname> for all the channels that I needed. Then I get this error:

Collecting package metadata (current_repodata.json): done
Solving environment: done

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel mafft <https://conda.anaconda.org/mafft>

The channel is not accessible or is invalid.

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

I have tried clearing the cache by doing conda clean -i then I tried rerunning; got the same error. Removed all the channels with conda config --remove-key channels. Re-added all of the channels but I am still getting the same error. Any suggestions on what I could do to fix this would be much appreciated. Thank you for your time!

@mfansler
Copy link
Member

What channel are you adding? Initially it appears you added mafft, which is a package name, not a channel name. It looks like the bioconda channel needs to be added. Please read their documentation as channel order is particularly important.

If the issue is you are having trouble identifying where the bad configuration is, then you should run

conda config --show-sources

which will reveal what .condarc files are contributing configuration settings.

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

No branches or pull requests

2 participants