Error on import arcpy in Linux

70
0
03-25-2021 10:20 AM
FlavioP
New Contributor

Hi there,

I need to run python script to do something on GIS data.

I really have problem to configure a Python enviroment (arcpy 3.6). I cannot install nothing on user path due the customer security raccomandation. I must install at the same mount point of ArcGIS Server installation folder.

Here my procedure:

Install and authorize ArcGIS Server on /arcgis/software/arcgis/
Install Anaconda (latest) on /arcgis/software/anaconda3
Creation of virtual env (with conda create --name py36 python=3.6)
Install esri package (with conda install -c esri arcgis-server-py3=10.8.0)

activate conda enviroment and importing arcpy i've got this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/arcgis/software/anaconda3/envs/py36/lib/python3.6/site-packages/arcpy/__init__.py", line 74, in <module>
from arcpy.geoprocessing import gp
File "/arcgis/software/anaconda3/envs/py36/lib/python3.6/site-packages/arcpy/geoprocessing/__init__.py", line 14, in <module>
from ._base import *
File "/arcgis/software/anaconda3/envs/py36/lib/python3.6/site-packages/arcpy/geoprocessing/_base.py", line 14, in <module>
import arcgisscripting
File "/arcgis/software/anaconda3/envs/py36/lib/python3.6/site-packages/arcgisscripting/__init__.py", line 119, in <module>
from ._arcgisscripting import *
RuntimeError: The software is not authorized for use.

i'm also trying to set ARGISHOME variable before installing esri package, but the error is the same

There is a guide or step to follow to do that? I really appreciate any help.
P.S. linux version is openSUSE and ArcGIS Server 10.8

0 Kudos
0 Replies