I'm trying to configure my first geodatabase with PostgreSQL on my ArcGIS for server, which is install in a CentOS (Linux) server.
Following this tutorial : Configurer une géodatabase dans PostgreSQL sous Linux—Aide | ArcGIS for Desktop
I have a problem when I try to run the Python script. My create_enterprise-gdb.py script is based in the arcpy file but when I execute it, I get the following error :
Traceback (most recent call last):
File "./creategeodatabase.py", line 8, in <module>
File "/home/quentin/arcgis/server/arcpy/arcpy/__init__.py", line 21, in <module>
from arcpy.geoprocessing import gp
File "/home/quentin/arcgis/server/arcpy/arcpy/geoprocessing/__init__.py", line 14, in <module>
from _base import *
File "/home/quentin/arcgis/server/arcpy/arcpy/geoprocessing/_base.py", line 14, in <module>
ImportError: No module named arcgisscripting
I understand that the _base_py file can't found the arcgisscripting.pyd which is not located in server/arcpy/ but in server/bin
I try to enter the path server/bin in PYTHONPATH but it not work.
Is anyone have already encountered a similar problem of import? I feel that this is a simple mistake but I confess I do not know Python.