Installing untools on ArcGIS Pro 2.4 behind a corporate firewall / proxy

2113
4
08-19-2019 09:28 AM
by Anonymous User
Not applicable

Hello All

We have a client trying to install the utility network on an ArcGIS Pro v 2.4 instance on a computer that is behind a corporate firewall/proxy that seems to be blocking out access to the files required to install the utility network tools.

What we have tried so far:

1. Clone the arcgispro-py3 environment to a new environment arcgispro-py3-clone and make that the default environment -> success!.

2. Installing from ArcGIS Pro Python packages "untools".  -> This fails silently without any error messages.  We do not see the package as installed.

3.  Open a Python command prompt with elevated privileges and try to use conda install untools -> Fails with an error message that it cannot connect to repo.anaconda.org.  When we try the URL in a web browser we can see the JSON of the configuration coming back.

4. Create a .condarc file in the users home directory and add the proxy servers to the file as follows 

proxy_servers:          http: http://proxy.domain.com:8080
         https: https://proxy.domain.com:8080

 we then try to run the conda install untools command again and get the same error message that we cannot connect to  the repo.anaconda.org

5. We then try to use the CNTLM Cntlm: Fast NTLM Authentication Proxy in C  authenticating proxy, generate hashes for it  and run it as a standalone program.  We point the .condarc to the CNTLM authenticating proxy an run the conda install untools command again.  Here we get an authentication error on the proxy although we know that the username and password is correct.

We are very much out of ideas at this point and would appreciate any input from fellow users who may have run into this.

Thank you.

4 Replies
AnthonyRyanEQL
Occasional Contributor III

Hermien,

I have been successful in setup the untools from beyond a firewall. I have never had to create the .condarc file. My proxy setting are placed within the .condarc file located in 'C:\Program Files\ArcGIS\Pro\bin\Python' and these are my settings

proxy_servers:
  http: http://proxy.domain.com:8080
  https: https://proxy.domain.com:8080
ssl_verify: False
To ensure access to the internet from the machine that I'm running the conda install from, I always have to open a website (eg. https://abc.net.au) first to ensure that myself/machine have been authenticated against the forward proxy to allow connection
Good luck
0 Kudos
JonDeRose
Esri Contributor

Hermien Bijker

Based on the items you have already attempted I would suggest reviewing the following topics within the UN Package Tools FAQ.   I've shared this with Python‌ for visibility as this is more of a core python issue.

I need to install the untools on a machine that is disconnected from the Internet. Can I install the tools?

I followed the steps above and still cannot see the untools. What should I do?

Bart-JanSchoenmakers
New Contributor III

I stumbled on this post when creating my python arcgis environment, so this reply may be a little bit late.

I also used the .condarc file to successfully to specify my proxy server.

There might be a problem with the format of the definition of http and https. In my case, I include the domain, user and password, like this:

   http: http://DOMAIN\USER:PASSWORD@PROXY_SERVER:8080

Like mentioned in your post you can test the proxy definition at the conda prompt, to check the possibility to install any new package. Your example "conda install untools". This should be enough to test proxy settings. 

As Jonathan referred this is a python issue.

0 Kudos
WillBooth1
New Contributor III

Another late reply, just in case everything else has failed and you can't get untools installed. All you should need is access to https://anaconda.org/Esri/untools/files from somewhere and the ability to copy from there the win-64/untools-*.*.*-py36_0.tar.bz2 file to the target Windows machine running ArcGIS Pro.

1) copy C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 to %localappdata%\ESRI\conda\envs\
2) Rename new arcgispro-py3 folder to arcgisproclone
3?) Edit file %localappdata%\ESRI\conda\envs\proenv.txt file to have text as follows and Save;
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgisproclone
4) Start ArcGIS Pro > Settings > Python > (Python Package Manager) > Manage Environments > Add if not there (browse for, then OK);
%localappdata%\ESRI\conda\envs\arcgisproclone
5) Change radio button to make arcgisproclone Active, then OK (note: Restart ArcGIS Pro for your environment changes to take effect)
6) Exit ArcGIS Pro
7) Start ArcGIS Pro
😎 In ArcGIS Pro > Settings > Python > (Python Package Manager) > note that the Project Environment has been updated
9) Get the version number of ArcGIS Pro (About ArcGIS Pro) then Exit ArcGIS Pro
10) In browser;
https://solutions.arcgis.com/utilities/help/utility-network-automation/get-started/frequently-asked-questions.htm#anchor2
11) Scroll down to "I need to install the untools on a machine that is disconnected from the Internet. Can I install the tools?" and click on the untools link, that will take you to;
https://anaconda.org/Esri/untools/files
12) Find the Name matching your version eg win-64/untools-2.4.2-py36_0.tar.bz2 and click on that green text to download the file
13) Windows start > ArcGIS > Python Command Prompt > More > Open file location
14) Right click on Python Command Prompt > Open
15) At command prompt > conda install "<path to untools-2.4.2-py36_0.tar.bz2>"
16) close command window
16) Start ArcGIS Pro > Settings > Python > (Python Package Manager) > Installed Packages > note that untools is installed