<?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: Unable to use arcgisscripting in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52415#M4153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case anyone is interested, I turned on auditing for the ArcGIS folder and when I try to run my scripts I get an unsuccessful login to the FLEXnet Licensing Service. This would explain my issues since if it can not access the license then the Geoprosessor will not be able to get loaded. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next step it to try to grant the license server access to my web app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**EDIT - I fixed this by changing the app pools identity to a user account instead of ApplicationPoolIdentity. The latter did not have access to get the ESRI license.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 18:34:07 GMT</pubDate>
    <dc:creator>DanielEntzian</dc:creator>
    <dc:date>2011-05-25T18:34:07Z</dc:date>
    <item>
      <title>Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52406#M4144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below is the first few lines of a script that I am trying to run from a web.page. I have verified that it runs fine from python but seems fail on the first use of gp when run programaticly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first I thought the AddToolBox method was failing due to an incorrect path but as I said everything runs fine when run directly from python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried adding the line "gp.SetProduct("ArcInfo") " before the ToolBoxLoad and now it fails so it seems to be any use of gp. causing issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is ArcGIS10 using Python26 and everything ran fine using the same code/scripts on a machine with ArcGIS9.3 and Python25.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be greatly appreciated as I am officially stumped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

gp.SetProduct("ArcInfo") 

gp.AddToolbox("C:/Program Files (x86)/ArcGIS/Desktop10.0/ArcToolbox/Toolboxes/Data Management Tools.tbx")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 13:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52406#M4144</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2011-05-25T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52407#M4145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcpy is the python package for arcGIS10 not arcgisscripting.&amp;nbsp; I don't know however if that excludes arcgisscripting altogether.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 14:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52407#M4145</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-05-25T14:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52408#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After a bit of reading I did try switching to arcpy and got the following error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\__init__.py", line 17, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from geoprocessing import gp&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 568, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env = GPEnvironments(gp)&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 565, in GPEnvironments&amp;nbsp;&amp;nbsp;&amp;nbsp; return GPEnvironment(geoprocessor)&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 521, in __init__&amp;nbsp;&amp;nbsp;&amp;nbsp; self._refresh()&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 523, in _refresh&amp;nbsp;&amp;nbsp;&amp;nbsp; envset = (set(env for env in self._gp.listEnvironments()))RuntimeError: NotInitialized&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 14:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52408#M4146</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2011-05-25T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52409#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you post your code?&amp;nbsp; you won't be using the gp object as you did in arcgisscripting the code will need to be changed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 16:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52409#M4147</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-05-25T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52410#M4148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Code shown below but "import arcpy" causes the above error when run from the web page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import sys, string, os
import arcpy

arcpy.AddToolbox("$data_management_toolbox$")

Sections_Dissolve = "in_memory\\\\temp_table"
Sections = "$personal_geodb$" + "/Sections"
GISADMIN_Routes = "$sde_connection$" + "/" + "$sde_schema$" + ".Routes"
GISADMIN_Routes__2_ = "$sde_connection$" + "/" + "$sde_schema$" + ".Routes"

# Process: Dissolve...
arcpy.Dissolve_management(Sections, Sections_Dissolve, "NAT_RTE_ID;Cycle_Key;Org_Code;Route_No;Route_Name;Route_Description;Route_Length_Mi", "", "MULTI_PART", "DISSOLVE_LINES")

# Process: Append...
arcpy.Append_management(Sections_Dissolve, GISADMIN_Routes__2_, "NO_TEST", "ROUTE_NO 'Route Number' true true false 5 Text 0 0 ,First,#,in_memory\\\\temp_table,Route_No,-1,-1;ROUTE_NAME 'Route Name' true true false 75 Text 0 0 ,First,#,in_memory\\\\temp_table,Route_Name,-1,-1;ORG_CODE 'Org Code' true true false 2 Short 0 5 ,First,#,in_memory\\\\temp_table,Org_Code,-1,-1;NAT_RTE_ID 'NAT_RTE_ID' true true false 14 Text 0 0 ,First,#,in_memory\\\\temp_table,NAT_RTE_ID,-1,-1;ROUTE_DESCRIPTION 'Route Description' true true false 200 Text 0 0 ,First,#,in_memory\\\\temp_table,Route_Description,-1,-1;ROUTE_LENGTH_MI 'ROUTE_LENGTH_MI' true true false 8 Double 8 38 ,First,#,in_memory\\\\temp_table,Route_Length_Mi,-1,-1;CYCLEID 'CYCLEID' true true false 2 Short 0 5 ,First,#,in_memory\\\\temp_table,Cycle_Key,-1,-1;SHAPE.LEN 'SHAPE.LEN' false false true 0 Double 0 0 ,First,#", "")


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52410#M4148</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2021-12-10T22:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52411#M4149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not real familiar with web applications in arcGIS so hopefully someone else can help with that, but is arcpy installed and in the search path so that it can import?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52411#M4149</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-05-25T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52412#M4150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I can load arcpy fine from either Idle or the command prompt. I am starting to suspect a permissions issue with the entity running Python. In the case of this issue, it would be the IIS user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The system on which this is all working is a Win 2003 Server and the problem child is a Win 2008 R2 server. Maybe there is some form of enhanced server security that is causing my woes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52412#M4150</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2011-05-25T17:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52413#M4151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If arcpy is called from a server you have to have ArcGIS Server installed from what I recall.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52413#M4151</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-05-25T17:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52414#M4152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If arcpy is called from a server you have to have ArcGIS Server installed from what I recall.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server is installed. It is pretty much the same setup as the working system. That said, I do not think that would have anything to do with this situation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 18:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52414#M4152</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2011-05-25T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use arcgisscripting</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52415#M4153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case anyone is interested, I turned on auditing for the ArcGIS folder and when I try to run my scripts I get an unsuccessful login to the FLEXnet Licensing Service. This would explain my issues since if it can not access the license then the Geoprosessor will not be able to get loaded. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next step it to try to grant the license server access to my web app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**EDIT - I fixed this by changing the app pools identity to a user account instead of ApplicationPoolIdentity. The latter did not have access to get the ESRI license.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 18:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-use-arcgisscripting/m-p/52415#M4153</guid>
      <dc:creator>DanielEntzian</dc:creator>
      <dc:date>2011-05-25T18:34:07Z</dc:date>
    </item>
  </channel>
</rss>

