<?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 jupyter notebook python runtime errors in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202389#M65297</link>
    <description>&lt;P&gt;I am encountering runtime errors divide by zeros errors simply importing numpy and pandas into a blank Jupyter note book. there is no data in the note book yet to even work on. Any idea if its something on my computers end or Anacondas end. Im pretty lost as this error is all over. i attached the most basic error.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 14:40:09 GMT</pubDate>
    <dc:creator>mattkyles</dc:creator>
    <dc:date>2022-08-12T14:40:09Z</dc:date>
    <item>
      <title>jupyter notebook python runtime errors</title>
      <link>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202389#M65297</link>
      <description>&lt;P&gt;I am encountering runtime errors divide by zeros errors simply importing numpy and pandas into a blank Jupyter note book. there is no data in the note book yet to even work on. Any idea if its something on my computers end or Anacondas end. Im pretty lost as this error is all over. i attached the most basic error.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 14:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202389#M65297</guid>
      <dc:creator>mattkyles</dc:creator>
      <dc:date>2022-08-12T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: jupyter notebook python runtime errors</title>
      <link>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202416#M65298</link>
      <description>&lt;P&gt;I'm assuming you are running from a notebook inside ArcGIS Pro? There are many different ways to run notebooks.&lt;/P&gt;&lt;P&gt;Your screen grab just shows the middle part of the error trace. The interesting parts are usually at the beginning and the end. All I can tell for sure is that your path is loading the modules that live in your Downloads folder,&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\mtruc\Downloads\study\lib\... looks to me like something that got installed maybe when you did a class or something?? so who knows what version of numpy it's finding. One that is not compatible with your Esri environment.&lt;/P&gt;&lt;P&gt;If you are working in Pro you can see what the environment shows, go to Project -&amp;gt; Python and it should say at the top the name of the current environment like "arcgispro-py3" and list the packages it is using.&lt;/P&gt;&lt;P&gt;On mine at 2.9 it shows numpy version 1.20.1 but ArcPro won't show the source of the package. From a command line I can do this&lt;/P&gt;&lt;LI-CODE lang="python"&gt;$ conda activate C:/Program\ Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3
(arcgispro-py3)
bwilson@ccis4501 MINGW64 ~/Documents/ArcGIS
$ conda list numpy
# packages in environment at C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3:
#
# Name                    Version                   Build  Channel
numpy                     1.20.1                   py37_0    esri
numpy-base                1.20.1                   py37_0    esri&lt;/LI-CODE&gt;&lt;P&gt;The first command "conda activate" I give the entire path to the environment, you can probably just do something like "conda activate arcgispro-py3" if you have a more standard environment.&lt;/P&gt;&lt;P&gt;The second command lists the "channel". In this case it shows "esri". I am thinking yours might show a different version and channel? Give it a try.&lt;/P&gt;&lt;P&gt;How to recover? Hm. I do hacky things that might not help you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The proper way would be to use the conda tools. But maybe you have shunted over to a different environment and all you need to do is select the right one in the Python Package Manager, click on "Manage Environments" and pick one. If it works, you can probably remove the broken one in there too once you have moved back onto one that works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202416#M65298</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-08-12T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: jupyter notebook python runtime errors</title>
      <link>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202607#M65304</link>
      <description>&lt;P&gt;If you are using any version of numpy other than the one installed by Pro, then you will have errors since numpy can't be upgraded to a higher version than allowed by arcpy&lt;/P&gt;&lt;P&gt;For Pro 3.0.1&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(arcgispro-py3) C:\...YourInstallFolder...\bin\Python\envs\arcgispro-py3&amp;gt;conda list numpy
# packages in environment at C:\...YourInstallFolder...\bin\Python\envs\arcgispro-py3:
#
# Name                    Version                   Build  Channel
numpy                     1.20.1                   py39_0    esri
numpy-base                1.20.1                   py39_0    esri
numpydoc                  1.4.0            py39haa95532_0

(arcgispro-py3) C:\arc_pro\bin\Python\envs\arcgispro-py3&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Skip the notebook for now and try the imports in your python IDE or the python window within Pro to see if you have a proper installation of Pro&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 01:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/jupyter-notebook-python-runtime-errors/m-p/1202607#M65304</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-13T01:14:35Z</dc:date>
    </item>
  </channel>
</rss>

