<?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: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686643#M53132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am posting the code in the main question, still can't figure out whats wrong with executing it .&lt;/P&gt;&lt;P&gt;The Zip file contains the pyt tool file and a GDB for testing out points.&lt;/P&gt;&lt;P&gt;Text file contains GeoJSON values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 09:07:06 GMT</pubDate>
    <dc:creator>JawadhHabeeb1</dc:creator>
    <dc:date>2016-04-19T09:07:06Z</dc:date>
    <item>
      <title>Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686639#M53128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom made&amp;nbsp; python Toolbox which worked perfectly in 10.2, it has stopped working now when I started using it in 10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following Errors..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 56, in execute&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 32, in RoundValue&lt;/P&gt;&lt;P&gt;AttributeError: '_passthrough' object has no attribute 'float'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These erros where thrown right after I started using 10.3 , but worked perfectly in 10.2&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Clue ..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jawadh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686639#M53128</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2016-04-14T13:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686640#M53129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script wasn't posted, but it appears you have a problem with the _passthrough object doesn't have a float property.&lt;/P&gt;&lt;P&gt;You can demonstrate this with any object and check its properties&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; "a".float
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;interactive input&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: 'str' object has no attribute 'float'&lt;/PRE&gt;&lt;P&gt;So it is probably related to the toolbox its self and how you are delivering or receiving parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686640#M53129</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686641#M53130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has it got to do anything with using 10.3 Arcmap,&amp;nbsp; it worked perfectly in 10.1 ...?&lt;/P&gt;&lt;P&gt;i m using python version 2.7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686641#M53130</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2016-04-14T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686642#M53131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The python version is the same, so it isn't python and the toolboxes should be upward compatible (not necessarily downward).&amp;nbsp; You will have to examine the toolbox parameters and see if there was a change in how it was read in the newer version.&amp;nbsp; It would probably be quicker to rebuild a new tool script tool in a new toolbox than spend hours going through the potential bug list.&amp;nbsp; As a check, use it on a dataset that previously worked.&amp;nbsp; If it fails, then it is the toolbox or some missing script component, parameter definition or a change in some import.&amp;nbsp; If it works, then it is the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686642#M53131</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-14T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686643#M53132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am posting the code in the main question, still can't figure out whats wrong with executing it .&lt;/P&gt;&lt;P&gt;The Zip file contains the pyt tool file and a GDB for testing out points.&lt;/P&gt;&lt;P&gt;Text file contains GeoJSON values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 09:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686643#M53132</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2016-04-19T09:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686644#M53133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:18:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686644#M53133</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2016-04-20T14:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686645#M53134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry no extended time available yet... putting out many fires... maybe put WAB in the title, it may attract some interest from others &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686645#M53134</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-20T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686646#M53135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran your toolbox, and it generated the same error, but from a completely different part of the code than what you included originally:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Messages&lt;BR /&gt;Executing: ExportPointHeights D:\tmp\Python_Codes\New_DataSet.gdb\Points_2 # "{"xmax":3703669.161,"ymin":3558596.729,"spatialReference":{"wkid":27039},"ymax":3529259.670,"xmin":3624802.003} " D:\tmp\Python_Codes\ex.zip&lt;BR /&gt;Start Time: Wed Apr 20 12:26:12 2016&lt;BR /&gt;Running script ExportPointHeights...&lt;BR /&gt;Storing geometry into Z-aware feature class&lt;BR /&gt;&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x20135A30&amp;gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 173, in execute&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 148, in clipInputFC&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 125, in getClipValueFromParams&lt;BR /&gt;AttributeError: '_passthrough' object has no attribute 'type'&lt;/P&gt;&lt;P&gt;Failed to execute (ExportPointHeights).&lt;BR /&gt;Failed at Wed Apr 20 12:26:13 2016 (Elapsed Time: 1.08 seconds)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included the whole message above because there are usually relevant pieces of information before the actual error message.&amp;nbsp; For example, the whole message lets you know that it is an &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.arcobjects.mixins._passthrough&lt;/SPAN&gt; object that is generating the error.&amp;nbsp; A similar error can be generated with a couple lines of code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; obj = arcpy.arcobjects.mixins.GeometrySpecializationMixin._passthrough()
&amp;gt;&amp;gt;&amp;gt; obj
&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x1E403390&amp;gt;
&amp;gt;&amp;gt;&amp;gt; obj.type
Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: '_passthrough' object has no attribute 'type'
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcPy, Esri uses _passthrough objects behind the scenes to facilitate passing objects, attributes, etc... between Python and the underlying ArcGIS code.&amp;nbsp; The error message is stating you referenced an attribute (named 'type') that doesn't exist for an object that was passed through or back to your Python code from ArcGIS.&amp;nbsp; Looking at Line 125 referenced above:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CreateFeatureclass_management(tempGDBPath, "storeFeature", clipGeom.type ,None, "SAME_AS_TEMPLATE", "ENABLED", clipGeom.spatialReference)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is being generated by &lt;SPAN style="font-family: courier new,courier;"&gt;clipGeom.type&lt;/SPAN&gt; .&amp;nbsp; In all likelihood, whatever object you think is stored in &lt;SPAN style="font-family: courier new,courier;"&gt;clipGeom&lt;/SPAN&gt;, it is something different.&amp;nbsp; I would start by investigating &lt;SPAN style="font-family: courier new,courier;"&gt;clipGeom&lt;/SPAN&gt; and working backwards from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686646#M53135</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686647#M53136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;The error which I posted in the main question was from a different Code, sorry to mention that. And the current code displays the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the info on "_passthrough" was trying to crack it for long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting your solution for the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jawadh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 06:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686647#M53136</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2016-04-21T06:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Errors (Upgrading Arcmap from 10.1 to 10.3)</title>
      <link>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686648#M53137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome.&amp;nbsp; I am not sure when, or if, I will be able to dig any deeper.&amp;nbsp; If you take the code out of the Python toolbox and run it in an interactive Python interpreter, it might be easier to track down the primary culprit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-errors-upgrading-arcmap-from-10-1-to/m-p/686648#M53137</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-04-21T17:24:37Z</dc:date>
    </item>
  </channel>
</rss>

