<?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: Unable to run GIS tools that access arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329432#M25630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your response, and sorry mine is so late (I've been out in the field and away from internet). As you suspected, import arcpy failed and I've had to reinstall GIS. Fixed the problem! Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heather&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Apr 2014 22:10:43 GMT</pubDate>
    <dc:creator>HeatherWelch1</dc:creator>
    <dc:date>2014-04-06T22:10:43Z</dc:date>
    <item>
      <title>Unable to run GIS tools that access arcpy</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329430#M25628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched the discussion forums but have been unable to find a solution to my problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently installed a new version of GIS (10.2).&amp;nbsp; I had an old version of python (2.6) on my computer, and so the GIS installation included a new version of python (2.7, 32bit). I needed to install a new version of Marine Geospatial Ecology Tools (MGET), which requires python and pywin32 to run. The MGET installation found the two versions of python in the registry and kept failing to install properly, so I deleted all versions of python and pywin from my computer to start fresh (which I'm now thinking was a big mistake). I reinstalled python (2.7.6, 32bit) on my computer here: C:\Python27.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now when I run a GIS tool that needs access to arcpy, say Raster Calculator, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "&amp;lt;string&amp;gt;", line 2, in rcexec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "c:\programe files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 33, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; import arcpy.utils as utils&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'utils'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking that GIS is not recognizing the new python version, or is missing a pathway.&amp;nbsp; I have a very basic understanding of how these two programs link together, but I've been trying to follow this thread &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/23230-quot-ImportError-No-module-named-arcpy-quot-PYTHON"&gt;http://forums.arcgis.com/threads/23230-quot-ImportError-No-module-named-arcpy-quot-PYTHON&lt;/A&gt;&lt;SPAN&gt; and I seem to have a similar problem.&amp;nbsp; I'm hoping to avoid having to remove all python and GIS programs from my computer and reinstall again...any help would be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some other info in case it's helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Only one version of python installed (2.7.6 32bit, C:\Python27)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-GIS is here: C:\Program Files (x86)\ArcGIS\Desktop10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Also have these files&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; C:\Program Files (x86)\ArcGIS\Desktop10.2\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Don't have this file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; C:\Python27\ArgGIS10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies if I'm not providing the correct information...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heather&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 04:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329430#M25628</guid>
      <dc:creator>HeatherWelch1</dc:creator>
      <dc:date>2014-02-28T04:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run GIS tools that access arcpy</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329431#M25629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Heather,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hate to be the bearer of bad news, but I think you might need to uninstall/re-install arcGIS. Part of the software suite is the python install located here: C:\Python27\ArgGIS10.2. In the future I would try to keep that install of python and not have any others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can confirm that your arcGIS python is missing by trying the following. Click Start &amp;gt; All Programs &amp;gt; ArcGIS &amp;gt; Python 2.7 &amp;gt; IDLE (Python GUI). If that opens, try &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;import arcpy&lt;/SPAN&gt;&lt;SPAN&gt;. If anything fails along the way (I suspect it will), you've probably lost your arcGIS copy of python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could only think of one last desperation move, but I'm not sure if it would work. If you have a friend/colleague with the same version of arcmap, you could try copying their directory (C:\Python27\ArgGIS10.2) into yours. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck either way!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 12:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329431#M25629</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2014-02-28T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run GIS tools that access arcpy</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329432#M25630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your response, and sorry mine is so late (I've been out in the field and away from internet). As you suspected, import arcpy failed and I've had to reinstall GIS. Fixed the problem! Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heather&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 22:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-run-gis-tools-that-access-arcpy/m-p/329432#M25630</guid>
      <dc:creator>HeatherWelch1</dc:creator>
      <dc:date>2014-04-06T22:10:43Z</dc:date>
    </item>
  </channel>
</rss>

