Error to clone Python environment by Python command

872
5
06-06-2023 09:24 AM
spiderman90
Occasional Contributor

Hello ,

i have tried to clone the Python environment through packet manager at ArcGis pro but i got error ,i believe because of the firewall .it is not creating the new environment and not installing any package for the new environment 

So I tried to do clone at Python command 

conda create  —clone arcgispro-py3 —name <new environment name>
but I got this error :

Conda Error : conda Http error : http 000 connection failed for url <https://conda.anaconda.org/Esri/win-64/ArcGis pro-2.6.0.tarzbz2> 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 

 

as info : I have ArcGis pro 3.1 

How could I solve it ? 

Tags (2)
0 Kudos
5 Replies
Kepa
by Esri Contributor
Esri Contributor

Hello @spiderman90,

Seems that either the firewall is preventing the client (PRO/cmd) to get to conda.anaconda.org or a proxy is denying requests to conda repository. Check inbound/outbound rules of the firewall and verify (with IT) that your computer have full access to the repositories through the proxy (if any).

Also, https://conda.anaconda.org/Esri/win-64/ArcGis url does not exist anymore. Don't know why is requesting that path. Make sure you are running conda from ArcGIS' Python Command Prompt.

Cheers,

 

0 Kudos
spiderman90
Occasional Contributor

thanks for reply .

Iam running it through   Python command prompt .

I am admin user .How could I check that I have all access to repositories ?

is there working method  without conda and packet manager to clone the environment that I could try ?

 

0 Kudos
Kepa
by Esri Contributor
Esri Contributor

If you wanna create a clone environment from arcgipro-py3, then there is no a workaround to clone the env unless you do not need arcpy library.

I'd try to run the following command before clonning the environment to verify is not SSL related. This is not  a good practice (execute it at your own risk)

 

conda config --set ssl_verify False

 

If the issue still persists, check with IT if any proxy or firewall rule is blocking requests.

Another option could be, uninstall completely ArcGISPRO (including Windows Registry, local folders, everything) and perform a new clean install in case any other conda from previous versions is altering somehow current conda installation.

0 Kudos
spiderman90
Occasional Contributor

Thanks for ur reply .

i did it already ,it started to clone after I did conda config  - -set  ssl_verfiy False .and it started to download packages but after 5 min , it stopped and did  not complete the clone process .

it shows me error message 

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054 )

Do u have any idea for me ?what should I do to clone the environment with conda ? 

0 Kudos
HannesZiegler
Esri Contributor

@spiderman90 have you whitelisted the following URLs? 

https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/what-is-conda.htm#ESRI_SECTION1_960C7A002...

If you are behind a proxy, try configuring %programfiles%\arcgis\pro\bin\python\.condarc for use behind a proxy server. 

https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#config-prox...

Note that being behind a proxy server might cause you issues elsewhere as well. We are investigating this.

0 Kudos