<?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: Anaconda interfering with running spatial statistics in ArcMap 10.2 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221490#M17115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;The question wasn't directly answered:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Why is it summoning a 32 bit DLL if I have 64 bit background geoprocessing installed?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The reason this happens is because when Anaconda 32 was installed, the box was checked to associate .py files to run with anaconda's x32 python when double-clicked. These file associations can only be changed with elevated access. The fix (noted correctly above) is to direct the Anaconda installer NOT to make it the default Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really glad the 10.4 Python 2.7.10 shipped with ArcGIS comes with most of the modules most of our users install Anaconda to access: pandas, netCDF4, scipy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 04:08:30 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2016-05-19T04:08:30Z</dc:date>
    <item>
      <title>Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221483#M17108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Python group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running ArcGIS 10.2 with 64bit background geoprocessing. I've also got Anaconda 64bit configured as my preferred interpreter.&amp;nbsp; I can write in Spyder and call arcpy, no problems there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that now, when I run spatial statistics scripts, it will error out.&amp;nbsp; I tried running optimized hot spot analysis today and it gave me this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;Trackback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;\OptimizedHotSpotAnalysis.py", line 30, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import MoransI_Increment as MI&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;\MoransI_Increment.py", line 24, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import pylab as PYLAB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Python27\ArcGIS10.2\lib\site-packages\pylab.py", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.pylab import *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Python27\ArcGIS10.2\lib\site-packages\matplotlib\__init__.py", line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;134, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.rcsetup import (defaultParams,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Python27\ArcGIS10.2\lib\site-packages\matplotlib\rcsetup.py", line 18,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.fontconfig_pattern import parse_fontconfig_pattern&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Python27\ArcGIS10.2\lib\site-packages\matplotlib&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;\fontconfig_pattern.py", line 23, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from matplotlib.pyparsing import Literal, ZeroOrMore, \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Python27\ArcGIS10.2\lib\site-packages\matplotlib\pyparsing.py", line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;71, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import xml.sax.saxutils&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Users\eagle\AppData\Local\Continuum\Anaconda\Lib\xml\sax&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;\saxutils.py", line 6, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import os, urlparse, urllib, types&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Users\eagle\AppData\Local\Continuum\Anaconda\Lib\urllib.py", line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;26, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import socet&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File "C:\Users\eagle\AppData\Local\Continuum\Anaconda\Lib\socket.py", line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;47, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import _socket&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #e23d39;"&gt;ImportError: DLL load failed: %1 is not a valid Win32 application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's what confuses me. Why is it summoning a 32 bit DLL if I have 64 bit background geoprocessing installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like to keep Anaconda on my system.&amp;nbsp; Is there a way for me to point ArcMap back to the 32 bit interpreter for the purposes of the toolbox scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 20:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221483#M17108</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2016-02-11T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221484#M17109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Curtis's post &lt;A href="https://community.esri.com/migration-blogpost/55469"&gt;Fixing broken Python&lt;/A&gt; &lt;/P&gt;&lt;P&gt;or turn off background processing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221484#M17109</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-11T21:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221485#M17110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you connecting arcpy to Anaconda? I just wrote this post today about connecting arcpy (in ArcGIS Pro) to Jupyter/Anaconda: &lt;A href="https://community.esri.com/migration-blogpost/55511"&gt;Connecting Arcpy to Your Jupyter Notebook&lt;/A&gt;. Let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221485#M17110</guid>
      <dc:creator>GregoryBrunner</dc:creator>
      <dc:date>2016-02-11T21:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221486#M17111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gregory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just copied the .pth file from ArcGIS's 64 bit python folder to the Anaconda site packages folder.&amp;nbsp; And I made sure all 3 paths (anaconda 64, ArcGIS python 32, ArcGIS python 64) were in my PATH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221486#M17111</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2016-02-12T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221487#M17112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh since I don't have admin rights on this machine, this is a half a day process probably.&amp;nbsp; I can't imagine there isn't a couple registry settings here and there I couldn't change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221487#M17112</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2016-02-12T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221488#M17113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it work. IF not, check out here (&lt;A href="http://gis.stackexchange.com/questions/119503/how-to-get-arcpy-to-work-with-anaconda" title="http://gis.stackexchange.com/questions/119503/how-to-get-arcpy-to-work-with-anaconda"&gt;arcgis desktop - How to get arcpy to work with Anaconda? - Geographic Information Systems Stack Exchange&lt;/A&gt; ). If you go to C:\Python27\ArcGISx6410.2\Lib\site-packages there should be a file called DTBGGP64.pth. Copy this file and put it in the Anaconda path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221488#M17113</guid>
      <dc:creator>GregoryBrunner</dc:creator>
      <dc:date>2016-02-12T14:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221489#M17114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg, yeah, it worked fine.&amp;nbsp; Calling arcpy from anaconda worked just fine.&amp;nbsp; However, when anaconda was registered as my default interpreter and included in my path, it broke a number of spatial statistics routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i've done in the meanwhile is uninstalled everything, reinstalled, and installed Anaconda without making it the default interpreter.&amp;nbsp; I'm using a script from here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/JamesRamm/archook" title="https://github.com/JamesRamm/archook"&gt;GitHub - JamesRamm/archook: Searches the system for arcgis and makes arcpy available to python (regardless of pythonpath…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to basically go out and look for arcpy on each run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 19:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221489#M17114</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2016-02-12T19:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221490#M17115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;The question wasn't directly answered:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Why is it summoning a 32 bit DLL if I have 64 bit background geoprocessing installed?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The reason this happens is because when Anaconda 32 was installed, the box was checked to associate .py files to run with anaconda's x32 python when double-clicked. These file associations can only be changed with elevated access. The fix (noted correctly above) is to direct the Anaconda installer NOT to make it the default Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really glad the 10.4 Python 2.7.10 shipped with ArcGIS comes with most of the modules most of our users install Anaconda to access: pandas, netCDF4, scipy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 04:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221490#M17115</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-05-19T04:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Anaconda interfering with running spatial statistics in ArcMap 10.2</title>
      <link>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221491#M17116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except for the fact that they issued 10.4 and pro 1.2 with two different versions of python and the stack...making for interesting times until they eventually merge.&amp;nbsp; Perhaps python 3.5 and numpy 1.10 (and its siblings) will be in the next major release&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/anaconda-interfering-with-running-spatial/m-p/221491#M17116</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-19T10:26:06Z</dc:date>
    </item>
  </channel>
</rss>

