<?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 trouble importing arcpy or arcgisscripting in IDLE in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117034#M3994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An easy question here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using IDLE to run geoprocessing python scripts in previous versions of Arc, and I'l like to continue to do so... but I can't seem to import arcpy, or for that matter even arcgisscripting... I can get at them from the python window within ArcGIS (nice addition BTW!)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 14:47:35 GMT</pubDate>
    <dc:creator>JonathanBoright</dc:creator>
    <dc:date>2010-03-03T14:47:35Z</dc:date>
    <item>
      <title>trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117034#M3994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An easy question here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using IDLE to run geoprocessing python scripts in previous versions of Arc, and I'l like to continue to do so... but I can't seem to import arcpy, or for that matter even arcgisscripting... I can get at them from the python window within ArcGIS (nice addition BTW!)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 14:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117034#M3994</guid>
      <dc:creator>JonathanBoright</dc:creator>
      <dc:date>2010-03-03T14:47:35Z</dc:date>
    </item>
    <item>
      <title>trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117035#M3995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you're running the IDLE from Python 2.6 and not Python 2.5?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this in the interactive prompt in IDLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; sys.version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should get something that looks like "2.6.~~~~~~~"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further troubleshooting (after issuing the first commands):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should get back a list of directories. The directory for the arcgis desktop install should be there (something like C:\~~~~\ArcGIS\bin) -- if it's missing then Python's import path for ArcGIS has somehow been configured wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 00:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117035#M3995</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-03-04T00:15:55Z</dc:date>
    </item>
    <item>
      <title>trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117036#M3996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the reply jscheirer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am definitely running 2.6... sys.version is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, I am running it on a 64-bit Windows 7 machine... perhaps that is my problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that you are on the right track with the second part of your response... sys.path has no ArcMap references in it...:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;['C:\\Python26\\Lib\\idlelib', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site-packages']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...whereas my ArcGIS bin directory is in C:\Program Files (x86)\ArcGIS\Desktop9.4\bin...&amp;nbsp; (this is the directory where 32-bit programs are installed). I *have* added the ArcGIS bin to my PATH environmental variable... to no avail...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So... how do I configure my Python import path correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 20:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117036#M3996</guid>
      <dc:creator>JonathanBoright</dc:creator>
      <dc:date>2010-03-04T20:28:03Z</dc:date>
    </item>
    <item>
      <title>trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117037#M3997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ArcGIS installer should have created a file called C:\Python26\Lib\site-packages\Desktop10.pth that adds the ArcGIS install to Python's path. You can manually recreate it. It's a text file with a list of paths on each line. You just need to open up notepad and enter the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop9.4\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop9.4\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and save it as C:\Python26\Lib\site-packages\Desktop10.pth. Then you should be good to go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 20:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117037#M3997</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-03-04T20:32:41Z</dc:date>
    </item>
    <item>
      <title>trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117038#M3998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! that did the trick. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 20:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117038#M3998</guid>
      <dc:creator>JonathanBoright</dc:creator>
      <dc:date>2010-03-04T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: trouble importing arcpy or arcgisscripting in IDLE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117039#M3999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I seemed to have to add c:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy to my Desktop10.pth before it would work. Not sure why.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 18:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/trouble-importing-arcpy-or-arcgisscripting-in-idle/m-p/117039#M3999</guid>
      <dc:creator>MiguelLeon</dc:creator>
      <dc:date>2011-01-25T18:06:29Z</dc:date>
    </item>
  </channel>
</rss>

