Create new Python environment

3854
22
01-19-2020 12:24 AM
shafitrumboo
New Contributor III

I'm trying to create new environment using ArcPro 2.4 and also trying using command prompt but it shows error and that is.

CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/esri/win-64/mkl-2019.3-arcgispro_203.tar.bz2>
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.
CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/esri/win-64/mkl-2019.3-arcgispro_203.tar.bz2>
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.
CondaError: CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/esri/win-64/mkl-2019.3-arcgispro_203.tar.bz2>
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.
I'm suing ArcGIS Pro 2.4 and windows 10
22 Replies
AndresCastillo
MVP Regular Contributor


I've also noticed in the past:

From one source aws server ip:

https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer
is accessible using manual proxy server only.

yet,
https://internaldomain.example.com:port/webUrl
only available using the .pac setup script

 

 

In order for the .example.com addresses to work, I had to add *.example.com to the list of exceptions for the manual proxy server.

This is weird because in another equivalent server ( which has the same proxy/lan configurations----except the *.example.com exception) can reach both sites using the .pac setup script.
Other aws servers even only require the .pac setup script only!

I reference something similar here:
https://community.esri.com/t5/arcgis-online-questions/basemap-not-available-when-loading-map-in-arcg...

0 Kudos
NatalieM_Runyan
New Contributor III

In our case, the problem was a network firewall. I resolved it by going off-network and using WiFi.

AndresCastillo
MVP Regular Contributor


First, I had my company cyber team whitelist the recommended Esri and Conda urls to be allowed on the proxy:
http://downloads.esri.com/resources/enterprisegis/AGOL_Domain_Requirements.pdf 
https://community.esri.com/thread/211474-web-appbuilder-login-issue-using-internet-explorer-11 

https://*anaconda.org 
https://*.anaconda.com 

https://*.conda.io 


Then, I resolved by adding the http_proxy and https_proxy system environment variables:
https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#configure-conda-...
Configure conda for use behind a proxy server (proxy_servers)
By default, proxy settings are pulled from the HTTP_PROXY and HTTPS_PROXY environment variables or the system.

set them to http: http://proxy_server:port and https: https://proxy_server:port, respectively

 

 

 

After installing the Esri package, I removed those environment variables, since they were conflicting with access to other urls.

Alternatively, within anaconda itself, set these configurations:
conda config --set proxy_servers.http http://proxy_server:port
conda config --set proxy_servers.https https://proxy_server:port

0 Kudos