Hello,
I am using arcgis 1.7.1 module in my local Python 3.7 environment.
On the following statement:
from arcgis.raster import Raster
I got import error:
ImportError: cannot import name 'Raster' from 'arcgis.raster' (/Users/andy/opt/anaconda3/lib/python3.7/site-packages/arcgis/raster/__init__.py)
Is it error related to Raster add-on licence? My account is restricted to ArcGIS Online.
Regards,
Andrey Korotkov
Solved! Go to Solution.
import arcgis
from arcgis.raster import Raster
arcgis.__version__
'1.8.0'
dir(Raster)
['__abs__', '__add__', '__and__', '__class__', ... snip ...
arcgis.raster module — arcgis 1.8.0 documentation
which indicates
Use arcgis.raster.analytics.is_supported(gis) to check if raster analysis is supported in your GIS.
check with an active 'gis' environment
I don't think it changed from version 1.7.1
import arcgis
from arcgis.raster import Raster
arcgis.__version__
'1.8.0'
dir(Raster)
['__abs__', '__add__', '__and__', '__class__', ... snip ...
arcgis.raster module — arcgis 1.8.0 documentation
which indicates
Use arcgis.raster.analytics.is_supported(gis) to check if raster analysis is supported in your GIS.
check with an active 'gis' environment
I don't think it changed from version 1.7.1
Thank you, Dan
I have reinstalled arcgis to 1.8.0. Corrected. Possibly, my 1.7.1 installation was incomlete.