Getting started with ArcGIS API for Python, and something seems amiss. I was hoping to simply get to the point where I could see a simple map and feel a nice sense of progress, but, while I get no error messages when I try to display the map, I also get no map.
This is probably something VERY simple, but I haven't been able to figure out under my own power. See image, please.
Thank you,
Randy McGregor
Surely. These are the steps I follow:
I've attached a screenshot with the requested information about the environment below:
Try clicking that "Trusted" button in the top right side
I pressed the 'Trusted' button but there's no change to the code - same error message
Well, It's hard to say what exactly is causing the problem, since there are so many ways that can go wrong, it may be useful to provide you a proven working one:
python version: 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] arcgis API version: 1.5.0 widgetnbextension: 3.2.1 ipywidgets version: 7.2.1
and check if the map widget is enabled in notebook:
jupyter nbextension list
if not, enable it:
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix arcgis
Although we cannot pinpoint the issue, but we can safely say it's a map widget problem and there are many layers of stuff (Python, ipython, ipywidgets, widgetsnbextension and the MapView) involved to make a widget working and any mismatch can cause it collapse.
There's a GitHub post that might have well passed the used-by date, but still, it can provides some clue for this sort of problem:
Map is not displayed in Jupyter notebook · Issue #159 · Esri/arcgis-python-api · GitHub
UPDATE: I called ESRI customer service and we figured out that I needed to upgrade the ArcGIS Pro software from 2.1 to 2.2 because they were able to reproduce the 404 GET issue in ArcGIS Pro 2.1 but not if using ArcGIS Pro 2.2. After upgrading to 2.2 and updating all the python packages, the code worked perfectly! Thank you for providing feedback!
I am having this same issue. I have this for my code:
My versions are:
3.6.5
1.4.1
7.2.1
any help would be appreciated
Thanks everyone for input. This was related to a problem with ArcGIS Pro install, as many suggested. I tried several things and what I think did the trick was loading a new instance of Jupyter Notebook that is different from the one that came with ArcGiS Pro. This opens and "sees" the ArcGIS API for Python, draws maps and basically works. Not autofill though
I have a fresh install of ArcGIS Pro and am trying to use jupyter-lab to work through the exercises. As others have discovered, when I try to display a map it generates a broken link:
I've worked through everything in this thread - ArcGIS Pro is updated, conda updated everything, etc. No dice.
Console window:
Any help would be most appreciated.
-David
I'm having a similar issue.
I have two cells running the exact same code.
and:
The first block of code returns an error I've never seen before and can't find online:
The second block returns a map box with no map and this error:
Looking in the console it appears to be this error that is causing the issue.
Is anyone familiar with this error and knows how to fix this?
I'm doing a tutorial and can't even figure out how to just show a map.
I rebooted jupyter numerous of times and also rebooted my pc, hoping that would fix it but sadly no.
Thanks in advance!
With kind regards,
Guus van der Putten
I also saw that the myGIS.map in the first block didn't have the () behind them.
This did solve the bound method error, but sadly not the second error.