I am building a relatively simple python script to run a Geotagged Photo to Point tool, then run a few field calculations to add on some extra data. I managed to get the field calculations working, however, the Geotagged Photo to Point tool is giving me some problems.
When I run the tool on its own in the geoprocessing pane, it runs without issues. I also have ran it without problems in Modelbuilder. However, when I try to run it off Arcpy, I am greeted with the error 000824: The tool is not licensed. I have the advanced license and several extensions, but it baffles me why I can run it normally but not through Arcpy.
Below is my code sample so yall can pick it apart as needed. Thanks!
import arcpy
from sys import argv
InputFolder = arcpy.GetParameterAsText(0)
OutputFeatureClass = arcpy.GetParameterAsText(1)
arcpy.AddMessage("Running Geotagged Photos to Points")
# Geotagged Photos to Points
arcpy.management.GeoTaggedPhotosToPoints(InputFolder, OutputFeatureClass,
None, "ONLY_GEOTAGGED", "ADD_ATTACHMENTS")