Select to view content in your preferred language

Events Python API not working

104
0
04-17-2025 10:38 AM
LondonWalker
Regular Contributor

I am following the example exactly from the sample and am getting the error "AttributeError: 'EventManager' object has no attribute 'get'". The example is on this page https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event and I am doing. I tried it in a Notebook in ArcGIS Online and it worked but I can't get it to work outside the notebook. Am I missing a step or something?

 

from arcgis.gis import GIS

gis = GIS()
myHub = gis.hub
myEvents = myHub.events.get(41)

 

0 Kudos
0 Replies