<?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 I need help with this error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140312#M10934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "E:\GEO501\Exercise07\Results\printvalues.py", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/P&gt;&lt;P&gt;ImportError: No module named arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code: &lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;env.workspace = "C:/EsriPress/Python/Data/Exercise07"&lt;/P&gt;&lt;P&gt;fc = "airports.shp"&lt;/P&gt;&lt;P&gt;cursor = arcpy.da.SearchCursor(fc, ["NAME"])&lt;/P&gt;&lt;P&gt;for row in cursor:&lt;/P&gt;&lt;P&gt;print "Airport name = {0}".format(row[0])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 21:03:49 GMT</pubDate>
    <dc:creator>TrevorFugate</dc:creator>
    <dc:date>2014-10-21T21:03:49Z</dc:date>
    <item>
      <title>I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140312#M10934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "E:\GEO501\Exercise07\Results\printvalues.py", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/P&gt;&lt;P&gt;ImportError: No module named arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code: &lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;env.workspace = "C:/EsriPress/Python/Data/Exercise07"&lt;/P&gt;&lt;P&gt;fc = "airports.shp"&lt;/P&gt;&lt;P&gt;cursor = arcpy.da.SearchCursor(fc, ["NAME"])&lt;/P&gt;&lt;P&gt;for row in cursor:&lt;/P&gt;&lt;P&gt;print "Airport name = {0}".format(row[0])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 21:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140312#M10934</guid>
      <dc:creator>TrevorFugate</dc:creator>
      <dc:date>2014-10-21T21:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140313#M10935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ArcGIS installed on your machine? Which version? Did you install Python yourself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 21:06:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140313#M10935</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-10-21T21:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140314#M10936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for both. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 21:20:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140314#M10936</guid>
      <dc:creator>TrevorFugate</dc:creator>
      <dc:date>2014-10-21T21:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140315#M10937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGis 10.1 and python 2.7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 21:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140315#M10937</guid>
      <dc:creator>TrevorFugate</dc:creator>
      <dc:date>2014-10-21T21:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140316#M10938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is probably the problem. You installed Python after installing ArcGIS? You've probably messed up your installation now, you may want to uninstall both and reinstall just ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a hack, you may be able to run C:\Python27\ArcGIS10.1\python.exe right now. If it won't import arcpy, then you'll need to do the reinstallation first. But python.exe will live in C:\Python27\ArcGIS10.1\, not C:\Python27\ after you've installed ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 23:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140316#M10938</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-10-21T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with this error</title>
      <link>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140317#M10939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trevor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Jason said, the existence of both python installations is the most likely cause of the issue.&amp;nbsp; What you could try doing before attempting a reinstall of ArcGIS is set some python directories in your PATH to see if that solves the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set your PATH variable in Windows, go to Start &amp;gt;&amp;gt; Control Panel &amp;gt;&amp;gt; System, click Advanced System Settings, click the Environment Variables button in the lower part of the Advanced tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the System variables section in the lower part of the form, scroll through until you find the Path variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that there are no values pointing to the C:\Python27 directory, if so delete those parts (between the semi colons).&amp;nbsp; Add the following to the end of your Path variable -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:\Python27\ArcGIS10.2\;C:\Python27\ArcGIS10.2\Scripts\&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be enough to allow calls to python to use the ArcGIS embedded python instance by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice one exception you are seeing is coming from the PyWin module.&amp;nbsp; It may have also been affected by the two python installations.&amp;nbsp; Try installing PyWin32 again, and make sure during the installation that it finds the ArcGIS embedded python environment to install into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 00:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-need-help-with-this-error/m-p/140317#M10939</guid>
      <dc:creator>ToddJackson2</dc:creator>
      <dc:date>2014-10-22T00:50:23Z</dc:date>
    </item>
  </channel>
</rss>

