<?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: Error message in PythonWin that I dont understand in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220651#M17063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would also caution people that are using/transitioning to V10 of ArcMap and arcpy that case-sensitivity is an issue, so sloppy case is to be avoided and one should consult the appropriate online help files for the versions of ArcGIS that you are using&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 00:56:24 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-01-27T00:56:24Z</dc:date>
    <item>
      <title>Error message in PythonWin that I dont understand</title>
      <link>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220649#M17061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm at the very early learning stages of python, so please don't bite &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following code &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcgisscripting
gp = arcgisscripting.create(9.3)
print "Tools imported"

gp.workspace = "C:/Temp"
print "Workspace set"

gp.overwriteoutput = 1
print "Overwrite set"

Input = "COVER63p.shp"
Output = "no_damage.shp"
Erase = "special_regions.shp"
print "variables set"

gp.erase_analysis(Input, Erase, Output)
print "tool has run...success"
print gp.messages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which should work, however when i run it in pythonwin (it takes about 15 minutes???) but also outputs this error in the interactive window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; Tools imported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Overwrite set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;variables set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tool has run...success&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 325, in RunScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "Z:\Data\Halil\Halil\ArcGIS\Python\Python\Homework\Erase.py", line 23, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.messages()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;messages&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone explain what it means because I haven't a clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;halil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 20:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220649#M17061</guid>
      <dc:creator>HalilSiddique</dc:creator>
      <dc:date>2011-01-26T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in PythonWin that I dont understand</title>
      <link>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220650#M17062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use gp.getmessages(), not gp.messages()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 22:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220650#M17062</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-01-26T22:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in PythonWin that I dont understand</title>
      <link>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220651#M17063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would also caution people that are using/transitioning to V10 of ArcMap and arcpy that case-sensitivity is an issue, so sloppy case is to be avoided and one should consult the appropriate online help files for the versions of ArcGIS that you are using&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 00:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-message-in-pythonwin-that-i-dont-understand/m-p/220651#M17063</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-01-27T00:56:24Z</dc:date>
    </item>
  </channel>
</rss>

