AnsweredAssumed Answered

Why is "from argis.gis import GIS" not possible

Question asked by behrm on Sep 28, 2017
Latest reply on Sep 28, 2017 by Dan_Patterson

From Eclipse I run C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat provided by the Installation of ArcGIS Pro. 

the following python script:

 

import arcpy
import sys


print(sys.executable)
print(sys.version)

for p in sys.path:
    print(p)

for k, v in arcpy.GetInstallInfo().items():
    print (k, v)

from argis.gis import GIS  # @UnresolvedImport
g = GIS()
g.map()

generates the following Output:

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe

3.5.3 |Continuum Analytics, Inc.| (default, Feb 22 2017, 21:28:42) [MSC v.1900 64 bit (AMD64)]

Q:\_EclipseWorkspaces\b.e\Geoprocessing_py3\src\test

Q:\_EclipseWorkspaces\b.e\Geoprocessing_py3\src

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\DLLs

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages

C:\Program Files\ArcGIS\Pro\bin

C:\Program Files\ArcGIS\Pro\Resources\ArcPy

C:\Program Files\ArcGIS\Pro\Resources\ArcToolbox\Scripts

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.16.0-py3.5.egg

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2017.2-py3.5.egg

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\setuptools-27.2.0-py3.5.egg

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\sympy-1.0-py3.5.egg

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python35.zip

C:\Program Files\ArcGIS\Pro\bin

C:\Program Files\ArcGIS\Pro\Resources\ArcPy

C:\Program Files\ArcGIS\Pro\Resources\ArcToolbox\Scripts

Installer xxxxxx.xxxxx

InstallType N/A

BuildNumber 8933

InstallDate 18.09.2017

SourceDir Y:\ESRI\ArcGIS_10.5.1\ArcGIS-Pro_2.0\ArcGISPro\

Version 2.0

SPNumber N/A

InstallDir c:\program files\arcgis\pro\

InstallTime 16:27:40

SPBuild N/A

ProductName ArcGISPro

Traceback (most recent call last):

File "Q:\_EclipseWorkspaces\b.e\Geoprocessing_py3\src\test\test.py", line 19, in <module>

from argis.gis import GIS # @UnresolvedImport

ImportError: No module named 'argis'

 

I would like to know if this behaviour is by design or do expecting something impossible?

How do I proceed to use the ArcGIS Python API in "classic"-Geoprocessing?

 

Outcomes