Select to view content in your preferred language

Import Error libarcgisscripting_pluginstub.so

831
3
05-03-2010 02:35 PM
PrashanthSukumaran
Emerging Contributor
Hi,

I am trying to execute a python geoprocessing script in my unix environment. We have ArcGIS server 9.3 installed on Sun Solaris 9. Python was installed along with the server install.

When i execute the script i get the following error.
Traceback (most recent call last):
File "GeocodeShops.py", line 8, in <module>
import arcgisscripting
ImportError: ld.so.1: python: fatal: libarcgisscripting_pluginstub.so: open failed: No such file or directory

My Python script is simple.
# ---------------------------------------------------------------------------
# GeocodeShops.py
# Created on: Thu Dec 17 2009 04:23:29 PM
#   (generated by ArcGIS/ModelBuilder)
# ---------------------------------------------------------------------------
 
# Import system modules
import arcgisscripting
 
# Create the Geoprocessor object
gp = arcgisscripting.create(9.3)
try :
        gp.AddMessage("Started the Geocode Script for Shops.")
        gp.AddMessage("Done geocoding addresses ........")
except:
        print gp.GetMessages(2)
 


I printed the PYTHONPATH to check if bin was present. "/export/project/gisapp/arcgis93/arcgis/bin" is in the path. I also found that libarcgisscripting_pluginstub.so is in that folder.

What could be causing this error?

Thanks for you help
0 Kudos
3 Replies
PrashanthSukumaran
Emerging Contributor
The script works fine in a windows environment with ArcGIS Server 9.3.1.

Any help please!!!
0 Kudos
FrankPerks
Emerging Contributor
What version of python are you running the script with?

just type:

python

And it will say the version + if its 64bit or not.
0 Kudos
DeeleshMandloi
Esri Contributor
Before running any python scripts on unix, you must first set the proper environment. This can be accomplished by sourcing the init files provided with ArcGIS Server install on unix.
These init files are present in <arcgis install dir>/servercore/.Server . There are init files for different shells. So if you are using bash shell, you can use

source /arcgis/servercore/.Server/init_server.sh

Now if you run your python script, it should work fine.

Hope this helps
Deelesh
0 Kudos