<?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: ArcGIS 9.3 python script in ArcGIS 10 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292161#M22595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You said you are running this on a Linux box... I don't have any experience with Server runninng on Linux, but can you start up a Python window (run Python.exe) and run the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, this either indicates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. There is something wrong with your ArcServer/Python install&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You can't run geoprocessing (gp/arcpy) scripts via ArcServer on Linux (I think you can though if I'm not mistaken??) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error messages you get seem to hint at the 1st possibility.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 15:30:36 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2012-03-23T15:30:36Z</dc:date>
    <item>
      <title>ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292154#M22588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to use the following arcscript on a Linux box running ArcGIS Server 10 SP3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script is for ArcGIS version 9.3. I am unable to run it in ArcGIS 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=633F4ED8-1422-2418-88B7-3E3738A032F8"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=633F4ED8-1422-2418-88B7-3E3738A032F8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 13:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292154#M22588</guid>
      <dc:creator>GaneshDevarajan</dc:creator>
      <dc:date>2012-03-22T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292155#M22589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganesh:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some changes you can make to this script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.OverWriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy.mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureClassA = gp.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureClassA = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dscB = gp.Describe(featureClassB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dscB = arcpy.Describe(featureClassB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this gets you started to see where you need to make changes in the rest of the code for v10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 13:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292155#M22589</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-03-22T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292156#M22590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Michael. I will give it a try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292156#M22590</guid>
      <dc:creator>GaneshDevarajan</dc:creator>
      <dc:date>2012-03-22T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292157#M22591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made the changes that you suggested and I get the following error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bash-3.2$ . /usr/apps/arcgis/server10.0/python26/setenv_python.sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bash-3.2$ python compare_feature_classes.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "compare_feature_classes.py", line 28, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/apps/arcgis/server10.0/python26/lib/python2.6/site-packages/arcpy/arcpy/__init__.py", line 17, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from geoprocessing import gp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/apps/arcgis/server10.0/python26/lib/python2.6/site-packages/arcpy/arcpy/geoprocessing/__init__.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/apps/arcgis/server10.0/python26/lib/python2.6/site-packages/arcpy/arcpy/geoprocessing/_base.py", line 14, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: libappinitializerlib.so: cannot open shared object file: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also attached is the script that I made changes to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292157#M22591</guid>
      <dc:creator>GaneshDevarajan</dc:creator>
      <dc:date>2012-03-22T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292158#M22592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Arc 9" scripts (gp) will work fine in "Arc 10" (arcpy).&amp;nbsp; You just won't be able to take advantage of any of the new arcpy functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 12:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292158#M22592</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2012-03-23T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292159#M22593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I run the script without making any changes..I am getting the following error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "compare_feature_classes.py", line 27, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: libappinitializerlib.so: cannot open shared object file: No such file or directory&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292159#M22593</guid>
      <dc:creator>GaneshDevarajan</dc:creator>
      <dc:date>2012-03-23T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292160#M22594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have another computer you can try it on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Arc 10 loaded on all our computers here (at least 8 of them) and doing a "import arcgisscripting" isn't an issue on any of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to assume your installation/computer is messed up somehow.&amp;nbsp; All I can tell you is that normally this will work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292160#M22594</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2012-03-23T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292161#M22595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You said you are running this on a Linux box... I don't have any experience with Server runninng on Linux, but can you start up a Python window (run Python.exe) and run the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, this either indicates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. There is something wrong with your ArcServer/Python install&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You can't run geoprocessing (gp/arcpy) scripts via ArcServer on Linux (I think you can though if I'm not mistaken??) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error messages you get seem to hint at the 1st possibility.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292161#M22595</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-03-23T15:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 9.3 python script in ArcGIS 10</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292162#M22596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Harles...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its running...I was trying it on a Linux box and it was unable to find the libappinitializerlib.so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running the following script fixed it....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~arcgis/server10.0/servercore/.Server/init_server.sh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-9-3-python-script-in-arcgis-10/m-p/292162#M22596</guid>
      <dc:creator>GaneshDevarajan</dc:creator>
      <dc:date>2012-03-23T15:31:50Z</dc:date>
    </item>
  </channel>
</rss>

