<?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 Python Script via Command Line in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/python-script-via-command-line/m-p/538885#M14588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm new in using Python, Modelbuilder etc. so I hope someone can give me a hint zu solve my problem. My aim is to automate a workflow, which I have already created with the Modelbuilder. I thought, that I can save my model as a python script and then let it run via batch file. Running the batch file ends with an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the License...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.SetProduct("ArcView") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime Error: ERROR 999999: ArcObjects has not yet been initialized&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to run such python scripts via python command line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know this kind of problem und - of course &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - know the solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Aug 2010 07:21:04 GMT</pubDate>
    <dc:creator>StefanKaps</dc:creator>
    <dc:date>2010-08-02T07:21:04Z</dc:date>
    <item>
      <title>Python Script via Command Line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/python-script-via-command-line/m-p/538885#M14588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm new in using Python, Modelbuilder etc. so I hope someone can give me a hint zu solve my problem. My aim is to automate a workflow, which I have already created with the Modelbuilder. I thought, that I can save my model as a python script and then let it run via batch file. Running the batch file ends with an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the License...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.SetProduct("ArcView") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime Error: ERROR 999999: ArcObjects has not yet been initialized&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to run such python scripts via python command line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know this kind of problem und - of course &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - know the solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 07:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/python-script-via-command-line/m-p/538885#M14588</guid>
      <dc:creator>StefanKaps</dc:creator>
      <dc:date>2010-08-02T07:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script via Command Line</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/python-script-via-command-line/m-p/538886#M14589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Stefan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of ArcGIS Desktop are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some documentation about your error for 931: &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=tool_errors_and_warnings:999998-999999"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=tool_errors_and_warnings:999998-999999&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For 10, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00w100000002999999.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00w100000002999999.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To set a product at 10, see this: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000003w000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000003w000000.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 10:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/python-script-via-command-line/m-p/538886#M14589</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2010-08-02T10:24:05Z</dc:date>
    </item>
  </channel>
</rss>

