Server Workflow - Run Application - getting python license errors
I'm having some trouble getting a python script to run. The script runs fine when I execute it from command script. When I try to run the command script from the "Run Application" activity I get a licensing error:
RuntimeError: The Product License has not been initialized.
Both my direct command script testing and IIS app pool running workflow are running under the same network service account.
-
Hi Jake,
That error appears to be originating from an ArcGIS Geodatabase being referenced in the workflow and doesn't appear to be from Workflow.
Thanks, Stefan
0 -
Hi Jake,
Did you manage to find a solution?
I have a couple of python scripts that work successfully with the server activity 'Run Python', but one i developed recently does not. I think the error originates from importing the arcpy library. If I test the script on the server it is fine but when it is launched from wf5 it does not work.
0 -
Here is a recent addition to the documentation, I'm not sure it is relevant for you?
https://docs.vertigisstudio.com/workflow/latest/help/Default.htm#wf5/help/python-configuration.htmIf you are using Python 3.12.3 or later, you can omit this configuration and the py.exe command will be used, which locates and runs the latest installed version. Prior to this version, there was a bug with running py.exe through a web application. Proceed with the following configuration if you are using an older version of Python, or you prefer to specfy an exact location for python.exe.
1 -
Thanks for the link Nico, unfortunately this doesn't fix my issue. Are there any log files that i can inspect to verify this configuration?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare