<?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 Problem with metadata tools at 10.0 (Works as a model but not in Python) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680572#M52743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script that runs in 9.2 but doesn't in 10.0.&amp;nbsp; I've isolated the problem down to the USGSMPTranslator_conversion command.&amp;nbsp; It runs in 9.2 in Python but not at 10.0.&amp;nbsp; So to test things at 10.0 I created a model using only the USGSMPTranslator converstion tool.&amp;nbsp; This tool puts out to a file metadata from a feature class.&amp;nbsp; The model works but not as a python program when exported.&amp;nbsp;&amp;nbsp; As you can see below there isn't must to it.&amp;nbsp; As a model it does report metadata errors in the log file but that shouldn't be a problem.&amp;nbsp; Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------Program Below-----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ws_occurpoint_dr = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\project.mdb\\ws_occurpoint_dr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ws_occurpoint_dr_full_xml = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\wdfw_phs\\ws_occurpoint_dr_full.xml"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Log_File = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\wdfw_phs\\ws_occurpoint_dr_full.log"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: USGS MP Metadata Translator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.USGSMPTranslator_conversion(ws_occurpoint_dr, "", "XML", ws_occurpoint_dr_full_xml, Log_File)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------Error Message Below-----------------------------------------------&lt;/SPAN&gt;&lt;BR /&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:\Python26\ArcGIS10.0\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 312, 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 "L:\data_release\phs_development\digitaldata\Randy10\usgsmetadataexport.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.USGSMPTranslator_conversion(ws_occurpoint_dr, "", "XML", ws_occurpoint_dr_full_xml, Log_File)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 620, in USGSMPTranslator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Error in getting tool information&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 20:39:13 GMT</pubDate>
    <dc:creator>RandyKreuziger</dc:creator>
    <dc:date>2011-06-28T20:39:13Z</dc:date>
    <item>
      <title>Problem with metadata tools at 10.0 (Works as a model but not in Python)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680572#M52743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a simple script that runs in 9.2 but doesn't in 10.0.&amp;nbsp; I've isolated the problem down to the USGSMPTranslator_conversion command.&amp;nbsp; It runs in 9.2 in Python but not at 10.0.&amp;nbsp; So to test things at 10.0 I created a model using only the USGSMPTranslator converstion tool.&amp;nbsp; This tool puts out to a file metadata from a feature class.&amp;nbsp; The model works but not as a python program when exported.&amp;nbsp;&amp;nbsp; As you can see below there isn't must to it.&amp;nbsp; As a model it does report metadata errors in the log file but that shouldn't be a problem.&amp;nbsp; Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------Program Below-----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ws_occurpoint_dr = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\project.mdb\\ws_occurpoint_dr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ws_occurpoint_dr_full_xml = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\wdfw_phs\\ws_occurpoint_dr_full.xml"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Log_File = "L:\\data_release\\phs_development\\digitaldata\\Randy10\\wdfw_phs\\ws_occurpoint_dr_full.log"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: USGS MP Metadata Translator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.USGSMPTranslator_conversion(ws_occurpoint_dr, "", "XML", ws_occurpoint_dr_full_xml, Log_File)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------Error Message Below-----------------------------------------------&lt;/SPAN&gt;&lt;BR /&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:\Python26\ArcGIS10.0\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 312, 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 "L:\data_release\phs_development\digitaldata\Randy10\usgsmetadataexport.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.USGSMPTranslator_conversion(ws_occurpoint_dr, "", "XML", ws_occurpoint_dr_full_xml, Log_File)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 620, in USGSMPTranslator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Error in getting tool information&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 20:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680572#M52743</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2011-06-28T20:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with metadata tools at 10.0 (Works as a model but not in Python)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680573#M52744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/15433-Python-Errors-in-IDLE-but-Works-in-ArcCatalog"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 22:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680573#M52744</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-06-28T22:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with metadata tools at 10.0 (Works as a model but not in Python)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680574#M52745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also see this &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/24/ExportModelToPy.aspx"&gt;blog&lt;/A&gt;&lt;SPAN&gt; for information on converting models to scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 13:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680574#M52745</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-06-29T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with metadata tools at 10.0 (Works as a model but not in Python)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680575#M52746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you jscheirer for the solution.&amp;nbsp; I installed the .NET Framework SDK so I would have the gacutil.exe.&amp;nbsp; Using that command I registered the two ESRI DLLs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;See &lt;A href="http://forums.arcgis.com/threads/15433-Python-Errors-in-IDLE-but-Works-in-ArcCatalog"&gt;this thread&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680575#M52746</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2011-07-01T15:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with metadata tools at 10.0 (Works as a model but not in Python)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680576#M52747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are a bunch of related NIM's on this, all having to do with the above .dll issue and metadata tools in the 10.0 Conversion toolbox. Hopefully this will be fixed in SP4. (Unfortunately I don't see any of these NIM's on the current &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/content/patches-and-service-packs?fa=viewPatch&amp;amp;PID=160&amp;amp;MetaID=1834"&gt;10.0 SP4 "issues to be addressed"&lt;/A&gt;&lt;SPAN&gt;...)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM058011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM063624&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM068626&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM063624&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM063623&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM062944&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM070175&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Several of the NIM's mention a possible workaround if you can't do the GAC/.dll fix: try wrapping the tool inside a model and call that from Python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 17:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-metadata-tools-at-10-0-works-as-a/m-p/680576#M52747</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-02-23T17:39:58Z</dc:date>
    </item>
  </channel>
</rss>

