Mamba fails to resolve hostname
See original GitHub issueEnvironment Information
- geospatial version: current
- Python version: 3.9
- Operating System: OSX Monterey 12.3.1
Description
Hey Qiusheng,
followed the install instructions with conda + mamba but get ‘could not resolve hostname’ for every package
What I Did
followed the instructions for a clean 3.9 install
mamba install -c conda-forge geospatial
here is the stack trace for one package as an example (this pattern repeats for all packages, not just voila)
voila [> ] (00m:05s) Couldn't resolve host name
this is followed by a conda report, I’ll dump it here:
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/conda/exceptions.py", line 1082, in __call__
return func(*args, **kwargs)
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 882, in exception_converter
raise e
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 876, in exception_converter
exit_code = _wrapped_main(*args, **kwargs)
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 835, in _wrapped_main
result = do_call(args, p)
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 716, in do_call
exit_code = install(args, parser, "install")
File "/Users/jakegearon/opt/anaconda3/lib/python3.8/site-packages/mamba/mamba.py", line 572, in install
downloaded = transaction.prompt(
RuntimeError: Download error (6) Couldn't resolve host name [https://conda.anaconda.org/conda-forge/noarch/aenum-3.1.11-pyhd8ed1ab_0.tar.bz2]
`$ /Users/jakegearon/opt/anaconda3/bin/mamba install -c conda-forge geospatial`
environment variables:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=geo
CONDA_EXE=/Users/jakegearon/opt/anaconda3/bin/conda
CONDA_PREFIX=/Users/jakegearon/opt/anaconda3/envs/geo
CONDA_PREFIX_1=/opt/miniconda3
CONDA_PREFIX_2=/Users/jakegearon/opt/anaconda3
CONDA_PREFIX_3=/Users/jakegearon/opt/anaconda3/envs/IS2SE
CONDA_PROMPT_MODIFIER=(geo)
CONDA_PYTHON_EXE=/Users/jakegearon/opt/anaconda3/bin/python
CONDA_ROOT=/Users/jakegearon/opt/anaconda3
CONDA_SHLVL=4
CURL_CA_BUNDLE=<not set>
JAVA_LD_LIBRARY_PATH=:-
PATH=/Library/Frameworks/GDAL.framework/Programs:/usr/local/opt/node@10/bin
:/Users/jakegearon/opt/anaconda3/envs/geo/bin:/opt/miniconda3/condabin
:/Users/jakegearon/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/us
r/sbin:/sbin:/opt/X11/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : geo
active env location : /Users/jakegearon/opt/anaconda3/envs/geo
shell level : 4
user config file : /Users/jakegearon/.condarc
populated config files : /Users/jakegearon/.condarc
conda version : 4.12.0
conda-build version : 3.21.4
python version : 3.8.13.final.0
virtual packages : __osx=10.16=0
__unix=0=0
__archspec=1=x86_64
base environment : /Users/jakegearon/opt/anaconda3 (writable)
conda av data dir : /Users/jakegearon/opt/anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/jakegearon/opt/anaconda3/pkgs
/Users/jakegearon/.conda/pkgs
envs directories : /Users/jakegearon/opt/anaconda3/envs
/Users/jakegearon/.conda/envs
platform : osx-64
user-agent : conda/4.12.0 requests/2.27.1 CPython/3.8.13 Darwin/21.4.0 OSX/10.16
UID:GID : 501:20
netrc file : /Users/jakegearon/.netrc
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
I’ve checked that mamba and conda both work for individual packages (I use mamba normally). I think the conda installation of geospatial works, but I haven’t been able to wait out the solver yet to confirm.
Tried multiple new envs and even restarting my computer and no dice. any advice?
Cheers,
Jake
Issue Analytics
- State:
- Created a year ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
How do I report a bug in Sage 9.2 (app version) for macOS?
3. mamba create -n sage sage -c conda-forge # replaces "conda create..." ... RuntimeError: Download error (6) Couldn't resolve host name ...
Read more >[sage-devel] How do I report a bug in Sage 9.2 (app version ...
I get an unexpected error doing that (with conda/anaconda already installed): ... RuntimeError: Download error (6) Couldn't resolve host name ...
Read more >Troubleshooting - Mamba's documentation! - Read the Docs
Mamba sometimes stops working if you update to a very recent version of Conda. Please downgrade to the latest working a version and...
Read more >Why am I getting this error in Nodejs? Error: Couldn't resolve ...
While testing registration API by Insomnia I am getting this error in insomnia preview: Couldn't resolve host name. I am using mongodb ...
Read more >Known issues for Watson Studio and supplemental services
Data Refinery flow jobs fail when data comes from a connected data asset that has ... [root@api.xen-ss-ocs-408-409.cp.fyre.ibm.com ~]# oc get pods | grep ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jameshgrn Good to know you sorted it out. I have tested with Python 3.9 and 3.10, both worked fine. This is a weird issue I can’t produce on my Linux and Mac machines. If others are experiencing the same issue, please feel free to comment down below.
I just tested it on a Mac Mini with macOS Monterey and did not encounter any errors. Could it be an network issue during your installation?