<?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 Error import arceditor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639906#M49863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been exporting models to Python and then triggering them in simple batchfiles for quite some time.&amp;nbsp; The only model I have exported to Python that had this issue was this one with replication.&amp;nbsp; None of the others created&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the necessary product code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arceditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got mine working by remarking out the import arceditor line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something has to be wrong in the export to Python portion of model builder for it to create this bogus line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 16:52:46 GMT</pubDate>
    <dc:creator>MikeChancey</dc:creator>
    <dc:date>2011-08-02T16:52:46Z</dc:date>
    <item>
      <title>Python Error import arceditor</title>
      <link>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639903#M49860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a batch file to update a local file geodatabase one-way replica from an SDE server.&amp;nbsp; I created a very simple model to uncompress the file geodatabase and then sychronize changes from the SDE database to the file geodatabase.&amp;nbsp; The model seemed to run fine.&amp;nbsp; I then exported the model to python, and added it to the batch file.&amp;nbsp; When I attempt to run it, it errors out and logs the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_____________________________________________________&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:\GeoProcessing\UpdateArcReaderData\Scripts\Step04UpdateswBillingReplica.py", line 9, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arceditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arceditor.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.setProduct("ArcEditor")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_____________________________________________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Python script generated by the model builder export looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Step04UpdateswBillingReplica.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Created on: 2011-04-07 10:57:06.00000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the necessary product code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arceditor&lt;/SPAN&gt;&lt;BR /&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;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;swRegStorm_as_MChancey___sdeprod1_sde = "Database Connections\\swRegStorm as MChancey @ sdeprod1.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KCMO_swBilling_gdb = "C:\\ArcReaderData\\KCMO_SDE\\KCMO_swBilling.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uncompressed_data = "C:\\ArcReaderData\\KCMO_SDE\\KCMO_swBilling.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Uncompress File Geodatabase Data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.UncompressFileGeodatabaseData_management(KCMO_swBilling_gdb, "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Synchronize Changes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SynchronizeChanges_management(swRegStorm_as_MChancey___sdeprod1_sde, "MCHANCEY.ToAR_swBilling", Uncompressed_data, "FROM_GEODATABASE1_TO_2", "IN_FAVOR_OF_GDB1", "BY_OBJECT", "DO_NOT_RECONCILE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;______________________________________________________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me why this isn't working?&amp;nbsp; I haven't modified the Python code at all, it is just as created by ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is running on a PC with Windows 7 as the OS and with ArcGIS 10 with the current service pack.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 16:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639903#M49860</guid>
      <dc:creator>MikeChancey</dc:creator>
      <dc:date>2011-04-07T16:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error import arceditor</title>
      <link>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639904#M49861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arceditor isnt a module you can import. you only need to import arcpy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639904#M49861</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-04-07T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error import arceditor</title>
      <link>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639905#M49862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had this same issue with trying to schedule a task with my python script, and I had to open the python code in a notepad and remove this part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the necessary product code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arceditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What really stinks is that this piece of code was generated by model builder when I told it to export to python, hence I never inserted it into the code myself.&amp;nbsp; This info probably needs to be a knowledge base article when trying to apply a python script through task scheduler.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve Byrd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IT/GIS Specialist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Round Rock, TX&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639905#M49862</guid>
      <dc:creator>SteveByrd</dc:creator>
      <dc:date>2011-08-02T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error import arceditor</title>
      <link>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639906#M49863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been exporting models to Python and then triggering them in simple batchfiles for quite some time.&amp;nbsp; The only model I have exported to Python that had this issue was this one with replication.&amp;nbsp; None of the others created&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the necessary product code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arceditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got mine working by remarking out the import arceditor line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something has to be wrong in the export to Python portion of model builder for it to create this bogus line.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-error-import-arceditor/m-p/639906#M49863</guid>
      <dc:creator>MikeChancey</dc:creator>
      <dc:date>2011-08-02T16:52:46Z</dc:date>
    </item>
  </channel>
</rss>

