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 gssapi
ERROR: Could not build wheels for gssapi which use PEP 517 and cannot be installed directly
This only occurs if ArcGIS is in the requirements.txt of the function app, which, of course, it needs to be for me to be able to access ArcGIS online resources with the function app. Again, no code changes were made over the weekend. If I remove ArcGIS from the requirements.txt, the app builds fine and deploys to the function app server, but errors out when any ArcGIS functionality is called. That's expected since requirements.txt lists dependencies, and if it's not listed it's not there.
I'm using Visual Studio Code on a Windows PC to build this app. Python 3.9.7 is installed, and like I said, everything worked fine until this morning. Currently clueless and frustrated.
--
Roger Asbury
Analyst/Programmer - Fairbanks North Star Borough