I'm trying to run a python shutdown script and get this error -
"The workspace has Python Compatibility set to 'Esri ArcGIS Python 3.9', which requires an appropriate version of ArcGIS Pro or ArcGIS Server"
I've also tried calling the script from cmd line and get this in the engine log -
"Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 File "createaprx.py", line 9, in <module>
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 import arcpy
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 File "C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcPy\\arcpy\\__init__.py", line 77, in <module>
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 from arcpy.geoprocessing import gp
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 File "C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcPy\\arcpy\\geoprocessing\\__init__.py", line 14, in <module>
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 from ._base import *
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 File "C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcPy\\arcpy\\geoprocessing\\_base.py", line 14, in <module>
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 import arcgisscripting
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 File "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\arcgisscripting\\__init__.py", line 131, in <module>
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 from ._arcgisscripting import *
Thu-19-Jan-2023 10:02:35.348 AM INFORM Thread-1100 WP301_Engine6 RuntimeError: The Product License has not been initialized."
Arc Pro is setup and licensed, I'm able to run the script within it and also from cmd line. It just fails with FME server.