I am unable to publish my custom python tool as a geoprocessing service to my ArcGIS Server from ArcGIS Pro. I am using the 'Share As Web Tool' option, I have also tried using the 'Geoprocessing Package' option, but it fails in both the cases. I have attached a screenshot of the logs generated on ArcGIS Pro below.
I have restarted my services on the ArcGIS Server, updated ArcGIS Pro to the latest version, tried publishing the tool with and without a map and have also ensured that the file paths are short, but I am still unable to publish the tool.
Please advise, thanks!