8000 miniforge3 tries to access anaconda.org when creating a conda environment · Issue #784 · conda-forge/miniforge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

miniforge3 tries to access anaconda.org when creating a conda environment #784

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

Open
mcovington-takara opened this issue May 6, 2025 · 7 comments
Labels
question Further information is requested

Comments

@mcovington-takara
Copy link

Comment:

The issue:

While working on a system that has anaconda.org blocked by IT, creation of a conda environment fails because miniforge3 attempts to connect to https//conda.anaconda.org/conda-forge/osx-64. Both conda config --show channels and conda config --show-sources show that the only channel in the config is conda-forge. Is there a way to avoid contacting anaconda.org?

The command:

conda create --name test_env conda-forge::python==3.12.5

The portions of the error mentioning anaconda:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/osx-64/repodata.json.zst (Caused by ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))
raise CondaHTTPError(
conda.exceptions.CondaHTTPError: HTTP 000 CONNECTION FAILED for url <[https://conda.anaconda.org/conda-forge/osx-64/repodata.json>](https://conda.anaconda.org/conda-forge/osx-64/repodata.json%3E)
Elapsed: -


An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https//conda.anaconda.org/conda-forge/osx-64'
@mcovington-takara mcovington-takara added the question Further information is requested label May 6, 2025
@mcovington-takara mcovington-takara changed the title miniforge3 tries to access https://conda.anaconda.org/conda-forge/osx-64/repodata.json when creating a conda environment miniforge3 tries to access anaconda.org when creating a conda environment May 6, 2025
@hmaarrfk
Copy link
Contributor
hmaarrfk commented May 6, 2025

good luck, we host on anaconda.org.

work with your IT.

https://anaconda.org/conda-forge/

@hmaarrfk hmaarrfk closed this as completed May 6, 2025
@hmaarrfk
Copy link
Contributor
hmaarrfk commented May 6, 2025

you can make your own mirror....

@hmaarrfk
Copy link
Contributor
hmaarrfk commented May 6, 2025

Reopening because:

It would be interesting to document how your IT works around this.

Perhaps there is something that can be shared to the community.

But today, Anaconda.org supplies us with storage space and plenty to tech support. it can't be ignored.
Please read https://conda-forge.org/blog/2020/11/20/anaconda-tos/ and share with your IT.

@mcovington-takara
Copy link
Author

@hmaarrfk - Thank you for explaining the dependency and for linking to the blog post. I will share this information and add any updates here.

@mcovington-takara
Copy link
Author

@hmaarrfk - Quick follow-up: If IT were to block only repo.anaconda.com rather than all anaconda.com, would that allow miniforge3 to function with conda-forge and bioconda channels?

@hmaarrfk
Copy link
Contributor
hmaarrfk commented May 6, 2025

@hmaarrfk - Quick follow-up: If IT were to block only repo.anaconda.com rather than all anaconda.com, would that allow miniforge3 to function with conda-forge and bioconda channels?

I'm not sure please troubleshoot with them.

@traversaro
Copy link

I am not 100% sure, but I guess that by using https://repo.prefix.dev/conda-forge instead of conda-forge you can avoid anaconda.org:

conda create -n testprefix -c https://repo.prefix.dev/conda-forge --override-channels python==3.12.5

should avoid to contact anaconda.org at all. See https://prefix.dev/blog/towards_a_vendor_lock_in_free_conda_experience for more info.

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

No branches or pull requests

3 participants
0