Select to view content in your preferred language

Jupyter Notebook fails to load custom locator outside of ArcGIS Pro

139
2
Friday
Labels (2)
BBarbs
by
New Contributor II

Hello Community!

I have an issue with a notebook script I was hoping you all could help me with. This script uses a custom locator to geocode addresses and we recently uploaded it to our ArcGIS Enterprise portal (we're on 11.2). I changed the script to point to the URL instead of the locator’s local path and it all works as it should, as long as the notebook is running within ArcGIS Pro (I’m on 3.2.2).

BBarbs_0-1719251948977.png

 

When I open the same notebook in a standalone notebook (either via Python terminal or in VSCode), it throws a ValueError and fails to load the locator:

BBarbs_1-1719252010951.jpeg

 

Both programs are running on the same environment.

Does anyone know why this notebook would work from within ArcGIS Pro, but not in another program?

Than you for your help!

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

Have you blanked out the locator URL in your screenshot?

Also, what python environment is your notebook using? Is it the same one as in Pro?

- Josh Carlson
Kendall County GIS
0 Kudos
BBarbs
by
New Contributor II

Hi Josh, thank you for the reply! Sorry I should have mentioned the URL is blanked out in the screenshot. I edited the original post to include it.

The notebook is running the same environment as Pro (a clone of the default ArcGIS Pro environment).

Thanks!

0 Kudos