import arcgisscripting

4885
1
04-02-2016 09:08 AM
QuentinMourcou
New Contributor


Hi everyone,

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>

    import arcpy

  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>

    import arcgisscripting

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.

Thanks

0 Kudos
1 Reply
EricZ
by
New Contributor

quentin.mourcou

Hi,

I encountered the same error. Did you find out a solution?

Thanks,

0 Kudos