I have, what I'm assuming is a pretty basic function, mostly pulled from an esri tutorial. However, it's running on an Azure function app in Python. The function below errors on that server with the following:
2024-10-08T00:46:12Z [Warning] MapView class replaced with a non-functional placeholder due to the following import error:
2024-10-08T00:46:12Z [Error] Error retrieving map: No module named 'notebook.notebookapp'
I am including the arcgis python library in the code, and I've done plenty of Python coding with it in the past, but I've never run across this error before. The code that causes this is below. Any ideas?
def GetMap():
gis = GIS(url, user, passwd)
try:
map = gis.map()
map.basemap = "arcgis-streets"
map.center = [34.027, -118.805]
map.zoom = 12
return map
except Exception as e:
logging.error(f"Error retrieving map: {e}")