<?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 Attribute error, object has no attribute in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444597#M34823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I am very new to python and working through my first online course. Does anyone know how I can fix this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Clip_analysis("RI_Sewers","Providence","C:/student/PythEveryone10_1/PythonInArcGIS/RhodeIsland.gdb/Sewers2","#")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'Clip_analysis'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have updated my PYTHONPATH and tried importing arcpy.conversion. Some functions work in arcpy, but not all functions. For example the arcpy.mapping.ListLayoutElements function works fine, but clipping and buffers return the error above. I can run the clip and buffer tools fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried running arcpy in Pythonwin and got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\ESRI\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, 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 "C:\student\PythEveryone10_1\HandleErrors\Debugging.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(streams, streams + str(buff), buff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'Buffer_analysis'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the scripts I am running are written correctly because they are straight from the esri online course and they worked on Tuesday, but something has been corrupted since Tuesday and now they don't run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 20:44:56 GMT</pubDate>
    <dc:creator>MelissaVan_Scoyoc</dc:creator>
    <dc:date>2014-03-21T20:44:56Z</dc:date>
    <item>
      <title>Attribute error, object has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444597#M34823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I am very new to python and working through my first online course. Does anyone know how I can fix this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Clip_analysis("RI_Sewers","Providence","C:/student/PythEveryone10_1/PythonInArcGIS/RhodeIsland.gdb/Sewers2","#")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &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 "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'Clip_analysis'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have updated my PYTHONPATH and tried importing arcpy.conversion. Some functions work in arcpy, but not all functions. For example the arcpy.mapping.ListLayoutElements function works fine, but clipping and buffers return the error above. I can run the clip and buffer tools fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried running arcpy in Pythonwin and got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\ESRI\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, 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 "C:\student\PythEveryone10_1\HandleErrors\Debugging.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(streams, streams + str(buff), buff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'Buffer_analysis'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the scripts I am running are written correctly because they are straight from the esri online course and they worked on Tuesday, but something has been corrupted since Tuesday and now they don't run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444597#M34823</guid>
      <dc:creator>MelissaVan_Scoyoc</dc:creator>
      <dc:date>2014-03-21T20:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute error, object has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444598#M34824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did you do this first?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 12:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444598#M34824</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-03-22T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute error, object has no attribute</title>
      <link>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444599#M34825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. Though FYI arcpy is preloaded in ARC 10.1 so you don't have to do that anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 18:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attribute-error-object-has-no-attribute/m-p/444599#M34825</guid>
      <dc:creator>MelissaVan_Scoyoc</dc:creator>
      <dc:date>2014-03-22T18:28:37Z</dc:date>
    </item>
  </channel>
</rss>

