Open
Description
Describe the bug
Hello, I have followed the steps to run arcgis in Google Colab. However while trying to import GIS from arcgis I am facing the error NameError: name 'Image' is not defined
To Reproduce
Steps to reproduce the behavior:
- Ran the following code cell:
%%bash
MINICONDA_INSTALLER_SCRIPT=Miniconda3-4.5.4-Linux-x86_64.sh
MINICONDA_PREFIX=/usr/local
wget https://repo.continuum.io/miniconda/$MINICONDA_INSTALLER_SCRIPT
chmod +x $MINICONDA_INSTALLER_SCRIPT
./$MINICONDA_INSTALLER_SCRIPT -b -f -p $MINICONDA_PREFIX
conda install -c esri -c fastai -c pytorch -c anaconda arcgis=1.8.4 ujson scikit-image=0.15.0 pillow=7.1.2 libtiff=4.1.0 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.0 python=3.7.9 --yes --no-pin
- After which I ran the following:
import sys
sys.path
import sys
_ = (sys.path
.append("/usr/local/lib/python3.7/site-packages"))
- Finally, when I tried to ran the following cell resulting in the error:
import os
import zipfile
from pathlib import Path
from arcgis.gis import GIS
from arcgis.learn import prepare_textdata
from arcgis.learn.text import SequenceToSequence
- The Error:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
[<ipython-input-7-d47f19c7f286>](https://localhost:8080/#) in <module>()
3 from pathlib import Path
4 from arcgis.gis import GIS
----> 5 from arcgis.learn import prepare_textdata
6 from arcgis.learn.text import SequenceToSequence
5 frames
[/usr/local/lib/python3.7/site-packages/arcgis/learn/_utils/common.py](https://localhost:8080/#) in <module>()
95 raise Exception(message)
96
---> 97 class ArcGISMSImage(Image):
98
99 def show(self, ax=None, rgb_bands=None, show_axis=False, title=None):
NameError: name 'Image' is not defined
Screenshots
Screenshots for the problem:
Expected behavior
The cells would have ran with the dependencies getting imported.
Platform (please complete the following information):
- OS: Windows
- Browser: Chrome
- Python API Version [e.g.
1.6.2
]: Getting error NameError: name 'arcgis' is not defined