Select to view content in your preferred language

Unable to specify a Python environment for a single geoprocessing service

614
1
08-31-2022 09:38 PM
MariamJamilah
Occasional Contributor

Hello,

I am trying to clone the python environment on ArcGIS Server (10.9), add custom libraries to it and finally specify the environment to a single gp service.

I have referred to the following link to achieve this (https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-pack...

However, when I change the "condaEnvironmentPath" to the specified path (eg: "C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ArcGIS\\bin\\Python\\envs\\deploy"), it automatically changes the initial part of the path to "${AGSSEREVER}". Please refer to the image below:

MariamJamilah_0-1662007075757.png

 

Due to this, I feel the gp service is not picking up the right environment and hence when I run the gp service, I get an error stating the custom libraries/modules are not found.

Please advise on how to proceed further and resolve this issue.

Thanks in advance!

0 Kudos
1 Reply
RoseZhou2
Frequent Contributor

Hi @MariamJamilah :

We also encountered this issue. After days of investigation, it's a bug. The custom Python environment configuration for a geoprocessing service is not respected, and the default Python environment is used instead. Please see the link below:

https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNzMzMg==

Rose

0 Kudos