<?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: Problem with running script outside of ArcMap (licensing, parameters) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80022#M6442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, it seems I couldn't load the file exactly: The lines 42 till 80 are indented, too, in the original script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 08:29:59 GMT</pubDate>
    <dc:creator>LeonoreBehr</dc:creator>
    <dc:date>2014-10-02T08:29:59Z</dc:date>
    <item>
      <title>Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80021#M6441</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 written a script which runs fine inside of ArcMap in the Python-Window but does not outside of ArcMap in PythonWin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My intention for the last step was to delete all the files I created except of the Result txt-file.&lt;/P&gt;&lt;P&gt;But if I run the script in PythonWin there seems to be some problems with the license of Spatial Statistic or/and with the fparameters within the arcpy functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script looks like this (sorry, the explanation parts and the file names are partly in german):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14122380819798751 jive_text_macro" jivemacro_uid="_14122380819798751" modifiedtitle="true"&gt;
&lt;P&gt;import os, arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Pfad="C:/Users/behr/Desktop/DAC_MD/"&lt;/P&gt;
&lt;P&gt;Pfad1="C:/Users/behr/Desktop/DAC_MD/Delete/"&lt;/P&gt;
&lt;P&gt;PfadTxt="C:/Users/behr/Desktop/DAC_MD/01_MD_HH_klein/"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Festlegen ob das Ergebnis Hydr. Höhen oder Salzgehalt ist&lt;/P&gt;
&lt;P&gt;Sz="HH"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TextDateienListe = os.listdir(PfadTxt)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for Datei in TextDateienListe:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Datei=TextDateienListe[1]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = os.path.splitext(Datei)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # XY-Event Layer erstellen // Input: txt-Datei //Output: Layer mit Variable EventLayerName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EventLayerName= b[0] + "_Layer"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeXYEventLayer_management(PfadTxt+Datei,"x","y",EventLayerName,"PROJCS['ETRS_1989_UTM_Zone_33N',GEOGCS['GCS_ETRS_1989',DATUM['D_ETRS_1989',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',15.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 10000;-100000 10000;-100000 10000;0,001;0,001;0,001;IsHighPrecision","HH")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Kriging // Output: Raster rXXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.gp.Kriging_sa(EventLayerName,"HH",Pfad1+"r" + b[0],"Spherical 15,717080","15,7170800000001","VARIABLE 12","#")&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Hydrotopdatei kopieren zum späteren Einlesen der gemittelten Werte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(Pfad+"HydrotMD.shp",Pfad1+"Hydrotop" + b[0]+".shp","#","0","0","0")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Zonale Statistiken: Mittelwerte bilden für Hydrotop und Raster und in Tabelle ausspucken&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.gp.ZonalStatisticsAsTable_sa(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS",Pfad1+"r" + b[0],Pfad1+ "t"+b[0],"DATA","MEAN")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Tabellenfeld per ID_COMTESS-Feld in die hydrotop-Datei integrieren&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.JoinField_management(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS",Pfad1+ "t"+b[0],"ID_COMTESS","MEAN")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Exportieren der ID mit dem dazugehörigen Mittelwert in eine Textdatei&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ExportXYv_stats(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS;MEAN","SPACE",Pfad + "Results/01_MD_"+Sz+"_"+b[0],"ADD_FIELD_NAMES")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;arcpy.CopyFeatures_management(Pfad+"HydrotMD.shp",Pfad1+"Hydrotop" + b[0]+".shp","#","0","0","0")&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;#Zonale Statistiken: Mittelwerte bilden für Hydrotop und Raster und in Tabelle ausspucken&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;arcpy.gp.ZonalStatisticsAsTable_sa(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS",Pfad1+"r" + b[0],Pfad1+ "t"+b[0],"DATA","MEAN")&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt; &lt;/TD&gt;
&lt;TD&gt; &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;# Tabellenfeld per ID_COMTESS-Feld in die hydrotop-Datei integrieren&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;arcpy.JoinField_management(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS",Pfad1+ "t"+b[0],"ID_COMTESS","MEAN")&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;#Exportieren der ID mit dem dazugehörigen Mittelwert in eine Textdat&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;arcpy.ExportXYv_stats(Pfad1+"Hydrotop" + b[0]+".shp","ID_COMTESS;MEAN","SPACE",Pfad + "Results/01_MD_"+Sz+"_"+b[0],"ADD_FIELD_NAMES")&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors occuring are:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;ExecuteError: Errors during execution . Parameters are invalid .&lt;/P&gt;&lt;P&gt;ERROR 000824: The tool is not licensed .&lt;/P&gt;&lt;P&gt;Error executing ( kriging ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: is it not possible to run spatial statistic stuff outside of arcmap because of the license?&lt;/P&gt;&lt;P&gt;And could the first problem be, that I cant't use the parameters like "HH" as the row-definition in the attribute table outside of ArcMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80021#M6441</guid>
      <dc:creator>LeonoreBehr</dc:creator>
      <dc:date>2014-10-02T08:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80022#M6442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, it seems I couldn't load the file exactly: The lines 42 till 80 are indented, too, in the original script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80022#M6442</guid>
      <dc:creator>LeonoreBehr</dc:creator>
      <dc:date>2014-10-02T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80023#M6443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spatial Statistik müsste schon funktionieren. Wahrscheinlich mußt du im script die extension dazu auschecken? SA?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80023#M6443</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-10-02T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80024#M6444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/de/arcgisdesktop/10.0/help/index.html#//000v0000003q000000" title="http://help.arcgis.com/de/arcgisdesktop/10.0/help/index.html#//000v0000003q000000"&gt;ArcGIS Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80024#M6444</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-10-02T08:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80025#M6445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vielen Dank, das war die Lösung! Doch so einfach &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eine Frage habe ich noch:&lt;/P&gt;&lt;P&gt;Ich wollte unten jetzt einfach noch folgendes einfügen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;#Löschen der unnötigen Files &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;for filename in os.listdir(Pfad+ "Delete/"):&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; os.remove(os.path.join(Pfad+ "Delete/", filename))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;um damit die Daten aus dem Delete-Ordner, in dem ich alle Zwischenschritte abgespeichert habe, bequem zu löschen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da erscheint aber folgender Error:&lt;/P&gt;&lt;P&gt;WindowsError: [Error 5] Zugriff verweigert: 'C:/Users/behr/Desktop/DAC_MD/Delete/info'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liegt das dann an den Windows-Rechten? Kann ich die vielleicht irgendwie umgehen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vielen Dank schonmal,&lt;/P&gt;&lt;P&gt;Leonore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80025#M6445</guid>
      <dc:creator>LeonoreBehr</dc:creator>
      <dc:date>2014-10-02T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80026#M6446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Die Fehlermeldung deutet schon auf ein Rechteproblem hin. Ich würde die Daten einfach woanders speichern?&lt;/P&gt;&lt;P&gt;Umgehen geht glaube ich nicht, zumindest ist mir da nichts bekannt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 09:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80026#M6446</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-10-02T09:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80027#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, dann werde ich das halt einfach per Hand löschen müssen.&lt;/P&gt;&lt;P&gt;Danke für die Lösungshilfe!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 09:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80027#M6447</guid>
      <dc:creator>LeonoreBehr</dc:creator>
      <dc:date>2014-10-02T09:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80028#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Da nich für&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 09:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80028#M6448</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-10-02T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80029#M6449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see where you are checking out/in your Spatial Analyst extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14122536722883408" jivemacro_uid="_14122536722883408" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; ### see if spatial analyst extension is available for use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; availability = arcpy.CheckExtension("Spatial")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if availability == "Available":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckOutExtension("Spatial")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("SA Ext checked out")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError("%s extension is not available (%s)"%("Spatial Analyst Extension",availability))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError("Please ask someone who has it checked out but not using to turn off the extension")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; #do your processing with SA&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; # check the sa extension back in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; arcpy.CheckInExtension("Spatial")&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80029#M6449</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-10-02T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80030#M6450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was already proposed - in German so you haven't had the chance to read it - or do u speak german? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Actually she has got some problems with deleting files with os.remove according to access authority on "C:/Users/behr/Desktop". No idea why she has to saves the things there? But maybe you have a idea for a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 13:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80030#M6450</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-10-02T13:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80031#M6451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't notice any code suggesting to perform SA checkout and I why I posted.&amp;nbsp; The OP was in English and a quick scan of the thread didn't show any solutions in any language -- but no, I don't speak German &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user "behr" is not actually the account executing the code then I'd think there would be permission issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 13:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80031#M6451</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-10-02T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80032#M6452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not, that I need the data there, it is only: it was the most comfortable way so I can see what is going on.&lt;/P&gt;&lt;P&gt;The user "behr" is excecuting the code, but is not the admin on the PC. This could cause the problem, I think. But this problem doesn't really bother me anymore, I can delete the files by hand. Would only have been more comfortable....&lt;/P&gt;&lt;P&gt;But thanks a lot for trying to give me a solution and for the previous post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 09:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80032#M6452</guid>
      <dc:creator>LeonoreBehr</dc:creator>
      <dc:date>2014-10-08T09:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running script outside of ArcMap (licensing, parameters)</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80033#M6453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;The user "behr" is excecuting the code, but is not the admin on the PC&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;That is the likely culprit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-script-outside-of-arcmap/m-p/80033#M6453</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-10-08T13:26:57Z</dc:date>
    </item>
  </channel>
</rss>

