<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Suddenly can't build and deploy Python Azure Function app in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1213066#M7759</link>
    <description>&lt;P&gt;Going back to arcgis 1.9.1 does work after all.&lt;BR /&gt;Have to put "arcgis==1.9.1" in the requirements.txt file, not just "arcgis"&lt;BR /&gt;Got it to work!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 17:58:28 GMT</pubDate>
    <dc:creator>TedChapin</dc:creator>
    <dc:date>2022-09-15T17:58:28Z</dc:date>
    <item>
      <title>Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205235#M7660</link>
      <description>&lt;P&gt;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:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gssapi/raw/misc.c:42:20: fatal error: Python.h: No such file or directory&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#include "Python.h"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compilation terminated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;error: command '/usr/bin/gcc' failed with exit code 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;----------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR: Failed building wheel for gssapi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR: Could not build wheels for gssapi which use PEP 517 and cannot be installed directly&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Aug 2022 01:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205235#M7660</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-08-23T01:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205248#M7661</link>
      <description>&lt;P&gt;I believe this is related to the upstream python-gssapi library issue reported here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/pythongssapi/python-gssapi/issues/299" target="_blank"&gt;https://github.com/pythongssapi/python-gssapi/issues/299&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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`.&lt;BR /&gt;&lt;BR /&gt;Cheers, Shaun&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 01:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205248#M7661</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2022-08-23T01:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205471#M7663</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Again, thanks for the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 16:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1205471#M7663</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-08-23T16:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1207256#M7687</link>
      <description>&lt;P&gt;Glad you got something working. It looks like its a specific design choice of the gssapi package to not include Linux wheels:&amp;nbsp;&lt;A href="https://github.com/pythongssapi/python-gssapi/issues/200" target="_blank"&gt;https://github.com/pythongssapi/python-gssapi/issues/200&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1207256#M7687</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2022-08-29T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1210674#M7722</link>
      <description>&lt;P&gt;Thank you for logging this internally&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/89710"&gt;@ShaunWalbridge&lt;/a&gt;, does the team have any timeline against this?&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 07:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1210674#M7722</guid>
      <dc:creator>CamMuller</dc:creator>
      <dc:date>2022-09-08T07:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1210712#M7724</link>
      <description>&lt;P&gt;I can also confirm I had the same issue today and arcgis 1.9.1 is the version that did the trick.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 10:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1210712#M7724</guid>
      <dc:creator>InfodimGIS</dc:creator>
      <dc:date>2022-09-08T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1213055#M7758</link>
      <description>&lt;P&gt;I am also having this same error, but installing arcgis api 1.9.1 is not working. Will not deploy if I include arcgis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1213055#M7758</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2022-09-15T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Suddenly can't build and deploy Python Azure Function app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1213066#M7759</link>
      <description>&lt;P&gt;Going back to arcgis 1.9.1 does work after all.&lt;BR /&gt;Have to put "arcgis==1.9.1" in the requirements.txt file, not just "arcgis"&lt;BR /&gt;Got it to work!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/m-p/1213066#M7759</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2022-09-15T17:58:28Z</dc:date>
    </item>
  </channel>
</rss>

