import arcgis in Flask with fastcgi in IIS

130
3
07-02-2020 11:26 PM
Highlighted
Esri Contributor

Hi, 

have anyone attempted to import arcgis running in flask while hosted in IIS via fastCGI?

I kept getting a 500 error with the import ArcGIS statement.

Running it in flask without fastCGI works fine.

arcgispro-py3\python.exe - The FastCGI process exited unexpectedly

Tags (2)
Reply
0 Kudos
3 Replies
Highlighted
New Contributor

Yes, and I'm also getting a 500 error, but it may be for a different reason. It would be helpful to post the "detailed error information" that you see in your browser, especially the error code (not 500). The error code I get is 0xc0000005, an access violation, which apparently indicates a memory error that the operating system doesn't know how to deal with. I'm still looking for a solution.

I see that you're using Pro's default conda environment. I assume you've installed wfastcgi there, although Esri apparently discourages changing anything in that environment.

Reply
0 Kudos
Highlighted
Esri Contributor

Hi Jason Wise‌, thank you for the reply . The conda environment is a clone using a different file path. I have resolved the issue since then have gotten arcpy and arcgis python api to run in flask on iis.  It was just making sure the permissions are correctly set in the identity pool in IIS (Plus a whole lot of workaround to get it to work ). 

Reply
0 Kudos
Highlighted
New Contributor

I haven't gotten this to work, so I asked my own question. Are you using wFastCGI?

Reply
0 Kudos