<?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: from arcgis.gis import GIS numpy error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593547#M11217</link>
    <description>&lt;P&gt;don't clone and then use pip.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use anything outside of what is provided by arcgis pro, just create and environment and install your packages from conda 'defaults'.&amp;nbsp; You, of course, won't be able to use any "arc..." stuff from that environment.&lt;/P&gt;&lt;P&gt;I have separate environments that I created... not cloned... to do my python/numpy/scipy/whatever stuff (python 3.13 and numpy 2.2.x are pretty sweet &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;if cloning.... no pip,&amp;nbsp; conda only&amp;nbsp; and 'defaults' is preferable over 'conda-forge'&lt;/P&gt;&lt;P&gt;if not cloning ... create an environment&lt;/P&gt;&lt;P&gt;pip will work in many circumstances, but get used to recreating environments when things go bad&lt;/P&gt;&lt;P&gt;end of Friday missive&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 20:35:43 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-03-07T20:35:43Z</dc:date>
    <item>
      <title>from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593285#M11212</link>
      <description>&lt;P&gt;I had been trying to install office 364 library to access csv in SharePoint and it messed up my python environment. I've been using Visual Studio 2017 to create add-ins for desktop for years. Have a lot of python doing stuff in the background like updating&amp;nbsp; and overwriting hosted feature classes. I was using the Pro Python environment in VS.&lt;/P&gt;&lt;P&gt;I upgraded pro to 3.4 and now when I try to "from arcgis.gis import GIS " I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can transfer the script to Pro into a python toolbox and it runs fine from pro.&lt;/P&gt;&lt;P&gt;It's really messed up and have no idea how to repair this. Grasping at straws and any ideas would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 12:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593285#M11212</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2025-03-07T12:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593286#M11213</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/32928"&gt;@MichaelKohler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would check to see which environment your Pro is using, going to Project -&amp;gt; Python, and viewing it there. You can also clone your environment to verify everything is working.&lt;/P&gt;&lt;P&gt;I would also be sure that the Python environment is correctly pointing to the arcgispro-py3 environment that your Pro uses. This lets you use the libraries that Pro accesses. Somewhere here: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3&lt;/P&gt;&lt;P&gt;You can also try reinstalling numpy:&lt;/P&gt;&lt;P&gt;conda install --force-reinstall numpy&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 12:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593286#M11213</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-03-07T12:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593292#M11214</link>
      <description>&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from" target="_blank"&gt;python - numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/numpy/numpy/issues/26710" target="_blank"&gt;NumPy 2.0.0 on Python 3.12 causes binary compatibilty issues with numpy.dtype for pandas 2.1.1 · Issue #26710 · numpy/numpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;plus many more&lt;/P&gt;&lt;P&gt;make sure you have a version of pandas and numpy supported in your environment that is supported by the current version of Pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593292#M11214</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-07T13:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593413#M11215</link>
      <description>&lt;P&gt;&amp;nbsp;VS shows ArcPro 3.6 and Python 2.7 (32-bit) for python envs.&lt;/P&gt;&lt;P&gt;ArcPro 3.6 is pointing to the correct directory "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3"&lt;/P&gt;&lt;P&gt;I'm not sure why, when in pro, i can open python window and import&amp;nbsp; GIS. But in VS, when I use the same env, I get the error.&lt;/P&gt;&lt;P&gt;I cloned the env in pro and updated all packages. This clone env can also import successfully in pro but not in VS.&lt;/P&gt;&lt;P&gt;I cloned the pro env and&amp;nbsp; did the install --force. it showed that it was successful. Then I did the same with pandas.&lt;/P&gt;&lt;P&gt;Still not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 16:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593413#M11215</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2025-03-07T16:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593453#M11216</link>
      <description>&lt;P&gt;I had looked at those, and more, yesterday and most of it went over my head. Was already in a funk so nothing really worked or was sinking in. Reinstalled the SDK for desktop and was able to get the addin working so i could change a user name for a database. So I had a win for the day. Then I quit for the night. The link below helped.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pandas was version 2.0.2 in the default pro env. numpy was version 1.24.3.&lt;/P&gt;&lt;P&gt;created a clone inside of Pro and did the below pip on the clone env.&lt;/P&gt;&lt;P&gt;pip install --upgrade pandas.&lt;/P&gt;&lt;P&gt;after that Pandas was 2.2.3 and numpy was 2.2.3&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 17:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593453#M11216</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2025-03-07T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: from arcgis.gis import GIS numpy error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593547#M11217</link>
      <description>&lt;P&gt;don't clone and then use pip.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use anything outside of what is provided by arcgis pro, just create and environment and install your packages from conda 'defaults'.&amp;nbsp; You, of course, won't be able to use any "arc..." stuff from that environment.&lt;/P&gt;&lt;P&gt;I have separate environments that I created... not cloned... to do my python/numpy/scipy/whatever stuff (python 3.13 and numpy 2.2.x are pretty sweet &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;if cloning.... no pip,&amp;nbsp; conda only&amp;nbsp; and 'defaults' is preferable over 'conda-forge'&lt;/P&gt;&lt;P&gt;if not cloning ... create an environment&lt;/P&gt;&lt;P&gt;pip will work in many circumstances, but get used to recreating environments when things go bad&lt;/P&gt;&lt;P&gt;end of Friday missive&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 20:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-arcgis-gis-import-gis-numpy-error/m-p/1593547#M11217</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-07T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

