<?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: Importing ArcPy Crashes Python Interpreter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51196#M4074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I marked this question as "assumed answer" since there really isn't anything anyone can do at this point to resolve an issue that isn't reproducible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2020 20:54:18 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-03-03T20:54:18Z</dc:date>
    <item>
      <title>Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51189#M4067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the following error when trying to import arcpy or arcgis&amp;nbsp;from a stand-alone Python script either run from IDLE for Python 3 or through the Conda Python interpreter that comes with ArcGIS Pro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Faulting application name: pythonw.exe, version: 3.6.8150.1013, time stamp: 0x5c6f5f72&lt;/P&gt;&lt;P&gt;Faulting module name: GpPythonCore.dll, version: 12.4.0.19948, time stamp: 0x5d0ad153&lt;/P&gt;&lt;P&gt;Exception code: 0xc0000005&lt;/P&gt;&lt;P&gt;Fault offset: 0x000000000000a4ad&lt;/P&gt;&lt;P&gt;Faulting process id: 0x4ce0&lt;/P&gt;&lt;P&gt;Faulting application start time: 0x01d56e6b54efb586&lt;/P&gt;&lt;P&gt;Faulting application path: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\pythonw.exe&lt;/P&gt;&lt;P&gt;Faulting module path: C:\Program Files\ArcGIS\Pro\bin\GpPythonCore.dll&lt;/P&gt;&lt;P&gt;Report Id: 5f5e420e-e05b-48d1-9985-a969e646b5b3&lt;/P&gt;&lt;P&gt;Faulting package full name:&lt;/P&gt;&lt;P&gt;Faulting package-relative application ID:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything was fine up until the following&amp;nbsp;occurred.&amp;nbsp; I was trying to use Pandas data frames in a stand-alone Python script.&amp;nbsp; I was writing&amp;nbsp;the script&amp;nbsp;in Wing IDE, but I had not figured out how to set up the Wing project to use Python 3.&amp;nbsp; Therefore, I was opening the script up in IDLE to run it.&amp;nbsp;I was in the process of switching from using NumPy arrays and Pandas data frames to using spatially-enabled data frames.&amp;nbsp; I added the imports to use SEDFs and I had some sort of error.&amp;nbsp; I decided it was time to setup my Wing project to point to Python 3 instead of 2.&amp;nbsp; I did research online and I believe I copied the path to the root environment Python interpreter and pasted it into the settings in Wing.&amp;nbsp; After that, when I went to run it, python.exe crashes.&amp;nbsp; It crashes from Wing, IDLE, and the command prompt.&amp;nbsp; It does not, however, crash from the root python command line or ArcGIS Pro.&amp;nbsp; I isolated the problem down to the import statement and I am just typing in import arcpy or import ArcGIS from the Python command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reinstall ArcGIS Pro, then both ArcMap and ArcGIS Pro, and neither worked.&amp;nbsp; I uninstalled Wing IDE and I am only trying to get basic ArcGIS Pro functionality to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping someone has some insight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 16:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51189#M4067</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2019-09-19T16:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51190#M4068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan, sorry to hear about your issues.&amp;nbsp;Sounds like you're getting wires crossed with your Python versions. That's been driving me crazy in the ESRI world for some time. Different Python releases, different versions of arcpy between ArcMap and Pro. Gets confusing. All I can suggest is uninstalling all your Python versions and taking good notes of any changes.&lt;/P&gt;&lt;P&gt;Do you have multiple environments set up in...&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs?&amp;nbsp;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sometimes, changing environments or creating a new ones has helped me out of pinch.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;# list environments in conda

conda env list

#switch environmente

conda activate &amp;lt;my-environment&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Some helpful documenation:&amp;nbsp;&lt;A class="link-titled" href="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html" title="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Managing environments — conda 4.7.12.post21+f620e4da documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51190#M4068</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-10T21:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51191#M4069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I only have the default environment.&amp;nbsp; The problem goes away if I revert back to ArcGIS Pro 2.3 from 2.4.&amp;nbsp; Then, it comes back when I upgrade again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51191#M4069</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2019-09-20T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51192#M4070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't mention whether you are using ArcMap as well... I am assuming you don't&lt;/P&gt;&lt;P&gt;one option:&lt;/P&gt;&lt;P&gt;If you are only using the default environment,&lt;/P&gt;&lt;P&gt;remove 2.3, including addins&lt;/P&gt;&lt;P&gt;uninstall pro 2.3 using windows add/remove&lt;/P&gt;&lt;P&gt;rename any 'esri' folders in your c:\user... file path to 'esriold&lt;/P&gt;&lt;P&gt;install 2.4&lt;/P&gt;&lt;P&gt;while you are at it, remove any python installations that you have&lt;/P&gt;&lt;P&gt;another option:&lt;/P&gt;&lt;P&gt;remove wing and reinstall it so it gets the correct python&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51192#M4070</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-02T23:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51193#M4071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do have ArcMap as well.&amp;nbsp; I spent 3-4 days working with Esri on this issue and I then I decided that it would be faster just to reimage my machine.&amp;nbsp; I tried all of those things and others in various orders and nothing would work.&amp;nbsp; We uninstalled ArcMap, Wing, and removed all Esri registry entries.&amp;nbsp; There was something somewhere that we could not find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51193#M4071</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2020-03-02T23:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51194#M4072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it working after reimaging?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51194#M4072</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-02T23:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51195#M4073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; I couldn't even replicate the issue after reimaging my machine and doing what I thought might have caused the problem.&amp;nbsp; I could not replicate it on someone else's machine either.&amp;nbsp; It was one of the weirdest problems I have come across.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51195#M4073</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2020-03-03T00:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ArcPy Crashes Python Interpreter</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51196#M4074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I marked this question as "assumed answer" since there really isn't anything anyone can do at this point to resolve an issue that isn't reproducible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 20:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-crashes-python-interpreter/m-p/51196#M4074</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-03T20:54:18Z</dc:date>
    </item>
  </channel>
</rss>

