Select to view content in your preferred language

AttributeError: 'NoneType' object has no attribute '_tbx'

426
1
04-07-2024 08:18 AM
Labels (2)
SubhenduPanja
New Contributor

While performing Hot Spot analysis from Arcgis Pro notebook it returns AttributeError

 

from arcgis.features.analyze_patterns import find_hot_spots

find_hot_spots(incidents_feature_layer, output_name='Puget Sound Traffic Stops XX', gis=gis)

 

AttributeError: 'NoneType' object has no attribute '_tbx'

 please help me with the possible solution

0 Kudos
1 Reply
Dale_Honeycutt
Occasional Contributor II

 I haven't looked at your arcgis case above, so I can only suggest you try arcpy instead of arcgis. arcpy is native to ArcGIS Pro.  Hot Spot Analysis tools are found in the Spatial Statistics toolbox.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-statistics/hot-spot-analysis.htm

 

result = arcpy.stats.HotSpots()

 

0 Kudos