Have one of those cases of "It worked on Friday and now it doesn't on Monday." No code changes that I am aware of, but now when I attempt to build an Azure Function app that uses the ArcGIS API for python, I am getting errors. Namely:
gssapi/raw/misc.c:42:20: fatal error: Python.h: No such file or directory#include "Python.h"^compilation terminated.error: command '/usr/bin/gcc' failed with exit code 1----------------------------------------ERROR: Failed building wheel for gssapiERROR: Could not build wheels for gssapi which use PEP 517 and cannot be installed directly
Solved! Go to Solution.
I believe this is related to the upstream python-gssapi library issue reported here:
https://github.com/pythongssapi/python-gssapi/issues/299
If you try again, it may resolve itself as the 1.8.1 release should correctly state its own requirements. You could also try downgrading to the API 2.0.0 release which doesn't have a requirement on `requests-gssapi`.
Cheers, Shaun
I believe this is related to the upstream python-gssapi library issue reported here:
https://github.com/pythongssapi/python-gssapi/issues/299
If you try again, it may resolve itself as the 1.8.1 release should correctly state its own requirements. You could also try downgrading to the API 2.0.0 release which doesn't have a requirement on `requests-gssapi`.
Cheers, Shaun
Thanks much. Seemed to have to go back to ArcGIS API 1.9.1 to get things to work again, but at least it's working now. When I checked the gssapi version, it was 1.8.1 that was being loaded and causing the error, so not sure what's up with that.
Again, thanks for the help.
Glad you got something working. It looks like its a specific design choice of the gssapi package to not include Linux wheels: https://github.com/pythongssapi/python-gssapi/issues/200
I've created an internal issue for the Python API team to track this as a design issue with the addition of GSS as a dependency.
Thank you for logging this internally @ShaunWalbridge, does the team have any timeline against this?
I have encountered the issue when deploying a function today and also had to define the API version at 1.9.1 in order for the deployment to succeed.
Thank you.
I can also confirm I had the same issue today and arcgis 1.9.1 is the version that did the trick.
I am also having this same error, but installing arcgis api 1.9.1 is not working. Will not deploy if I include arcgis.
Going back to arcgis 1.9.1 does work after all.
Have to put "arcgis==1.9.1" in the requirements.txt file, not just "arcgis"
Got it to work!